smb4k super user privileges leaves wrong permissions on /etc/sudoers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
smb4k (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: smb4k
While trying to work out ways for users in our office to mount Samba shares on demand, I decided Smb4K would be our best option - but had problems with current releases of Samba not allowing normal users to mount Samba shares (even with the setuid bit set).
I then found the "Super User" configuration option in Smb4K would let normal users do the right thing, so I checked the "Use super user privileges to mount and unmount shares" option on the "Super User" configuration tab, clicked apply and entered my password to allow Smb4K to write changes to the /etc/sudoers file - I got no errors.
I then tried to mount a Samba share and got the following error message details:
sudo: /etc/sudoers is mode 0640, should be 0440
sudo: no valid sudoers sources found, quitting
So, I tried to correct the permissions on /etc/sudoers and was greeted with the same message at the command line:
krogers@
sudo: /etc/sudoers is mode 0640, should be 0440
sudo: no valid sudoers sources found, quitting
In order to get administrative capabilities back, I had to reboot with a live cd in order to gain root access and correct the file permissions.
In addition, Smb4k seems to have made other changes to /etc/sudoers - see the attached patch for a comparison of /etc/sudoers off the livecd with the version on my computer after Smb4k modified it (unfortunately I did not have a backup of my /etc/sudoers file from before Smb4k modified it, but I have never modified /etc/sudoers since installing Ubuntu). In particular I'm not sure of the consequences of the changes relating to the sudo and admin groups.
Exactly the same problem.
After install smb4k I can't use "sudo su" anymore.