home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.unix.geeks      The gathering of the socially-retarded      298 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 41 of 298   
   Michael Tosch to Denis   
   Re: root unable to get shell   
   14 Jul 04 09:29:46   
   
   XPost: comp.unix.questions   
   From: eedmit@NO.eed.SPAM.ericsson.PLS.se   
      
   In article <1e24dfd1.0407130934.6e997391@posting.google.com>, de   
   dogg105@yahoo.com (Denis) writes:   
   > UNIX Gurus,   
   >   
   > I made a mistake and edited the /etc/passwd file to chnage the root   
   > user's shell.   
   > Instead of using /bin/bash, I changed it to /sbin/bash... What I   
   > really did was change /sh to /bash and didn't realize that I needed to   
   > change the dir as well.   
   >   
   > When I login or do an su I get a message from the shell stating "No   
   > shell".   
   >   
   > Is there a way for me to fix this without reloading the Solaris 8   
   > OS????   
   >   
   > Thanks,   
   > Denis   
      
      
   The standard way is   
      
   Stop-A   
   ok> boot -s cdrom   
   # mount /dev/dsk/c0t0d0d0 /a   
   # vi /a/etc/passwd   
      
      
   Here is another (fast) way:   
   if you have got a LAN and havent disabled the ftp server,   
   you get put a new /etc/passwd via ftp.   
      
   ftp yourmachine   
   Name: root   
   Password:   
   ftp> cd /etc   
   ftp> put passwd   
      
      
   --   
   Michael Tosch   
   IT Specialist   
   HP Managed Services Germany   
   Phone: +49 2407 575 313   
   Mail: michael.tosch:hp.com   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca