Hello
I want to set the password for user never expire through the command line. For your information the box is running under Solaris 8 platform. (2 Replies)
Helo ,
I m using linux pam library for user and its password authentication.
I m creating new user and giving its password.I m giving password of 10 characters.now when I login in as that newly created user its ask me
$ su - ram
Password:
You are required to change your password immediately... (12 Replies)
I have installed Solaris 10 x86 in VMware 5.5.I logged in as root user and trying to create new user and also reset the password for existing user, i am getting "Permission Denied Error". I checked the /etc/shadow file, looks fine permission is 400. Earlier i was able to do it but suddenly it... (2 Replies)
Hi All,
Is this true on chage command?
-M, MAX_DAYS
Passing the number -1 as MAX_DAYS will remove checking a password's validity.
Does this means password will not expire anymore?
Thanks for any comment you may add. (0 Replies)
I have a mysql database on the server where I have root access also to phpmyadmin.
I have such a database 1, which is a table users where a user named admin.
How shall be observed as the password for this user? (1 Reply)
Hi,
I am unable to set the password remotely. I am using the script as below:
ep=`echo "$p" | /usr/lbin/makekey`
ssh -t $i "/usr/local/bin/sudo useradd -c "$user_c" -m -d /home/$user_id -s /bin/ksh $user_id; /usr/local/bin/sudo /usr/sam/lbin/usermod.sam -F -p $ep $user_id"
The... (0 Replies)
I have a Solaris-10 non global zone, on which I am not able to reset password, while counts are matching in /etc/passwd and /etc/shadow. I tried searching its solution in various forums, but nothing is working
# id -a oemagent
uid=56605(oemagent) gid=56595(tess) groups=56595(tess)
# passwd -s... (2 Replies)
Hi,
I have a requirement where in i need to write a shell script to set users password to never expire. I know the command which is used to perform the same .. which is chage command.
But, could not figure out how to do the same in shell script.
Could you please help me with the shell... (3 Replies)
Discussion started by: suren424
3 Replies
LEARN ABOUT HPUX
yppasswd
yppasswd(1) General Commands Manual yppasswd(1)NAME
yppasswd - change login password in Network Information System (NIS)
SYNOPSIS
[name]
Remarks
The Network Information Service (NIS) was formerly known as Yellow Pages (YP). The functionality remains the same; only the name has
changed.
DESCRIPTION
changes or installs a password associated with the login name in the Network Information System (NIS). The NIS password can be different
from the one on your own machine. If name is omitted, it defaults to the name returned by (see getlogin(3C)).
prompts for the old NIS password (even if it does not exist), then twice for the new one. The old password must be entered correctly for
the change to take effect. Checks occur to ensure that the new password meets the following construction requirements.
o Only the first eight characters are significant.
o A password can be as few as four characters long if it contains
o at least one special character or
o a mixture of numeric, uppercase and lowercase letters.
o A password can be as few as five characters long if it contains a mixture of
o uppercase and lowercase letters or
o numeric and either uppercase or lowercase letters.
o A password must contain at least six characters if it contains only monocase letters.
All these rules except the first are relaxed if you try three times to enter an unacceptable new password. You cannot, however, enter a
null password.
Only the owner of the name or the superuser can change a password.
The Network Information System password daemon, must be running on the master NIS password server to change NIS passwords. See yppass-
wdd(1M).
WARNINGS
The password update protocol passes the old and new passwords to the master NIS server at once. Thus, if the old NIS password is incor-
rect, no notification is given until the new NIS password is successfully entered.
The password construction rules are different from those of the HP-UX command (see passwd(1)).
The root user's password cannot be changed using or Therefore, root users must change their password in the files database and then recon-
struct the NIS maps using the command. For more information on how to use the command, see ypmake(1M).
User applications that call this routine must be linked with For example,
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO id(1), passwd(1), su(1), yppasswdd(1M), getlogin(3C), yppasswd(3N), ypfiles(4).
yppasswd(1)