In one of the machines I work with I'm seeing a strange behaviour. I've manually changed the shell of one user in /etc/passwd but when I try to login with that user, it still uses the old one. getent also shows the old one. But a grep on the /etc/passwd file confirms I saved the file correctly.
Is there (on Linux) any kind of /etc/passwd caching?
How to avoid it?
grep <that_user> /etc/passwd
? – heemayl Jan 18 '17 at 8:40chsh <username>
... – 13dimitar Jan 18 '17 at 8:45