[Discuss] Converting Users on Server to NOLOGIN
Jerry Feldman
gaf at blu.org
Sat Nov 12 07:54:49 EST 2011
On 11/11/2011 04:22 PM, jbk wrote:
> Our home file server has provided a dual purpose role as a second
> desktop, but as all the children are now grown and have their own
> devices I would like to convert their accounts to nologin on it.
> The home directories are essentially empty of user files. What if any
> consequence should I anticipate in converting them to nologin?
> I'm assuming that the samba shared user directories will still provide
> them access to their files through the network.
>
Very simple. Replace the shell on the password file with /sbin/nologin
As root, edit your password file with the 'vipw' command.
As an example you should already have nologin accounts:
pcap:x:77:77::/var/arpwatch:/sbin/nologin
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id:3BC1EB90
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66 C0AF 7CEA 30FC 3BC1 EB90
More information about the Discuss
mailing list