-
Senior Member
registered user
Help! Can't su knoppix in chrooted files system.
It says-
Sorry, sudo must be setuid root.
But I am root and I'm using su knoppix. I thought I could set a root passwd as you normally would and so I used passwd root. Then this trouble started and I can't become knoppix anymore. What should I do to fix it?
Should I maybe replace /etc passwd passwd~ shadow.passwd and sudoers with the original files from the cd? Any other files that might have been changed when I ran passwd root?
-
Senior Member
registered user
Re: Help! Can't su knoppix in chrooted files system.
Originally Posted by
arkaine23
It says-
Can't sudo, must be setuid root.
But I am root and I'm using su knoppix. I thought I could set a root passwd as you normally would and so I used passwd root. Then this trouble started and I can't become knoppix anymore. What should I do to fix it?
Not sure what you mean by "can't become Knoppix anymore" Have you done a hard drive install? If so log in as root, open a term and do this:
adduser <someusername>
And just enter BillyJimJoeBob or whatever username you want. Follow along and you'll have a username you want instead of Knoppix. Then as root you'll need to add your new username to /etc/sudoers and the new user will be able to do thigs as root. Here is my /etc/sudoers file:
Code:
# sudoers file.
#
# This file MUST be edited with the "visudo" command as root.
#
# See the man page for details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
glenn ALL=NOPASSWD: ALL
This way I can just use sudo and not have to enter a password each time.
If you want to change root password then log in as root and run passwd. It simplifies things.
HTH (If I've totally misunderstood you post back).
-
Senior Member
registered user
I've decompressed the files on the CD and am making changes to them for a remastered version, not the same as a HDD install. I've chrooted into the decompressed file system and installed/removed a lot of software, and am busy making changes to the appearance of the window managers. I thought I could set the root password with the passwd command. It seems instead that doing so has not set the password, and has only succeeded in making it impossible to su knoppix.
Also, when I logout of KDE, it says "<???> logging out". I've used the login and whoami commands to make sure that I am indeed root. My passwd and sudoers files look fine to me but I'm going to try to copy the original files over them anyway when I get home tonight to see if it fixes the problem. I guess I could make a new user and remove knoppix, but somehow I think that might break a lot of the scripts that make knoppix work from a CD.
-
Senior Member
registered user
if you are root, passwd can take a user paramater so just run
passwd knoppix
as root to set knoppix user's password, or just
passwd
to set the root password
Similar Threads
-
By phdzg in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 02-08-2005, 11:46 PM
-
By rahtz in forum Customising & Remastering
Replies: 1
Last Post: 09-06-2004, 10:23 PM
-
By Aleu in forum Customising & Remastering
Replies: 12
Last Post: 09-02-2004, 09:26 PM
-
By purplehaze in forum General Support
Replies: 4
Last Post: 06-25-2003, 06:54 PM
-
By VeeDubb in forum General Support
Replies: 2
Last Post: 03-21-2003, 06:37 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord
$43.95
lot of 10 Juniper EX-SFP-10GE-SR Compatible 10GBASE-SR SFP+ 850nm 300m DOM -J499
$220.00
JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER
$210.00
Juniper Networks EX2200-C-12P-2G 12 Port Gigabit PoE 2 T/SFP 1G Network Switch
$129.00
Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord
$54.99
Lot of 26 New Juniper Gear JPSU-550-DC-AFO QFX10002-36Q-DC EX-UM-4X4SFP & More
$16500.00
EX2300-24P Juniper 24-port 10/100/1000BASE-T PoE+ 4 x 1/10GbE SFP/SFP+ UNCLAIMED
$450.00
Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch
$41.43
JUNIPER EX4550-32F-AFO 32-PORT ETHERNET SWITCH 2x POWER SUPPLY - TESTED
$299.99
Juniper EX2300-48P PoE+ Switch 48x 1GbE & 4 SFP+/SFP 10G uplinks, Tested
$289.00