On Fri, Nov 09, 2012 at 10:11:56AM -0500, Robert Lefebvre wrote: > I want to be able to give "write to the etc/passwd file" privileges to the > teachers so that they can suspend and restore their student's user privileges.
Of course, using some sort of frontend *might* be a good idea... Instead of writing to /etc/passwd (eeyk!), you could use expire and lock the account: chage --expiredate 1 $the_user passwd --lock $the_user This presumes you have a working system clock, and the date is something newer than January 1st, 1970, but I'm *hoping* that's a safe bet. :) To re-enable the account: chage --expiredate -1 $the_user passwd --unlock $the_user Setting the expiredate to -1 disables account expiration. If you want the account to expire after a certain amount of time: chage --expiredate 2014-01-01 $the_user Check the manpages to make sure those options are available on your distro, but my guess is they're fairly distro-agnostic. live well, vagrant ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net