- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Capturing su bandits
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
12-07-2002 06:02 PM
12-07-2002 06:02 PM
I am an application admin for my company and I am trying to find out how I can modify a HP-UX Unix account to capture "su" logging. I am interested in knowing how an SA would enable su logging when a user uses "su -" but also, I am trying to find out how to capture su logging when a user uses "su" only.
I am wanting this because I have an application account that uses tcsh and someone keeps disabling the account by using the wrong password. I don't want to bog down my SA with doing the leg-work, so I am researching it myself.
Any ideas?
One idea a co-worker mentioned was to modify the .cshrc so that when a user su's to an account using only "su" a log file captures their user ID. I have no idea how to do that.
Thanks for your time. Have a great day...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2002 08:01 PM
12-07-2002 08:01 PM
SolutionEach attempt to 'su' or 'su -' is captured in the '/var/adm/sulog' file. The attempts that have been successful are highlighted with a '+' and those unsucessful with a '-'. You can also look in the /var/adm/syslog/syslog.log file.
Below is a quick one-liner argument that you could use. I've used 'root' as my example, you could change this to your application account, and even run it periodically from cron.
cat /var/adm/sulog | awk '$4 == "-" {print $0}' | grep 'root$'
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2002 08:05 PM
12-07-2002 08:05 PM
Re: Capturing su bandits
Is there something that can be enabled on the user side to capture su information or is the best and only solution through the "sulog"?
(Maybe I can convince my SA to parse out a report for me about my "problematic" account)
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2002 08:13 PM
12-07-2002 08:13 PM
Re: Capturing su bandits
lastb -R apacct
which will show all failed logins WITH the terminal ID too. If the terminal is a telnet session, it will show the user's IP address or hostname. NOTE: if btmp is not readable by you, the sysadmin will have to run this command for you. Since a disabled account implies a Trusted system, so the sysadmin can simply look at the account's status and see the details of when it was disabled.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2002 08:18 PM
12-07-2002 08:18 PM
Re: Capturing su bandits
Thanks a million, again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2002 07:18 AM
12-08-2002 07:18 AM
Re: Capturing su bandits
Bill Hassell, sysadmin