Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Converting Users on Server to NOLOGIN



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




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org