![]() | ![]() | ![]() | ![]() |
|
faq search add article cool-stuff how-to main tips |
Posted by Jason on Friday February 22, @12:15PMfrom the lockdown-root dept. The FreeBSD default shell (tcsh) has an automatic logout feature which will logout an account that has been idle for a specified amount of time. This feature can be used to better secure your root account- in case you forget to logout. The command to enable this feature is set autologout = x. Where x is the number of idle minutes before an automatic logout will occur. You can add this command to your /root/.profile file to be sure it set everytime you login to the system as root. To set an automatic logout for 15 minutes, simply edit the .profile for the root account with your preferred editor (ee or vi in my case). Login as root like so: Login: rootSave the file, logout and login as root again. If you don't use the console for 15 minutes, the system should automatically log you out. To learn more about the commands in FreeBSD and other Unix OS's, try the man pages: man tcsh man ee man vi < | >
|
|
||||||||||||||||||
|
||||||||||||||||||||
| "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate |
|
| All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann. |