I don't know how this happened, but all of a sudden I get authentication errors from both su and sudo. I'm using the same password as I've used in the past, and I am able to log in with that password. How can I get around this problem?
Announcement
Collapse
No announcement yet.
su and sudo stopped working
Collapse
This topic is closed.
X
X
-
Re: su and sudo stopped working
Originally posted by pwabrahamsI don't know how this happened, but all of a sudden I get authentication errors from both su and sudo. I'm using the same password as I've used in the past, and I am able to log in with that password. How can I get around this problem?
Few things that can cause errors with sudo:
1. user not part of "admin" group
2. editing /etc/sudoers, either creating a syntax error or modifying the default settings
3. editing computer hostname manually, the hostname in /etc/hostname not set as a localhost hostname in /etc/hosts.
su will ask for root password (unlike sudo), which is disabled in *buntus
- Top
- Bottom
-
Problem with admin group
I've narrowed the problem down to this: the authorized users (there are two of them) are shown in Systems Settings and in /etc/group as being in the adm group. /etc/sudoers (which I never modified) contains the line %admin ALL=(ALL) ALL. Since user pwa is in the admin group, he should have root access, But:
Code:pwa@Lepiota:~$ whoami pwa pwa@Lepiota:~$ sudo echo hello [sudo] password for pwa: pwa is not in the sudoers file. This incident will be reported. pwa@Lepiota:~$ grep "adm:" /etc/group adm:x:4:paul,pwa
- Top
- Bottom
Comment
-
Re: su and sudo stopped working
"adm" and "admin" are separate groups (with different functions, to use sudo you need to be in the admin group)
Code:grep "admin:" /etc/group
Code:sudo adduser pwa admin
- Top
- Bottom
Comment
-
Re: su and sudo stopped working
adm group has permission to monitor the system and see the logs.
admin group gets to change the system (add hard drive partitions, printers, etc.) with root privileges.
Longer answer here: http://www.linuxsecurity.com/resourc...to/ch8.en.html
- Top
- Bottom
Comment
-
Re: su and sudo stopped working
Originally posted by dibladm group has permission to monitor the system and see the logs.
admin group gets to change the system (add hard drive partitions, printers, etc.) with root privileges.
Longer answer here: http://www.linuxsecurity.com/resourc...to/ch8.en.html
- Top
- Bottom
Comment
-
Re: su and sudo stopped working
Originally posted by pwabrahams
For what it's worth, the howto you mention doesn't say anything about admin.
http://www.yolinux.com/TUTORIALS/Lin...ingGroups.html
Oh well.
- Top
- Bottom
Comment
-
Re: su and sudo stopped working
admin is not a "standard" group on linux (that's why you won't find it in most universal listings), it's used in *buntus (and derivatives) to give users access to sudo.
Other distributions either have no corresponding group, or may have a different group for it...like "wheel" (the wheel name derives from unix tradition...being a "big wheel").
- Top
- Bottom
Comment
-
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
Comment