Change Expired root Password


 
Thread Tools Search this Thread
Operating Systems Solaris Change Expired root Password
# 1  
Old 10-09-2014
Wrench Change Expired root Password

Hello everybody, hope you all are having a good day.

Here is our (my) situation...

We have a process where we clone Solaris 8 hard disk drives then have to configure each drive for the system they will be used in. In the old cloning image the root password never expired. We also have techs doing this and it works fine.

Now, the customer has added tighter security requirements which sets the root password to expire after specified amount of days. So, if it has been longer than the specified days since the capture of the image the techs will be required to change the root password.

In an old procedure on how to do this they would:
  1. Shutdown the system
  2. When shut down enter the command boot -s at the OK prompt
  3. Then it says: after the reboot at the # enter passwd root
Problem is, when trying to boot into single user mode it asks for the root password for maintenance or control-d to skip. I'm a newbie when it comes to UNIX administration (since I have always been a user and it has been 20 years) and was wondering if I was missing anything.

When doing research on the interwebs I have found about booting from a CD-ROM then editing the shadow file. I don't think the techs will be able to do this since they are not UNIX users.

Any help and any suggestion will be greatly appreciated.

Have a Great Day all and Thanks.
# 2  
Old 10-09-2014
Quote:
Originally Posted by Wrongway
Problem is, when trying to boot into single user mode it asks for the root password for maintenance or control-d to skip.
Try ctrl-D to skip. If it gets you into a shell at all, you're there. You may need to do some manual mounting and/or remounting before you can actually alter the shadow files though, since / will probably still be mounted read-only at this point.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 10-09-2014
Quote:
Originally Posted by Corona688
Try ctrl-D to skip. If it gets you into a shell at all, you're there. You may need to do some manual mounting and/or remounting before you can actually alter the shadow files though, since / will probably still be mounted read-only at this point.
Thanks for responding Corona, the control-d does get to a shell. Can they (the techs) enter the command:

Code:
# passwd root

allow them to reset the expired password?

Thanks again.
# 4  
Old 10-09-2014
Quote:
Originally Posted by Wrongway
Thanks for responding Corona, the control-d does get to a shell. Can they (the techs) enter the command:

Code:
# passwd root

allow them to reset the expired password?

Thanks again.
Keep in mind I'm working from my experience with Linux. The situation seems almost identical, right down to the 'root password for maintenance' prompt, but beneath the skin it might not be quite what I think.

Still, the system is up in a very minimal fashion at this point. No services whatsoever, and it hasn't mounted any disks except your root filesystem, and probably read-only at that. Since the password hash is kept in a file in the root filesystem...

Try updating the password. If it works you're done. If it doesn't, you may have to mount -o remount,rw / or the Solaris equivalent then try again.
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 10-09-2014
So, in order to improve security, you now have a procedure in place that allows an unknown person to change the root password without any auditing of the event.

Maybe having root passwords expire is a REALLY BAD IDEA...
This User Gave Thanks to achenle For This Post:
# 6  
Old 10-09-2014
Quote:
Originally Posted by achenle
Maybe having root passwords expire is a REALLY BAD IDEA...
When they get to the final user, they change the password for root and all canned accounts. We just put a default password on that then is in their instructions so they know what it is.

In our procedure we tell the techs what to set the passwords too.
# 7  
Old 10-09-2014
Were you able to change the password?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Can a root role change the root password in Solaris 10?

i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet. and do i have to use the # chgkey -p afterwards? i need to patch is why i am asking. thanks (1 Reply)
Discussion started by: goya
1 Replies

2. Ubuntu

Root access that can't change root password?

We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a guarantee that we still can login to that server and become root no matter of what the other users will... (2 Replies)
Discussion started by: 244an
2 Replies

3. Shell Programming and Scripting

Sftp - password change / expired

What happens to sftp when unix password expires / changes ? Do we need to regenerate keys again ? Please help. (3 Replies)
Discussion started by: vegasluxor
3 Replies

4. Solaris

Never Expired for root password

Never expired for root password Guy's I want to change the setting to keep the root password to be nerved expired! Please advice with the sitting! (9 Replies)
Discussion started by: top.level
9 Replies

5. UNIX for Dummies Questions & Answers

Request for change password when expired

Hello folks, I have few linux machines and one server from which I can connect to others without password (of course ssh key). On some server when root password will expired is asking me for change passord but on some servers no. When I can find some configuration of this behavior? Thx for any... (1 Reply)
Discussion started by: vikus
1 Replies

6. Solaris

Solaris 8 - Asks for current root password when trying to change root password.

Hello All, I have several solaris boxes running Solaris 8. When changing root passwords on them, all will simply ask for the new root password to change and of course to re-type the new password. One of the systems however asks for the existing root password before it will display the new password... (8 Replies)
Discussion started by: tferrazz
8 Replies

7. Shell Programming and Scripting

how to change root password using shell script with standard password

Hi Friends. I am new to scripting now i want to change the root password using the script with standard password. which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies

8. Solaris

Expired password doesn't prompt for change

I'm on a Solaris 8 box that is not prompting users to change their password after it has expired. I have an older Solaris 8 box that does. We're accessing both via ssh. We have recently built the box that doesn't prompt from scratch. Obviously, we've overlooked something but we don't know what.... (2 Replies)
Discussion started by: mark24p
2 Replies

9. Solaris

Root Password change

Hi All, I would like to find out when the root password changed last time..! :p Please guys help me Out (2 Replies)
Discussion started by: bullz26
2 Replies

10. Solaris

expired root password

We have expiration set on the root password for 30 days. the only way to login as root remotley is login as another user and then su as root. I logged in to the machine today tried to su as root, and got the message password has expired, use passwd to change but i cant get in as root.. If... (1 Reply)
Discussion started by: csaunders
1 Replies
Login or Register to Ask a Question