The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to change root password using shell script with standard password kurva Shell Programming and Scripting 2 02-25-2009 02:35 AM
Change Root Password iBot Solaris BigAdmin RSS 0 09-30-2008 02:30 PM
Change root password? kaugrs HP-UX 4 02-13-2008 12:16 PM
change root password duke0001 SUN Solaris 3 02-22-2007 12:10 PM
How to change root password on HP UX mle06 HP-UX 4 08-11-2006 11:03 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-05-2009
tferrazz tferrazz is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 3
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 (permalink)  
Old 04-06-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,947
what is the output of "who am i" on this system?
  #3 (permalink)  
Old 04-06-2009
tferrazz tferrazz is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 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 04:07 AM.. Reason: added code tags
  #4 (permalink)  
Old 04-07-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,947
is this host member in a nis or ldap domain?
  #5 (permalink)  
Old 04-07-2009
tferrazz tferrazz is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 3
no, it is not a member of nis or ldap.......standalone

/etc/nsswitch.conf all set to files
  #6 (permalink)  
Old 04-07-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,947
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 (permalink)  
Old 04-07-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,163
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 09:33 AM.. Reason: Typo
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0