tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Tru64 User <tru64user () yahoo ! com>
To: tru64-unix-managers
Subject: SUMMARY: rm /etc/passwd!!
Date: Tue, 28 Aug 2001 21:43:16 +0000	[thread overview]
Message-ID: <102653669622148.tru64-unix-managers.marc@archive.invalid> (raw)

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 <command>  (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 <tru64user@yahoo.com> 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 <tru64user@yahoo.com> 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/

                 reply	other threads:[~2001-08-28 21:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox