On Thu, May 18, 2000 at 12:10:45AM +1200, Andrew Hill wrote: > > I'd like to have a way to quickly default a whole bunch of user accounts > back to the orginal. I had to do it yesterday and it took a while, i removed a bunch > of packages from the network and peoples logins were failing cause they had > config files in there expecting them and then the logon would die. a simple > script to do this would be nice but i just havn't got around to writing on. well it would not be that hard to awk though /etc/passwd for uids >= 1000 and cd ~user ; mv .bashrc .bashrc.old ; cp /etc/skel/.bashrc . and so on, but i have to ask, how the devil did they setup there login files so that they get booted out of something failed? the only place i can think of where that might happen is ~/.xsession but they should still be able to to a regular old ssh login and fix it themself.. (for .xsessions i suppose it would be good to teach users to make them safe with [ -x `which wmaker` ] && exec wmaker || exec xterm or some such) last time i checked when something went wrong in ~/.bash* you just got a message printed to the tty and life goes on. (unless maybe if they were using rbash or something) > ps. text config files are good. registry like thing bad. just ask your local MCSE what you should do with a corrupted registry and he will answer: reformat and reinstall of course. -- Ethan Benson http://www.alaska.net/~erbenson/
Attachment:
pgpie0R2CQHjL.pgp
Description: PGP signature