From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653669622148.tru64-unix-managers.marc@archive.invalid> From: Tru64 User Date: Tue, 28 Aug 2001 21:43:16 +0000 To: tru64-unix-managers Subject: SUMMARY: rm /etc/passwd!! X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653669622148 Halted system, tried cp, got "read only file system", then ran bcheckrc, that mounted root, and I copied it back. Thanks to all who sent in their suggestions. Couldn't locate cd!! .....single user worked! Those are the gotcha's of using sudo!! when u make a mistake, there is no going back. Like in this case, if I had root shell, I would simply copy it back as many suggested. For those unaware of sudo, once one is in the file sudoers, he can execute commands as root, by doing sudo (it checks ur auth. everytime), so after moving passwd passwd.old, it couldn't validate me. This is a nice way to make sure all commands executed as root as logged, by user name. ********************************* alan@nabeth.cxo.dec.com I don't think the single-user system requires the password file, so that should be sufficient. You might also want to look at the command vipw. ORIGINAL POST (UPDATE): --- Tru64 User wrote: > I was using sudo...so i dont have root shell. > I cannot simply do a mv passwd.old passwd. > One of those days....duhh!!! > I guess I will need cd to get root shell, mount etc, > and mv it back.....hoping for simply single user > mode > for it to work.... > > > --- Tru64 User wrote: > > Hi, > > while maintaining passwd files, instead of cp > passwd > > passwd.old, I did a mv!!!! > > dont have root shell. > > Will i require cd to recover from this, or just > > single > > user mode? > > thanks > > > > ===== > > > > > > __________________________________________________ > > Do You Yahoo!? > > Make international calls for as low as $.04/minute > > with Yahoo! Messenger > > http://phonecard.yahoo.com/ > > > ===== > > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute > with Yahoo! Messenger > http://phonecard.yahoo.com/ ===== __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/