The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-25-2006
jobbyjoseph jobbyjoseph is offline
Registered User
  
 

Join Date: Apr 2006
Location: Mumbai
Posts: 21
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
  #2 (permalink)  
Old 07-26-2006
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Quote:
Originally Posted by jobbyjoseph
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.
That's a normal behaviour. If you don't use "-", the user profile won't be loaded, so your code won't be executed. You could "enclose" boss into a script that logs every execution of itself instead.

Quote:
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.
That's also usual. I would use "nohup" with those commands so that they're not finished when you logout.

One more thing. You may want to put the code inside /etc/profile instead, so that the user won't be able to change its profile and avoid your audit. You may also "trap" CTRL+C.

Regards.
  #3 (permalink)  
Old 03-07-2007
auditd auditd is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 22
Quote:
Originally Posted by jobbyjoseph
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
script is not a suitable auditing mechanism, you should use Solaris auditing instead. If you want to audit shell activity take a look at this page.
  #4 (permalink)  
Old 04-05-2007
! # Abhi # ! ! # Abhi # ! is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 5
The manual navigation is the only drawback I find in Unix--though it is the most secured OS IMO.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0