Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Disable a user's account without deleting it' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Disable a user's account without deleting it
Authored by: akinspe on Nov 21, '05 08:57:59PM

A far easier (and probably less dangerous) way would be to use the pwpolicy command:

pwpolicy -u shortname -setpolicy isDisabled=1

Use :
pwpolicy -u shortname -setpolicy isDisabled=0

To restore. You'll need to be an admin to change this. man pwpolicy for more user info goodness.



[ Reply to This | # ]