Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On FreeBSD 8.1 how to view history command for user root. Detail many sesion , because user root use by 3 people system admin.

Thank all

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

You don't do that. What you do is setup sudo and then make your 3 admins log in using normal user accounts and use sudo to run commands as root. Sudo when correctly set up will allow your admins to carry out their duties and will log all relevant information to the system log files for later auditing.

share|improve this answer
    
well you can still see by pressing the up arrow to get previous command. –  Anarko_Bizounours Aug 3 '11 at 7:16
    
@Anarko_Bizounours: That will only show the last N commands where N is controlled by HISTFILESIZE or HISTSIZE. Also is you put a space before your command it doesn't get stored in the command history. –  Iain Aug 3 '11 at 7:23
    
Wasn't sure, thanks for confirming that Iain –  Anarko_Bizounours Aug 3 '11 at 8:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.