-
SU fails after install
Sorry if this question has been asked before, but I searched and found nothing. I ran the knoppix-installer script from the 2003-07-25 knoppix CD. Unfortunately the user account created durring the install is unable to issue the su command (authentication failed). I added the created user to the adm, root, and staff groups, but no luck. Am I missing the obvious?
-
Junior Member
registered user
You may need to boot up the Knoppix CD, acess the harddrive (be sure it is set as writable) /mnt/hda?/etc/shadow file and delete the root password (between the first two colons). Then logout of the CD and restart and login as root with a blank password. Your can then reset the password typing passwd and giving a new password.
-
Senior Member
registered user
NONONO, editing the shadow password file directly is definitely NOT recommended. Too many things can go wrong.
--First of all, are you typing the ROOT password when you try to su? There's a difference in behavior from the ' sudo ' command. With sudo, you type the *USER'S* password, and the userid has to have an entry in /etc/sudoers.
--If you need to reset the root password for whatever reason, I would boot from CD and ' chroot ' to the root partition, then ' passwd root ' rather than editing the shadow file directly.
Originally Posted by
aaronforjesus
You may need to boot up the Knoppix CD, acess the harddrive (be sure it is set as writable) /mnt/hda?/etc/shadow file and delete the root password (between the first two colons). Then logout of the CD and restart and login as root with a blank password. Your can then reset the password typing passwd and giving a new password.
-
Junior Member
registered user
Sounds a lot safer. Thanks for the tip!
-
Thanks for the help guys, but let me clarify a bit. The root password works just fine when logging in as root, but when, as a normal user, I issue the su command and enter the root password I get an error telling me that authentication failed.
-
Senior Member
registered user
--Try adding the username to /etc/sudoers; if that doesn't help with the ' su ' command then at least you can still ' sudo bash ' and get to root.
Code:
# User privilege specification
root ALL=(ALL) ALL
your-user ALL=(ALL) ALL
Originally Posted by
cr8dle2grave
Thanks for the help guys, but let me clarify a bit. The root password works just fine when logging in as root, but when, as a normal user, I issue the su command and enter the root password I get an error telling me that authentication failed.
-
Fixed
I found a fix for my problem:
- I found my answer by reading through the Linux Pam Administrator Guide
I edited /etc/pam.d/su and uncommented the following line:
Code:
auth required pam_wheel.so
This line sets the configuration so that a user must be a member of the "root" group in order to issue the "su" command. I'm not sure why I had to do this as with the line commented it should allow all users to issue the "su" command. Anyhow, it works now.
Similar Threads
-
By bazfum in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 12-02-2004, 09:04 PM
-
By markb in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 09-19-2004, 03:37 AM
-
By g-joey in forum Hdd Install / Debian / Apt
Replies: 11
Last Post: 07-03-2004, 05:38 PM
-
By zero_divide_1 in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-07-2004, 07:06 AM
-
By devilotx in forum Hdd Install / Debian / Apt
Replies: 11
Last Post: 02-04-2004, 04:22 PM
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
AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock
$75.00
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$419.99
Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1
$39.99
Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...
$619.99
AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor
$79.00
Intel Quad Core i3-12100 3.3GHz 12MB LGA1700 12th Gen. CPU Processor SRL62
$45.96
AMD FX-6300 FD6300WMW6KHK 6-Cores 3.5GHz 3x2MB 8MB Socket AM3+ Processor
$11.99
Intel Core i7-3770 3.40GHz 8MB Quad Core Socket LGA1155 CPU Processor SR0PK
$35.00
Intel 16 Core i7-13700T DESKTOP processor TURBO Boost 4.90Ghz CM8071504820903
$269.00
Intel Xeon E5-2695 V4 2.10 GHz 18-Core SR2J1 LGA2011-3 CPU Processor 2695V4
$29.91