- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sulog and unknown users
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 07:29 AM
01-07-2004 07:29 AM
sulog and unknown users
My favorite is when one forgets the enter key when suing to root which gives su - password and end up with the root password in sulog and syslog.log. Solaris su does not log unknown users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 03:20 PM
01-07-2004 03:20 PM
Re: sulog and unknown users
Better yet, stop su'ing to root and use some kind of proxy, such as sudo or SAM. That prevents this issue and gives you more accountability/an auditing trail at the same time.
http://www.courtesan.com/cgi-bin/cvsweb/sudo/
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/
--Mic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 03:33 PM
01-07-2004 03:33 PM
Re: sulog and unknown users
Clear the btmp file once a week with a script or sam.
You can write a script and scan for root in the btmp file.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 04:57 PM
01-07-2004 04:57 PM
Re: sulog and unknown users
Here's an example of one way:
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
auth.info /var/adm/syslog/auth.log
*.info;mail.none;auth.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
That would send auth related messages to /var/adm/syslog/auth.log. With the permissons on auth.log set to root only, no one but root can see those entries.
Perms on /var/adm/btmp and /var/adm/sulog should also be set root only readable.
*I still haven't come up with a way to keep root from seeing my own password in btmp when I slip up. :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 02:28 AM
01-08-2004 02:28 AM
Re: sulog and unknown users
I am curious why you would want to disable the sulog? This is the primary reason to have an sulog is to log unauth users' access to your host. Unless your last sentence is the reason, and again I am curious how that could happen with the root password.
__________________________
What did you mean by this statement?
"My favorite is when one forgets the enter key when suing to root which gives su - password and end up with the root password in sulog and syslog.log. Solaris su does not log unknown users. "
Are you saying the clear text password for root shows up in sulog and syslog.log?
Id like to know what platform/os this is on... and if you reported it to HP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 02:37 AM
01-08-2004 02:37 AM
Re: sulog and unknown users
That makes sense. If you type in "su -" but forget to press the enter key before you type in the password, then it becomes "su -
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 02:43 AM
01-08-2004 02:43 AM
Re: sulog and unknown users
SU 01/07 15:09 - 0 root-RootPW
It won't take very much for one to try all the missed attempts to get the root password, unless the files are write protected, but that seems very weak protection. I'm running HP-UX 11.0 and I've seen this on several servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 03:39 AM
01-08-2004 03:39 AM
Re: sulog and unknown users
I would hope you wouldnt do that very often... Also, I wouldn't script that with the root password in a script to grep out of the sulog...I would be more inclined to grep YOUR ID and delete any entry with your user name.
Although sulog is read only for root 600 on my box... Anyone who would be able to read it would already have root access.