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


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 8 - Asks for current root password when trying to change root password.
# 1  
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 prompt for root.

Any ideas.


Thanks in advance

Tony
# 2  
what is the output of "who am i" on this system?
# 3  
Output examples

Hi DukeNuke2,
Thanks for your reply. Here is some additional info including the output of who am i.

Thanks for any assistance or ideas.



SunOS hostname 5.8 Generic_117350-46 sun4u sparc SUNW,Ultra-80

Code:
hostname:():/root
# who am i
root       pts/1        Apr  7 10:01    (###.###.###.##)
hostname:():/root
# id
uid=0(root) gid=100(users)
hostname:():/root
# passwd
passwd: Changing password for root
Password:
passwd: Sorry, wrong passwd
Permission denied
hostname:():/root

Example of trying to change password of normal user
Code:
hostname:():/root
# passwd joe
Password:
passwd: Sorry, wrong passwd
Permission denied


Last edited by Yogesh Sawant; 04-07-2009 at 06:07 AM.. Reason: added code tags
# 4  
is this host member in a nis or ldap domain?
# 5  
no, it is not a member of nis or ldap.......standalone

/etc/nsswitch.conf all set to files
# 6  
have you rebooted the server? checked all filesystems/permissions (special /var/tmp)? how do you login (ssh/telnet/console)? have you run "pwconv"?
there are so many possibilities... it's hard to do this remote...
# 7  
Root apparently being in group 100 (users) is a concern.
Did you "su - root" or become root by some other means?

Please post the following, and post any errors if your root account gives and error:

# Permissions of root directory
ls -ald /

# Permissions of /etc
ls -lad /etc

# Permissions of password file itself
ls -lad /etc/passwd

# Location of passwd command
type passwd

# Permissions of passwd command
ls -lad <answer from above>

# Root entry from /etc/passwd
grep \^root: /etc/passwd

# Results of password file checking program
pwck

# Results of group file checking program
grpck

Last edited by methyl; 04-07-2009 at 11:33 AM.. Reason: Typo
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #86
Difficulty: Easy
Windows NT was developed as a Unix-like operating system.
True or False?

9 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. Solaris

Can't change root password in solaris express 11

How do I change root password in SolarisExpress 11? I used passwd while elevated to root and all it changes is the password of the user I am logged in, not te root password. (2 Replies)
Discussion started by: taltamir
2 Replies

4. 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

5. 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

6. HP-UX

How to change ROOT password.

Hi, we have a HP-UX server of model 9000/800/rp4440. We have been trying to reset the root password but are in vain.I used the following command and also are the outputs which i have received. # passwd Changing password for root New password: Re-enter new password: Unexpected failure.... (3 Replies)
Discussion started by: angelofhell
3 Replies

7. HP-UX

Change root password?

Hello! I forget the root password and I need to change it. I've read others threads about it in this forum, but it seems it's necessary to modify /etc/passwd file. In my HPUX Systems this passwd file have only "read" permissions ant its owner is the root user, so how can i modify this file, if I... (4 Replies)
Discussion started by: kaugrs
4 Replies

8. Solaris

change root password

Hi, please advise me what is the simplest way to change root password on Sun Sparc 64 bit with Solaris 9 on it. Thanks in advance. (3 Replies)
Discussion started by: duke0001
3 Replies

9. HP-UX

How to change root password on HP UX

Hello, I try to make a change on the root password on HP UX. I use sam but it didn't work here. I try to login as root but I failed however, I login to my name and then change to su and su password then it is o.k There is not much different from root and su but how do we use root? Thanks so... (4 Replies)
Discussion started by: mle06
4 Replies

Featured Tech Videos