When a user who is authenticated using NIS passwords runs passwd to change her password, all appears to work properly, yet the user's password is not changed: The user needs to use yppasswd. The root and system accounts, in contrast, must use passwd to change their passwords. A common solution to this problem is first to rename passwd-for example, to rootpaswd-and then to change its permissions so only a user working with root privileges can execute it. Second, create a link to yppasswd named passwd. You must work with root privileges when you make these changes.
Try "man 5 passwd"
You can see this yourself by looking at the passwd file - it is the colon symbol.
passwd
grep -i "oot" /etc/passwd (Note, the -i allows the search to be case-insensitive)
$ passwd to change your own password:Log in as root to change the password for a user named fred:# passwd fredCommands to add a new user and then set a password for a user named fred:# adduser fred# passwd fred
passwd
In file /etc/passwd
passwd username
(ls) means list directory (ls -l) to long list and also used to show file or directory permissions. ========================================================== Tray it ========================================================== [root@localhost /]# ls / ahmedtest boot etc lib media mnt opt root selinux sys usr bin dev home lost+found misc net proc sbin srv tmp var [root@localhost /]# ls /etc/passwd /etc/passwd [root@localhost /]# ls -l /etc/passwd -rw-r--r-- 1 root root 1587 May 27 02:30 /etc/passwd [root@localhost /]# ls -l /etc/passwd -rw-r--r-- 1 root root 1587 May 27 02:30 /etc/passwd [root@localhost /]# ls -n /etc/passwd -rw-r--r-- 1 0 0 1587 May 27 02:30 /etc/passwd
cat /etc/passwd
/etc/passwd
Answer--CD\ CD windows\system32net userE.g.> net user asks mypa$$wordIf there are people near you and you don't want them to see the password you type, enter:net user *E.g. > net user asks *> Type a password for the user:> Confirm the password: