Broken sudoers permissions?

Asked by Creepycrafter Playername

After minimal customization (apt update, apt upgrade, very few packages) i can't use sudo or su and all GUI applications that use root break/don't start. If I run sudo from the terminal it says "/usr/bin/sudo must be owned by uid 0 and have the setuid bit set". If I ll /usr/bin/sudo it says "-rwxrwxrwx 1 root root 161448 Jan 31 17:07 /usr/bin/sudo*". The "Access" part of "stat /usr/bin/sudo" says (0777/-rwxrwxrwx) Uid: (0/root) Gid: (0/root)
I am running Ubuntu 19.10 both as the modified image and host OS.
What can I do to fix this and get my ISO working properly?

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Protection settings on /usr/bin/sudo have to be
-rwsr-xr-x 1 root root
or in stat: (4755/-rwsr-xr-x) Uid: (0/root) Gid: (0/root)

Is the problem on your host, or only inside the images?

If it is on the host, you can follow https://www.psychocats.net/ubuntu/resetpassword from the beginning to the remount command and then chmod the file to the correct value.

If it is in the images, then your customization is wrong.

Revision history for this message
soogeun (sk1561) said :
#2

I have exact same problem.
My problem is only inside the image.
How can I find wrong point of customization?
Or is there any cubic manual?

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Which operating system (including release number) and cubic version are you using?
Which file systems are you using?

Revision history for this message
Creepycrafter Playername (creepycrafter24) said :
#4

I am using Ubuntu 19.10 on an ext4 partition with the project on a seperate ntfs drive and the latest version of cubic available at the time in the PPA

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

I assume the problem is the ntfs drive. That file system does not know about setuid bits.

Revision history for this message
soogeun (sk1561) said :
#6

Thanks all answers.
I solved this problem.
The problem was ubuntu 19.10.
No problem was happened, when I made custom iso by cubic on ubuntu 18.04.
So, combination of cubic on on ubuntu 18.04 and ubuntu 18.04 original iso makes no problem.

Can you help with this problem?

Provide an answer of your own, or ask Creepycrafter Playername for more information if necessary.

To post a message you must log in.