LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2011, 07:46 PM   #1
kryptozapper
LQ Newbie
 
Registered: Jul 2011
Posts: 7

Rep: Reputation: Disabled
setting root password in slackware 9


i booted into linux single mode thru lilo but i can't use any commands in slackware that changes the root account or user account using passwd root command
 
Old 07-01-2011, 08:12 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Hello,

How exactly did you boot into single user mode? Also, what error messages are you getting? Also read this thread - http://www.linuxquestions.org/questi...rd-too-407800/

As far as changing your password, you should be able to run the "passwd" command in run level 1 without any arguments to change your password.

Cheers,

Josh
 
Old 08-11-2012, 03:46 PM   #3
kryptozapper
LQ Newbie
 
Registered: Jul 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
still having trouble with password using runlevel 1 in slackware 9

i went to runlevel 1 and it sent me to a login screen that looks like this: (none)login:
i can't enter as root or change my root passwd please could you tell me what i did wrong ?
 
Old 08-11-2012, 04:12 PM   #4
vtel57
Member
 
Registered: Jul 2006
Location: VPN Tunnel, USA
Distribution: Slackware64
Posts: 930

Rep: Reputation: 113Reputation: 113
Am I losing it here or did it actually take you over a year to return here to reply?
 
Old 08-11-2012, 04:32 PM   #5
kryptozapper
LQ Newbie
 
Registered: Jul 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
sorry i was busy programming and doing other stuff sorry could you please answer my question i have some time before my sister comes and gets me
 
Old 08-11-2012, 05:07 PM   #6
kryptozapper
LQ Newbie
 
Registered: Jul 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
i can't use vim or vi to edit my /etc/passwd file in linux single mode
 
Old 08-11-2012, 05:09 PM   #7
kryptozapper
LQ Newbie
 
Registered: Jul 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
i tried linux single init=/bin/bash rw and it got me in root but i can't use vim or vi to edit /etc/passwd
 
Old 08-11-2012, 05:19 PM   #8
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
In Ubuntu the root user is setup with a random hash during the install by default. The first user has the right to become root through SUDO by being a member of the Admin group. Subsequent users that need root privileges simply need to be added to this group.

IIRC to login as root just login normally and do: sudo -s and provide your regualr password.

If you are the first user, you can change the root password with: sudo passwd (or sudo su passwd) I forget. Gave up on Ubuntu after a brief trial.
 
Old 08-11-2012, 06:32 PM   #9
vtel57
Member
 
Registered: Jul 2006
Location: VPN Tunnel, USA
Distribution: Slackware64
Posts: 930

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by kryptozapper View Post
sorry i was busy programming and doing other stuff sorry could you please answer my question i have some time before my sister comes and gets me
No need to apologize. I was just wondering. It's not every day that it takes someone over a year to reply.
 
Old 08-12-2012, 07:23 AM   #10
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
What happens when you run the passwd command to change the password? What goes wrong when you try to use vi/vim?

Quote:
Originally Posted by NyteOwl View Post
In Ubuntu the root user is setup with a random hash during the install by default. The first user has the right to become root through SUDO by being a member of the Admin group. Subsequent users that need root privileges simply need to be added to this group.

IIRC to login as root just login normally and do: sudo -s and provide your regualr password.

If you are the first user, you can change the root password with: sudo passwd (or sudo su passwd) I forget. Gave up on Ubuntu after a brief trial.
Did you read the title? Slackware 9, not Ubuntu
 
  


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
How to : Find Root Password Age Setting avklinux Solaris / OpenSolaris 2 12-12-2008 01:08 PM
Problem setting root password after reinstalling mysql Venkatesh_cts Linux - Newbie 4 11-23-2006 08:05 AM
setting root password during install jimbrechin Ubuntu 4 05-17-2005 04:06 AM
Setting root password saxophobe Linux - Newbie 11 01-17-2004 12:33 PM


All times are GMT -5. The time now is 06:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration