PASSWD(1) General Commands Manual PASSWD(1)NAME
passwd - change login password
passwd [ name ]
This command changes (or installs) a password associated with the user name (your own name by default).
The program prompts for the old password and then for the new one. The caller must supply both. The new password must be typed twice, to
New passwords must be at least four characters long if they use a sufficiently rich alphabet and at least six characters long if monocase.
These rules are relaxed if you are insistent enough.
Only the owner of the name or the super-user may change a password; the owner must prove he knows the old password.
SEE ALSO login(1), passwd(5), crypt(3)
Robert Morris and Ken Thompson, Password Security: A Case History
Check Out this Related Man Page
yppasswd(1) User Commands yppasswd(1)NAME
yppasswd - change your network password in the NIS database
The yppasswd utility changes the network password associated with the user username in the Network Information Service (NIS) database. If
the user has done a keylogin(1), and a publickey/secretkey pair exists for the user in the NIS publickey.byname map, yppasswd also re-
encrypts the secretkey with the new password. The NIS password may be different from the local one on your own machine.
yppasswd prompts for the old NIS password, and then for the new one. You must type in the old password correctly for the change to take
effect. The new password must be typed twice, to forestall mistakes.
New passwords must be at least four characters long, if they use a sufficiently rich alphabet, and at least six characters long if mono-
case. These rules are relaxed if you are insistent enough. Only the owner of the name or the super-user may change a password; superuser on
the root master will not be prompted for the old password, and does not need to follow password construction requirements.
The NIS password daemon, rpc.yppasswdd must be running on your NIS server in order for the new password to take effect.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWnisu |
SEE ALSO keylogin(1), login(1), NIS+(1), nispasswd(1), passwd(1), getpwnam(3C), getspnam(3C), secure_rpc(3NSL), nsswitch.conf(4), attributes(5)WARNINGS
Even after the user has successfully changed his or her password using this command, the subsequent login(1) using the new password will be
successful only if the user's password and shadow information is obtained from NIS. See getpwnam(3C), getspnam(3C), and nsswitch.conf(4).
The use of yppasswd is discouraged, as it is now only a wrapper around the passwd(1) command, which should be used instead. Using passwd(1)
with the -r nis option (see NIS+(1)) will achieve the same results, and will be consistent across all the different name services avail-
The update protocol passes all the information to the server in one RPC call, without ever looking at it. Thus, if you type your old pass-
word incorrectly, you will not be notified until after you have entered your new password.
SunOS 5.11 28 Nov 2001 yppasswd(1)
does anyone know how to combine 2 lines? this is what im playing around with.
(filename: online, user name: prml0001, real name: primal)
who | grep $1 > /dev/null
grep $1 /etc/passwd | cut -f 5, -d :
echo is logged on
grep $1... (13 Replies)
If you want a short description read my last thread!
I have no root access anymore. No remote access! By user access i get a programm started and when i close it, i got logged off!
So I guess I messed up the passwd file!
is there a chance of booting a unix system (SCO-UNIX UnixWare... (15 Replies)
My goal is to protect the /etc/passwd from unauthorized viewing. I wish ti change the permissions of the file to :
-r--r----- 1 root bin
so only root or accounts of the "bin" group could query this sensitive file. All our other processes have been ajusted to not need any info from... (16 Replies)
as others users here , i'm searching for a script which can automate "passwd" dialog .
I saw threads about "expect tool" but on my platforms , "C" product isn't installed and i'm not the admin so i can't install it.
is there another way to do it , with a "simple" shell script ???
... (35 Replies)
This is the source code:
using namespace std;
struct passwd *user;
char login="alex", password="qwertyuiop";
if ((user= getpwnam(login)) == NULL)
cout << "No such user\n";
else if... (24 Replies)
I just started on new box where I have to diff passwd working perfectly on the very same account/user. I see that shadow was added recently (I'm not a root in there), I see 'x' in passwd. Not sure how it should work, should I change old passwd for one defined in shadow? Or it's fine to... (20 Replies)
I'm having these problems with these commands and I have not idea why
If 'passwd' is not a typo you can run the following command to lookup the package that contains the binary:
-bash: passwd: command not found
# useradd temp
Warning:... (15 Replies)
I posted the below question on the CUPS forums yesterday and have still not been able to find a good answer of why or if I can keep this from happening.
I have been looking for a while now and have still not found what I am looking for. Is there a way to allow multiple users to be updating the... (13 Replies)
i cant recovery root passwd through serial console mode by using CDROM.. i tried following step but no luck
in ok prompt :
ok boot cdrom -s it comes single user mode
i check format cmd it showing disk
#mount /dev/dsk/c1t0d0s0 /a
# vi /etc/shadow ( it... (13 Replies)
I wonder whether someone can help me with what I'm trying to achieve
Basically, the objective is one script to create new user on more than 70 linux hosts if required.
Everything works apart from the highlighted part. It gave me an output
passwd: Unknown user name ''. when try to set... (35 Replies)
I've created .htaccess and use htpasswd comand to create .htpasswd
Now when I try to access my protected area I still have loging panel.
I checked apache error log lile and found that there is some problem with mismatch password.
I use Apache 2.2 .22
Is there some erron in creating... (25 Replies)
I have this requirement to change the password for other servers remotely from one server. So, I installed public keys on all servers and wrote the following script to do the job. Something appears to be wrong with my loop, as it only changes one server and ignores the rest. I'm... (24 Replies)