I need to put one character inside the password file so that nobody can notice.I thought that if I was able to put the password as plain text and put something like a space nobody would ever find out. But I don't know how to put plain text in the /etc/passwd or /etc/shadow file.Is there any way to put just one character or a really short string in there so that if someone opens that file doesn't even notice that for instance gnats has a password.Example:gnats: :16273:0:99999:7:::ORgnats:8:16273:0:99999:7:::
/etc/passwd shortest password
password;root
In short, no. The formats of these files are very specific, and the password field strings are hashes which will have a minimum length of 8 characters, 16 or more on more modern versions that use stronger password hashing. If you're looking for a way to just put in a text string, look at the gecos field in /etc/passwd. If you want a way to have an invisible password, you're out of luck in dealing with these two files.