[X-Unix] Remote force logout and lockout of user

Dan Frakes lists at frakes.org
Mon Jun 14 10:27:36 PDT 2004


On Sun, 13 Jun 2004 23:37:03 -0500, luke <etyrnal at ameritech.net> wrote:
> sure would be cool to find out that there is a unix-way to set a
> enable/disable account bit for a user...

If you log in remotely via SSH, you should be able to use the niutil command
to replace the "passwd" value for /users/username in the NetInfo database
with an asterisk (*):

niutil -createprop / /users/username passwd '*'


This not only prevents the user account from appearing at the login screen,
but also prevents them from logging in at all.


-- 
----------------------------------
Get some Mac OS X Power Tools:
Second Edition available now!
<http://www.MacOSXPowerTools.com/>
----------------------------------





More information about the X-Unix mailing list