- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- changing root password
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
10-02-2008 08:10 PM
10-02-2008 08:10 PM
may i know are there any way to keep check on when the root password has been changed?
after i changed the root password i can't find any related info under /var/adm/syslog.
thx so much.
terrytse
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2008 08:16 PM
10-02-2008 08:16 PM
Re: changing root password
# /usr/lbin/getprpw -m spwchg root
If your system is not trusted you can try:
# passwd -s root
#man getprpw
#man passwd
for more information on each command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2008 07:53 PM
10-06-2008 07:53 PM
Re: changing root password
may i know are there any log file which will keep check on root password changed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 12:09 AM
10-07-2008 12:09 AM
Re: changing root password
root history file will have the details if the password has been changed by command.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 12:39 AM
10-07-2008 12:39 AM
Re: changing root password
Option 1:
Write a wrapper for the password program. And change the order of /etc/PATH to run you passwd script before the original. The down site is that users can run the passwd program directly with full qualified path or the /etc/PATH can be changed.
#!/usr/bin/ksh
USER=$1
logger -t PASSWORDCHANGE -p local0.info "The password for $USER is changing"
/usr/bin/passwd $USER
if [ $? -ne 0 ]
then
logger -t PASSWORDCHANGE -p local0.info "Failed to change password for $USER"
else
logger -t PASSWORDCHANGE -p local0.info "password changed for user $USER"
fi
Option 2:
Move the original passwd binary to a new location and place the wrapper instead. This is not a good sollution because "sam" will try to use the replaced file.
The other downside is that and OS opgrade will replace your file.
You might combine option 1 with some RBAC to make sure how will be able to run the original passwd command.
Best regards JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 05:27 AM
10-07-2008 05:27 AM
Re: changing root password
but may i know where can i find the root history file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 05:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 07:29 AM
10-07-2008 07:29 AM
Re: changing root password
It's named by $HISTFILE. Typically sh doesn't define this for root. One default would be ~/.sh_history.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 12:23 AM
10-09-2008 12:23 AM
Re: changing root password
;)