You are not logged in.

#1 2009-06-18 03:35:58

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Forgot to install csh, changed chell to csh and now I can't login

I forgot to install csh and changed my shell to csh in the /etc/passwd file and now I can't sign in because it says file or directory not found (/bin/csh) is there anything I can do?

Offline

#2 2009-06-18 03:39:39

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Forgot to install csh, changed chell to csh and now I can't login

Sure. You can go in with a live CD like Arch's install disk and change it back, or with a Arch live CD you can chroot into the hard drive install and use pacman to install csh.

Offline

#3 2009-06-18 03:42:41

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Re: Forgot to install csh, changed chell to csh and now I can't login

How can I chroot into the hardrive?

Offline

#4 2009-06-18 03:49:53

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: Forgot to install csh, changed chell to csh and now I can't login

No livecd:
boot in single user mode (at grub menu, edit the kernel line appending the number one "1" without quotes) wink

This execute sulogin, sulogin first search for shell in the passwd, if it fails execute /bin/sh smile

Good Luck

Last edited by djgera (2009-06-18 03:50:16)

Offline

#5 2009-06-18 04:00:04

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Re: Forgot to install csh, changed chell to csh and now I can't login

That worked great, thanks so much! Random question: Anyway to change the Percent sign (%) as the command line starter?

Offline

#6 2009-06-18 04:03:05

VoodooSteve
Member
From: Vancouver, BC
Registered: 2009-03-31
Posts: 43

Re: Forgot to install csh, changed chell to csh and now I can't login

That can be defined in your ~/.cshrc file.  Just wondering, couldn't you have logged in as root and changed your shell back?

Offline

#7 2009-06-18 04:24:08

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Forgot to install csh, changed chell to csh and now I can't login

djgera wrote:

No livecd:
boot in single user mode (at grub menu, edit the kernel line appending the number one "1" without quotes) wink

I always forget about that one. It really doesn't get any more simple that that.

Offline

Board footer

Powered by FluxBB