![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| why I cannot login by root | rainbow_bean | AIX | 10 | 03-30-2008 09:25 PM |
| Cannot login root | surizan | HP-UX | 5 | 02-04-2008 11:38 AM |
| Can't login root account due to can't find root shell | neikel | AIX | 2 | 01-30-2008 11:07 PM |
| root login | breigner | AIX | 2 | 09-16-2004 12:49 PM |
| Lost root password / Can't login as root | Perderabo | Answers to Frequently Asked Questions | 0 | 06-22-2004 07:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Root Login Auditing !!
Hi,
At our site(O.S Solaris 5.9) we have disabled the root login and also su . In place of this we have a root equivalent id eg:boss which is basically a copy of ur /usr/bin/su. Now in order to maintain an audit trail of the activities and to restrict root login we have enabled the access of this id only through 1 single id i.e rootload and enabled audit trail using the script command which has been added in the .profile at the very end as detailed below ### CODE START #CHECK FOR ROOT LOGIN a=`who -m|cut -c1-5` if [ "$a" != 'rootload' ] then echo "SORRY ! YOU ARE NOT AUTHORISED TO LOGIN " exit else script -a /home/rootload/rootlog/rootlog_`date +"DATE:%d%m%y_TIME:%H%M"` fi exit ## CODE END Now I face 2 problems i) If I logonto root just using command boss then the .profile does not execute and hence the root login restirctions and audit trail are not applicable. ii) If I logon to root using boss - , then the .profile is executed and audit trail and root log audit trail are avalaible but when i exit out using exit command then the processes whihc are started with the root equivalent id are killed or exited out. Please let me know if there are any solutions to overcome these 2 problems and still satisfy my requirements Regds, Jobby |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|