HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: audit trail in hpux
Operating System - HP-UX
1833845
Members
2076
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-11-2009 09:09 PM
11-11-2009 09:09 PM
audit trail in hpux
dear HPUX gurus,
would like to seek your advice. how to track password change in hpux. we don't use sam, i can't find in syslog. do the audit need to be turned on manually? where to check all the command ie paswd in hpux. we are using HPUX 11.00 without TCB. Many many thanks. hope to hear from you.
would like to seek your advice. how to track password change in hpux. we don't use sam, i can't find in syslog. do the audit need to be turned on manually? where to check all the command ie paswd in hpux. we are using HPUX 11.00 without TCB. Many many thanks. hope to hear from you.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2009 09:27 PM
11-11-2009 09:27 PM
Re: audit trail in hpux
Hi,
#passwd -sa >> may help you.
#man passwd >> for more details.
thnx...farhan
#passwd -sa >> may help you.
#man passwd >> for more details.
thnx...farhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2009 10:40 PM
11-11-2009 10:40 PM
Re: audit trail in hpux
Hi ,
a small workaround for tracing password command without enabling TCB.
1)
# touch /usr/bin/aud
# chmod 555 /usr/bin/aud
# chmod u+s /usr/bin/aud
2) Insert the below line in /usr/bin/aud
echo "#####################################" >> /tmp/audit
echo " PASSWORD COMMAND AUDIT " >> /tmp/audit
echo "####################################" >> /tmp/audit
echo " Server Name " = $(hostname) >> /tmp/audit
echo " USER Name " = $(whoami) >> /tmp/audit
echo " DATE of Attempt " = $(date) >> /tmp/audit
J=`tty |cut -c 6-` >> /tmp/audit
echo " CLIENt IPAddrr " = $(who -u |grep $J |awk '{print $NF}') >> /tmp/audit
echo "####################################" >> /tmp/audit
/usr/bin/passwd.org
3) backup your /usr/bin/passwd file (with the correct permission for safer side).
4)mv /usr/bin/passwd /usr/bin/passwd.org
5)mv /usr/bin/aud /usr/bin/passwd
6) try passwd command
7) the audit information will be available in /tmp/audit (change the destination according to your wish)
Aneesh
a small workaround for tracing password command without enabling TCB.
1)
# touch /usr/bin/aud
# chmod 555 /usr/bin/aud
# chmod u+s /usr/bin/aud
2) Insert the below line in /usr/bin/aud
echo "#####################################" >> /tmp/audit
echo " PASSWORD COMMAND AUDIT " >> /tmp/audit
echo "####################################" >> /tmp/audit
echo " Server Name " = $(hostname) >> /tmp/audit
echo " USER Name " = $(whoami) >> /tmp/audit
echo " DATE of Attempt " = $(date) >> /tmp/audit
J=`tty |cut -c 6-` >> /tmp/audit
echo " CLIENt IPAddrr " = $(who -u |grep $J |awk '{print $NF}') >> /tmp/audit
echo "####################################" >> /tmp/audit
/usr/bin/passwd.org
3) backup your /usr/bin/passwd file (with the correct permission for safer side).
4)mv /usr/bin/passwd /usr/bin/passwd.org
5)mv /usr/bin/aud /usr/bin/passwd
6) try passwd command
7) the audit information will be available in /tmp/audit (change the destination according to your wish)
Aneesh
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP