Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-11-2006, 12:04 AM
|
#1
|
LQ Newbie
Registered: Apr 2006
Distribution: Slackware 2.6.13
Posts: 19
Rep:
|
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.
|
|
|
05-11-2006, 12:12 AM
|
#2
|
Member
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90
Rep:
|
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.
|
|
|
05-11-2006, 12:13 AM
|
#3
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
By default on Slackware it's
Code:
root:x:0:0::/root:/bin/bash
|
|
|
05-11-2006, 12:19 AM
|
#4
|
LQ Newbie
Registered: Apr 2006
Distribution: Slackware 2.6.13
Posts: 19
Original Poster
Rep:
|
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?
|
|
|
05-11-2006, 12:24 AM
|
#5
|
Member
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90
Rep:
|
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-11-2006 at 12:27 AM.
|
|
|
05-11-2006, 01:24 AM
|
#6
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
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
|
|
|
05-11-2006, 01:33 AM
|
#7
|
Member
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90
Rep:
|
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!
|
|
|
05-11-2006, 02:55 AM
|
#8
|
LQ Newbie
Registered: Apr 2006
Distribution: Slackware 2.6.13
Posts: 19
Original Poster
Rep:
|
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
|
|
|
05-11-2006, 03:41 AM
|
#9
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
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.
|
|
|
05-11-2006, 12:39 PM
|
#10
|
LQ Newbie
Registered: Apr 2006
Distribution: Slackware 2.6.13
Posts: 19
Original Poster
Rep:
|
Thanks I appreciate your help.
|
|
|
All times are GMT -5. The time now is 11:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|