-
Senior Member
registered user
password-less su to root?"
I'm remastering in a chrooted X environment. All of a sudden I can't su as knoppix. It prompts me for a password, but I have not set one. How can I get it back the way it was, so I can su wihtout entering any password?
I think this started when I launched kcontrol to edit the login manager module and hit ignore when it prompted me for a root password.
-
A couple of things to look for:
- You're running bash as your shell for users knoppix and root (last field in /etc/passwd)
- There is an alias in the file /etc/profile that aliases "su" to "sudo su"
- There is a file /etc/sudoers that allows the knoppix user to sudo anything without a password
- The 2nd field (encrypted password) in /etc/shadow for both knoppix and root should be "*"
Hope you find one of these set wrong
-
Other thing that you can do is go to knoppix sesion and load the root console then type passwd and it change your root password for let you make changes in the configuration that you need
-
Senior Member
registered user
Thanks, I'll check on those things. I know /etc/sudoers is ok, and I know both accounts still have a null password. It's probably /etc/profile. I tried to alias sudo su in knoppix's .bashrc but that didn't work...
-
Senior Member
registered user
All those things check out, but the alias is being superceded I think. It's in /etc/profile and in ~/.bashrc. But in KDE, I have to type sudo su manually or else it prompts me for a password. It doesn't do this in other WM's. Seems like something in KDE has taken over my ability to su.
Similar Threads
-
By Cuddles in forum General Support
Replies: 18
Last Post: 08-16-2013, 06:58 PM
-
By ix86i in forum Customising & Remastering
Replies: 1
Last Post: 10-30-2004, 12:16 PM
-
By Syrus in forum Hdd Install / Debian / Apt
Replies: 10
Last Post: 10-28-2004, 10:25 AM
-
By stol in forum General Support
Replies: 2
Last Post: 05-13-2004, 03:14 PM
-
By villain_2006 in forum General Support
Replies: 11
Last Post: 03-15-2004, 06:45 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

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE
$68.99

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A
$64.00

HUS726060ALA640 HGST Ultrastar 6TB SATA 6Gbps 7.2K 3.5" Hard Drive OF21860
$129.99

HDD 3.5" SATA Hard Drive with Windows 10/Win 11 64x Installed Legacy
$35.00

HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%)
$45.00

Seagate ST6000NM0115 6TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$159.99

HGST HUS724040ALA640 4TB 7200 RPM SATA 3.5" Internal Desktop Drive 100% Health
$78.00

Hitachi / HGST Travelstar HTS541010B7E610 1TB 2.5" SATA III HDD
$29.99

New Western Digital WD40EFPX 68C6CN0 4TB 3.5" SATA III Internal NAS Red Plus HDD
$137.59

WD Purple Pro 10TB Surveillance Internal Hard Drive 3.5" SATA WD102PURP -
$270.00