LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-10-2006, 11:04 PM   #1
kcals
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 2.6.13
Posts: 19

Rep: Reputation: 0
Cannot loggin as root


Hello everyone.Hello everyone.
My root on my slackware cannot loggin.
It gives me the access denied error.I am sure that password is correct.
I can loggin as regular user though.Then when I try to SU it gives me this error:
Cannot execute sh: No such file or directory.
So I go to the passwd file and I see this entry under root.
root:0:0::/root:sh

Is that right?
What can I do to workaround the problem?
Thank you.
My root on my slackware cannot loggin.
It gives me the access denied error.I am sure that password is correct.
I can loggin as regular user though.Then when I try to SU it gives me this error:
Cannot execute sh: No such file or directory.
So I go to the passwd file and I see this entry under root.
root:x:0:0::/root:sh

Is that right?
What can I do to workaround the problem?
Thank you.
 
Old 05-10-2006, 11:12 PM   #2
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by kcals
Hello everyone.Hello everyone.
My root on my slackware cannot loggin.
It gives me the access denied error.I am sure that password is correct.
I can loggin as regular user though.Then when I try to SU it gives me this error:
Cannot execute sh: No such file or directory.
So I go to the passwd file and I see this entry under root.
root:0:0::/root:sh

Is that right?
What can I do to workaround the problem?
Thank you.
My root on my slackware cannot loggin.
It gives me the access denied error.I am sure that password is correct.
I can loggin as regular user though.Then when I try to SU it gives me this error:
Cannot execute sh: No such file or directory.
So I go to the passwd file and I see this entry under root.
root:x:0:0::/root:sh

Is that right?
What can I do to workaround the problem?
Thank you.
I had a similar problem (caused by my own ham-handedness) I fixed it by booting up Slax and editing the passwd and shadow files by hand. I'm not on linux right now, but maybe someone else can post the correct format for you. If not I'll boot it up, and post mine for you.

hth.
 
Old 05-10-2006, 11:13 PM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
By default on Slackware it's
Code:
root:x:0:0::/root:/bin/bash
 
Old 05-10-2006, 11:19 PM   #4
kcals
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 2.6.13
Posts: 19

Original Poster
Rep: Reputation: 0
Yea but how I edit the passwd file with no root or su permisions?
I mean It wont let regular user to modify the passwd file?
Any clues?
 
Old 05-10-2006, 11:24 PM   #5
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by kcals
Yea but how I edit the passwd file with no root or su permisions?
I mean It wont let regular user to modify the passwd file?
Any clues?
yeah, boot up with Slax (or another live CD) log into THAT as root, and edit the file.

Last edited by drlouis; 05-10-2006 at 11:27 PM.
 
Old 05-11-2006, 12:24 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You can also use Slackware's CDs to boot then mount the partition and edit the file, no need for extra CDs, Slackware installation disks are minimal live cds
 
Old 05-11-2006, 12:33 AM   #7
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by gbonvehi
You can also use Slackware's CDs to boot then mount the partition and edit the file, no need for extra CDs, Slackware installation disks are minimal live cds
that's 2 things I've learned today while trying to help someone else. Thanks!
 
Old 05-11-2006, 01:55 AM   #8
kcals
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 2.6.13
Posts: 19

Original Poster
Rep: Reputation: 0
I tried ubuntu and knoppix live cds.
None let me edit the passwd file.
How am I going to use slackware cds to do the job?
Thx
 
Old 05-11-2006, 02:41 AM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Just boot with Slackware CD 1 and don't run setup. Once you boot, mount your root partition and edit the file.
IE: if your root partition is hda1 you should do something like:
Code:
mount /dev/hda1 /mnt
vi /mnt/etc/passwd
I don't remember which editors are available when booting from Slackware CD 1 but i'm pretty sure vi is there.
 
Old 05-11-2006, 11:39 AM   #10
kcals
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 2.6.13
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks I appreciate your help.
 
  


Reply



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
No Cmds r Working after loggin in as Root linuxfriend Linux - General 2 02-02-2006 01:52 PM
Loggin into slackware as root Doctor Orange Linux - Newbie 6 08-17-2004 07:56 PM
Loggin into my GUI as root user MackH Mandriva 6 06-08-2004 11:18 AM
Installing something without loggin gin as root trostum Mandriva 7 05-27-2004 04:49 AM
Loggin In As Root MrJBot Linux - Newbie 2 10-30-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:11 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