How do I edit a etc passwd file in Linux?

How do I edit a etc passwd file in Linux?
Answer
The best way to edit /etc/passwd, or shadow or group file is to use vipw command. Traditionally (under UNIX and Linux) if you use vi to edit /etc/passwd file and same time a user try to change a password while root editing file, then the user’s change will not entered into file.
 

Tìm kiếm

Back
Top