As an administrator, you can manually edit /etc/passwd and /etc/shadow . If you intend to do this use vipw instead. This tailored version of the Vi editor is specifically designed for editing these critical files. Any error can have serious consequences, such as no one being able to log in. Therefore, if you make manual changes to any of these files, you should check their integrity
Besides vipw, another way to do this is to use the pwck command, which you can run without any options to see whether there are any problems you need to fix.
No comments:
Post a Comment