LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2006, 08:24 PM   #1
evzen
LQ Newbie
 
Registered: May 2006
Location: FFFF0h PowerGood
Distribution: SLACKWARE 11
Posts: 9

Rep: Reputation: 0
Lightbulb root has no shell how do i get out of this


this what iv tried from user mode
bash-3.00$ su root chsh root /bin/bash
Password:
No shell
bash-3.00$ su root chsh root default
Password:
No shell
bash-3.00$
this what happening
bash-3.00$ su
Password:
Cannot execute evzenptacek: No such file or directory
bash-3.00$
how do i get out of this?anybody knows?
P.S. its a Slackware 10.2

Last edited by evzen; 05-10-2006 at 08:27 PM.
 
Old 05-10-2006, 09:01 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Do you have sudo configured? If so use that to gain root permissions and then edit /etc/passwd to give root a shell. If you can't use sudo, then you'll have to boot from a live CD and mount your root partition somewhere and do that same thing in /etc/passwd.
 
Old 05-10-2006, 10:06 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Try:
'su -l -s /bin/bash'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing root shell surfbass Linux - General 1 10-28-2005 03:03 PM
How to login root shell satimis Linux From Scratch 7 07-11-2005 09:07 PM
get root shell with gdb Musikolo Linux - Security 1 02-15-2005 05:06 PM
Bad root shell Tyraziel Linux - General 2 04-08-2004 11:08 AM
su to root in my shell script? lel800 Programming 2 08-21-2003 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration