Re: I've done something stupid

2007-11-09 Thread Douglas A. Tutty
On Fri, Nov 09, 2007 at 09:35:31AM -0800, new_guy wrote:
> Aaron Martinez wrote:
> > 
> > can  you log in using single user mode?
> > 
> > boot>  boot -s
> > 
> > then change it?
> > 
> > Aaron
> > 
> > I forgot to mention the box was headless. I had to return to the site. I
> > was hoping there was some other way to make the fix... not matter now. I
> > visited the site this morning and made the change. Thanks again, Brad

For the future, I find it useful to have headless boxes set up for
serial console attached (or attachable) to a modem.  Saves the drive.

Doug.



Re: I've done something stupid

2007-11-09 Thread new_guy
Aaron Martinez wrote:
> 
> 
> can  you log in using single user mode?
> 
> boot>  boot -s
> 
> then change it?
> 
> Aaron
> 
> I forgot to mention the box was headless. I had to return to the site. I
> was hoping there was some other way to make the fix... not matter now. I
> visited the site this morning and made the change. Thanks again, Brad
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/I%27ve-done-something-stupid-tf4775501.html#a13671503
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: I've done something stupid

2007-11-09 Thread new_guy
Aaron Martinez wrote:
> 
> 
> can  you log in using single user mode?
> 
> boot>  boot -s
> 
> then change it?
> 
> Aaron
> 
> Thanks to all! I'm back up and running. I just feel like an idiot :)
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/I%27ve-done-something-stupid-tf4775501.html#a13667702
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: I've done something stupid

2007-11-08 Thread STeve Andre'
On Thursday 08 November 2007 22:12:25 new_guy wrote:
> Somehow as root, I changed my shell to a non-existent shell '/bin/tcsh' on
> OpenBSD 4.2
>
> When I try to su, I get this error:
> su: /bin/tcsh: No such file or directory
>
> I can't login as root, ssh in as root or su to root. I'm not in the sudoers
> file (but I am in the wheel group) so I can't sudo chsh for root. Any
> suggestions. I just set the box up today. It's been years since I used
> OpenBSD. I'm a bit rusty and duller than I once was :)
>
> Thanks,
> Brad

Get your boot CD out.  Go into the shell, and then you can mount
the  root partition on /mnt, and  start fixing things.

--STeve Andre'



Re: I've done something stupid

2007-11-08 Thread Darrin Chandler
On Thu, Nov 08, 2007 at 07:12:25PM -0800, new_guy wrote:
> Somehow as root, I changed my shell to a non-existent shell '/bin/tcsh' on
> OpenBSD 4.2
> 
> When I try to su, I get this error:
> su: /bin/tcsh: No such file or directory
> 
> I can't login as root, ssh in as root or su to root. I'm not in the sudoers
> file (but I am in the wheel group) so I can't sudo chsh for root. Any
> suggestions. I just set the box up today. It's been years since I used
> OpenBSD. I'm a bit rusty and duller than I once was :)

No problem. Put in the boot media you used to install OpenBSD and boot
with it. At the (U)pgrade, (I)nstall, (S)hell prompt type 's' for shell.

Next, you can "really" fix the problem. Maybe someone else will tell you
how. I'm going to tell you the first short way that comes to mind...

# mount /dev/wd0a /mnt
# cd /mnt/bin
# cp ksh tcsh
# echo /bin/tcsh >> /mnt/etc/shells



# reboot



# rm /bin/tcsh

-- 
Darrin Chandler|  Phoenix BSD User Group  |  MetaBUG
[EMAIL PROTECTED]   |  http://phxbug.org/  |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG Federation



Re: I've done something stupid

2007-11-08 Thread Aaron

new_guy wrote:

Somehow as root, I changed my shell to a non-existent shell '/bin/tcsh' on
OpenBSD 4.2

When I try to su, I get this error:
su: /bin/tcsh: No such file or directory

I can't login as root, ssh in as root or su to root. I'm not in the sudoers
file (but I am in the wheel group) so I can't sudo chsh for root. Any
suggestions. I just set the box up today. It's been years since I used
OpenBSD. I'm a bit rusty and duller than I once was :)

Thanks,
Brad

  

can  you log in using single user mode?

boot>  boot -s

then change it?

Aaron



I've done something stupid

2007-11-08 Thread new_guy
Somehow as root, I changed my shell to a non-existent shell '/bin/tcsh' on
OpenBSD 4.2

When I try to su, I get this error:
su: /bin/tcsh: No such file or directory

I can't login as root, ssh in as root or su to root. I'm not in the sudoers
file (but I am in the wheel group) so I can't sudo chsh for root. Any
suggestions. I just set the box up today. It's been years since I used
OpenBSD. I'm a bit rusty and duller than I once was :)

Thanks,
Brad

-- 
View this message in context: 
http://www.nabble.com/I%27ve-done-something-stupid-tf4775501.html#a13660801
Sent from the openbsd user - misc mailing list archive at Nabble.com.