tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: rm /etc/passwd!!
@ 2001-08-28 21:43 Tru64 User
  0 siblings, 0 replies; only message in thread
From: Tru64 User @ 2001-08-28 21:43 UTC (permalink / raw)
  To: tru64-unix-managers

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-28 21:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-28 21:43 SUMMARY: rm /etc/passwd!! Tru64 User

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