[wplug] passwd file
Alexandros Papadopoulos
apapadop at andrew.cmu.edu
Fri Jul 11 12:58:29 EDT 2003
On Fri, 11 Jul 2003, Chris wrote:
>
> I have a lot of system users that I don't what to be able to log on locally.
> I know that I can use usermod -s /sbin/nologin username, but I don't want to
> do that for every user. Can I just edit the passwd file manually, or are
> there more files that need to be changed?
You could do that easily with a script.
#!/bin/bash
for username in user1 user2 user3 user4 [etc...]
do
usermod -s /sbin/nologin $username
done
of course, back up your passwd file first.
-A
More information about the wplug
mailing list