- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root passwd has been changed
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
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
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
тАО11-08-2005 01:55 AM
тАО11-08-2005 01:55 AM
root passwd has been changed
We have recently experieced 2 instances where the root password appears to have been changed. I believe!
I have been able to log in using an emergency account and change the passwords back. However, obviously there could be a serious problem here.
What is the best way to track how and how the root password is being changed?
We are not running a trusted system. or, sigh, even password shadowing... (because of a poor app).
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 02:06 AM
тАО11-08-2005 02:06 AM
Re: root passwd has been changed
I would change the password to one that only I know, then divulge it to other people who need to know one at a time, so I would have a chance of knowing who had changed it.
Do you have sudo? If so, it may be that someone is logging in with sudo and switching user to root. If this is what is happening it would be a good idea to tighten up your sudo configuration.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 02:08 AM
тАО11-08-2005 02:08 AM
Re: root passwd has been changed
no i don't have sudo installed on this box. I have it configured on other boxes. I'm pretty comfortable with the config.
The password is only know by 3 people. 1 of which is not here and one of which is me. The other guy didn't change it. so.....
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 02:17 AM
тАО11-08-2005 02:17 AM
Re: root passwd has been changed
2) Immediately change the root account and don't tell anyone other than trusted fellow admins. Choose a well-formed plaintext password that would be very difficult to "Crack". When you begin to get complaints then you have an indication of who is using root.
3) Do a find on the system looking for setuid and setgid scripts/programs and compare these via cksum to known required scripts/programs. It is good practice to ban all setuid scripts and replace them with sudo'ed scripts.
4) After doing step 3, repeat step 2.
5) Don't overlook that one of the easist methods of changing the password would be a restore from backup.
6) Avoid logging in as root for routine tasks. Login as a normal user and then su to root for the required task and then immediately logout from root access. This minimizes the chance of you being your own worst enemy.
The problem with trying to track how the root password has been changed is that essentially anyone with root access can hide their tracks. It does bother me that you say the root password APPEARS to have been changed. How could you possibly not know that? Either it has or hasn't been.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 02:25 AM
тАО11-08-2005 02:25 AM
Re: root passwd has been changed
My only certainty is that the password was not as it should have been and i could not log in.
I tend to agree about about 'UID 0' accounts, but i am not the boss i'm afraid. If it was up to me we'd be running much higher levels of security all round.
normal users don't have shell access on this system. So i am somewhat concerned. Sigh. this is a really insecure system - connections are via telnet. I guess there could be a packet sniffer on the lan.
I don't think the password has been craked as it was changed - changing it is going to alert the sys admins straight away.
I really don't quite know what to do....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 02:25 AM
тАО11-08-2005 02:25 AM
Re: root passwd has been changed
In the absence of that I would check the usual suspects ~/.sh_history ; /var/adm/syslog/syslog.log ; last ; check your cron/at jobs to see if any of them has something wonky.
Do you suspect that your system has been "owned"? You can configure auditing on the box to help keep an eye on it:
http://docs.hp.com/en/B2355-60127/audit.5.html
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 02:46 AM
тАО11-08-2005 02:46 AM
Re: root passwd has been changed
intruder could alter the metadata and remove the audit entries.
Your most likely suspects at this point are these emergency accounts and if you aren't willing to close those barn doors then worrying about caulking the windows is pointless. When you say ordinary users aren't allowed shell access, how do you login? If the answer is as root then "We have met the enemy and the enemy is us."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 04:32 AM
тАО11-08-2005 04:32 AM
Re: root passwd has been changed
Do you have other accts with UID=0? At the very most, should have only 1 of these accts, root=0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 09:51 AM
тАО11-08-2005 09:51 AM
Re: root passwd has been changed
If your system is not in trusted mode, person who does an rlogin to this box from some other boxes(if configured) can change the password, without knowing the root password if this box. I would really recommend not to have non root users with uid 0, u can very well implement sudoers.And give an access to thoese administrators to exceute their respective commands with superuser permissions, which can be defined in the /etc/sudoers file. Disable the direct root login and implement sudo su - kind of super user login . Convince your Team not to enable rlogin, direct root login etc. securuty threts
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 11:36 AM
тАО11-08-2005 11:36 AM
Re: root passwd has been changed
If you switch to trusted system, it would help with logging changes.
While it's a kludge, you could also add an entry into root's profile to make some kind of a note in a log file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 05:45 PM
тАО11-08-2005 05:45 PM
Re: root passwd has been changed
touch /root/su_root.log
chmod 744 /root/su_root.log
root profile file
--- $HOME/.profile ---
echo "`who -mu` is logged" >>$HOME/su_root.log
Now every su to root is logged with /root/su_root.log file.
You can trace those.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2005 07:05 PM
тАО11-08-2005 07:05 PM
Re: root passwd has been changed
I am hoping the less knowledgable member of our team has reset root's password by mistake rather than a user password. To defend myself i am fully conversant in the configuartion of sudo, but seeing as the other 2 admins will log in as root regardless, there's not much point in enabling it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2005 02:15 AM
тАО11-09-2005 02:15 AM
Re: root passwd has been changed
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2005 02:30 AM
тАО11-09-2005 02:30 AM
Re: root passwd has been changed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2005 06:57 PM
тАО11-09-2005 06:57 PM
Re: root passwd has been changed
however, i am trying to push for greater security controls. But there just isn't the will for change in our organisation. it would take a serious breach for anything to get done.
One of our apps can't read shadow password files - you can't even force a password change! and it's a telnet connection. lol
lordy!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2005 07:02 PM
тАО11-09-2005 07:02 PM
Re: root passwd has been changed
You can check login with telnet using process status itself.
ps | grep -q telnet
if [ ${?} -eq 0 ]
then
who -mu -> will give ip-address. With that we can control it.
fi
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 10:03 PM
тАО02-06-2006 10:03 PM