Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-18-2007, 08:26 PM   #1
Member (8 bit)
 
Join Date: Mar 2001
Location: Oceanside CA USA
Posts: 181
Knoppix root password

I am using Knoppix 3.2. With some programs I am asked to log-in as root. If I change to the console and type "su" I am asked for a password. How do I assign a root password?
mrob is offline   Reply With Quote
Old 04-18-2007, 08:44 PM   #2
Lest we forget
 
ghost2003's Avatar
 
Join Date: Jun 2003
Location: Ontario, Canada
Posts: 1,870
If you login as root you can change the password with passwd(1)

Of course, you need to have the current password to do that...you do have it, right?

If you often need to run a program as root, look into using sudo(8)
__________________
redqueen: Antec Sonata, Pentium-D 2.5GHz, MSI G31M3-L, 2GB ram, 320 GB HDD, OpenBSD
hal9000: Lenovo T61, 2GB ram, 120 GB HDD, FreeBSD
ghost2003 is offline   Reply With Quote
Old 04-18-2007, 10:03 PM   #3
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
You should have assigned a root password when you installed Knoppix. If you didn't or you can't remember then you either have to set it up again or try to figure out the pw.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 04-18-2007, 10:31 PM   #4
Lest we forget
 
ghost2003's Avatar
 
Join Date: Jun 2003
Location: Ontario, Canada
Posts: 1,870
Quote:
Originally Posted by mairving
You should have assigned a root password when you installed Knoppix. If you didn't or you can't remember then you either have to set it up again or try to figure out the pw.
There is a way to reset the password. Im not sure if explaining this would violate rule #9 though...
ghost2003 is offline   Reply With Quote
Old 04-18-2007, 11:18 PM   #5
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Quote:
Originally Posted by ghost2003
There is a way to reset the password. Im not sure if explaining this would violate rule #9 though...
Yep, I know that I have had to do use it a time or two. It's generally not for someone who doesn't know their way around the command line. And yes it would violate the rules.
mairving is offline   Reply With Quote
Old 04-19-2007, 12:05 AM   #6
Ceiling cat is watching!
 
mojo's Avatar
 
Join Date: Feb 2006
Location: Iowa
Posts: 1,283
Is this just the knoppix boot CD or did you install it to your harddrive? If it's just the bootable cd:

From the FAQ:
Q: What is the root password?
A: There is none; all passwords are locked by default. You can set it by going Knoppix Menu->Root Shell and typing "passwd", then enterting a root password, also there are several sections you can read dealing with this subject in KNOPPIX/README_Security.txt. You can also type "sudo su" or "sudo -s" in any console window, or use --F2 to get at the text console with already opened root shell.

Apparently, however, in some versions of Knoppix, if you type 'sudo -s', it will ask for a password. If you simply press return without entering anything, it will tell you 'Authentication Failed."
__________________
~Matt
CCNA
mojo is offline   Reply With Quote
Old 04-19-2007, 12:24 AM   #7
Member (8 bit)
 
Join Date: Mar 2001
Location: Oceanside CA USA
Posts: 181
Thanks to everyone for your replies. I am using Knoppix on the CD, and I have never set any passwords. I will try the Menu->Root Shell method suggested by mojo.
mrob is offline   Reply With Quote
Old 04-19-2007, 09:53 AM   #8
Member (11 bit)
 
LeftyAce's Avatar
 
Join Date: Feb 2005
Location: tfp
Posts: 1,921
On the cd, to become root you must type (at the command line) "sudo su" without the quotes. You will then be root, and can set a root password if you need to (You shouldn't though, because you can do anything you need to off of the command line through sudo). This is unique to knoppix, and violates no rules :-)
__________________

System:
ASUS A8N32-SLI Deluxe
AMD Opteron Denmark 165
Sapphire Radeon 4850x2
2X1GB G.Skill DDR400 Ram
Corsair 850W PSU
Thermaltake Soprano case
Seagate 7200.10 320GB
LeftyAce is offline   Reply With Quote
Old 04-26-2007, 07:53 PM   #9
Member (7 bit)
 
Join Date: Mar 2007
Location: Cardiff, UK
Posts: 73
Send a message via MSN to rhysox
I'd like to think that people are a little more secure with their root access!
rhysox is offline   Reply With Quote
Old 04-26-2007, 10:09 PM   #10
Member (11 bit)
 
LeftyAce's Avatar
 
Join Date: Feb 2005
Location: tfp
Posts: 1,921
It's a live cd, so there's nothing you can do to hurt the installation; the whole thing's read only, and all the files installed on it are freely available through the knoppix download to start with.

I agree, for a permanent install this would be an absurd security situation.
LeftyAce is offline   Reply With Quote
Old 04-27-2007, 09:55 AM   #11
Member (7 bit)
 
Join Date: Mar 2007
Location: Cardiff, UK
Posts: 73
Send a message via MSN to rhysox
Ah I see, it's the livecd install, my bad.
rhysox is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't run NAV in Safe Mode Sonoma Dave Networking & Online Security 6 12-13-2004 08:16 AM
MSN connection won't save password!! brentconn Windows Legacy Support (XP and earlier) 3 10-12-2002 06:45 PM
Changing root password in freebsd... ragear Linux OS and Software Assistance 1 07-12-2002 11:48 PM
Password Question Wanabe Windows Legacy Support (XP and earlier) 1 09-21-2001 07:27 PM


All times are GMT -5. The time now is 10:29 PM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0