UNIX & Linux Forums

UNIX & Linux Forums (https://www.unix.com/index.php)
-   Solaris (https://www.unix.com/solaris/)
-   -   Problem while changing the password in solaris 10 (https://www.unix.com/solaris/107714-problem-while-changing-password-solaris-10-a.html)

daya.pandit 04-21-2009 02:18 AM

Problem while changing the password in solaris 10
Hi guys,

there are some user in my network but they are not able to change their password but by root i am able to change the password.

while trying to change the password this massage is showing

Sorry, wrong passwd
Permission denied

please help me out as i am new for Sun solaris


incredible 04-21-2009 02:44 AM

If its an invalid a/c, the output will be like this:-
root@unknown # passwd mary
passwd: User unknown: mary
Permission denied

Btw, can you post the /etc/default/login and /etc/passwd file contents?

daya.pandit 04-21-2009 05:53 AM

not it's not invalid a/c
the user are exists but not able to change the passowrd

have a look of /etc/defaults/login &


ident  "@(#)login.dfl  1.14    04/06/25 SMI"
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.

# Set the TZ environment variable of the shell.

# ULIMIT sets the file size limit for the login.  Units are disk blocks.
# The default of zero means no limit.

# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
# CONSOLE=/dev/console

# PASSREQ determines if login requires a password.

# ALTSHELL determines if the SHELL environment variable should be set

# PATH sets the initial shell PATH variable

# SUPATH sets the initial shell PATH variable for root

# TIMEOUT sets the number of seconds (between 0 and 900) to wait before
# abandoning a login session.

# UMASK sets the initial shell file creation mode mask.  See umask(1).

# SYSLOG determines whether the syslog(3) LOG_AUTH facility should be used
# to log all root logins at level LOG_NOTICE and multiple failed login
# attempts at LOG_CRIT.

# SLEEPTIME controls the number of seconds that the command should
# wait before printing the "login incorrect" message when a
# bad password is provided.  The range is limited from
# 0 to 5 seconds.

# DISABLETIME  If present, and greater than zero, the number of seconds
# login will wait after RETRIES failed attempts or the PAM framework returns
# PAM_ABORT. Default is 20. Minimum is 0. No maximum is imposed.

# RETRIES determines the number of failed logins that will be
# allowed before login exits. Default is 5 and maximum is 15.
# If account locking is configured (user_attr(4)/policy.conf(4))
# for a local user's account (passwd(4)/shadow(4)), that account
# will be locked if failed logins equals or exceeds RETRIES.
# The SYSLOG_FAILED_LOGINS variable is used to determine how many failed
# login attempts will be allowed by the system before a failed login
# message is logged, using the syslog(3) LOG_NOTICE facility.  For example,
# if the variable is set to 0, login will log -all- failed login attempts.


"passwd" 20 lines, 1538 characters
munishk:x:150138:1:Munish Kumar:/export/home3/Student2nd_year/munishk/:/bin/sh
sakshis:x:150139:1:Sakshi Sharma:/export/home3/Student2nd_year/sakshis/:/bin/sh
vikleshs:x:150140:1:Viklesh Sharma:/export/home3/Student2nd_year/vikleshs/:/bin/sh
manojc:x:150141:1:Manoj Chopra:/export/home3/Student2nd_year/manojc/:/bin/sh
rajeevk:x:150143:1:Rajeev Kumar:/export/home3/Student2nd_year/rajeevk/:/bin/sh
shallyg:x:150144:1:Shally Garg:/export/home3/Student2nd_year/shallyg/:/bin/sh
naveenr:x:150146:1:Naveen Rangray:/export/home3/Student2nd_year/naveenr/:/bin/sh
mayurij:x:150148:1:Mayuri Jangra:/export/home3/Student2nd_year/mayurij/:/bin/sh
yogenders:x:150149:1:Yogender Singh:/export/home3/Student2nd_year/yogenders/:/bin/sh
jyotir:x:150150:1:Jyoti Rani:/export/home3/Student2nd_year/jyotir/:/bin/sh
ashutoshp:x:150151:1:Ashutosh Pandey:/export/home3/Student2nd_year/ashutoshp/:/bin/sh
rajeshk:x:150153:1:Rajesh Kumar:/export/home3/Student2nd_year/rajeevk/:/bin/sh
dineshk:x:150154:1:Dinesh Kumar:/export/home3/Student2nd_year/dineshk/:/bin/sh
parveenk:x:150155:1:Parveen Kumar:/export/home3/Student2nd_year/parveenk/:/bin/sh
arung:x:150157:1:Arun Garg:/export/home3/Student2nd_year/arung/:/bin/sh

jegaraman 04-21-2009 09:03 AM

check the group 1 for which they belong.

Does the permissions are granted for them to changed.

Also check /etc/passwd and /etc/shadow permissions.

incredible 04-21-2009 09:36 AM


Originally Posted by jegaraman (Post 302309142)
Also check /etc/passwd and /etc/shadow permissions.

Nothing to do with this. the OP said only SOME users cant.
Can you check that the home directories are owned by the respective owners, with the rightful perms.. Did you do a comparison against the other users.

incredible 04-21-2009 09:41 AM

Check your /etc/nsswitch.conf file and see if the entry is "passwd: files"
You can also try "passwd -r files username"

ls -l /etc/pam.conf <----- pls check if anyone had made changes to this file?

incredible 04-21-2009 09:44 AM

If this doesn't work, try on just one user,:- remove the passwd entry in /etc/shadow file.
do "passwd username" again..

All times are GMT -4. The time now is 03:31 PM.

UNIX and Linux Forums
Search Engine Optimisation provided by DragonByte SEO v2.0.32 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Unix & Linux Forums Content Copyright©1993-2017. All Rights Reserved.
Forum Operations by The UNIX and Linux Forums