M
M
mr_blond972016-01-20 15:58:38
GRUB
mr_blond97, 2016-01-20 15:58:38

su and sudo -s stopped running, how to fix it?

In ubuntu 14 4 I did chmod 777 /, after which su and sudo -s commands stopped running, how to fix this?

su 
operation not permitted

sudo -s
/etc/sudoers is world writable
no valid sudoers souces found, quitting
unable to initialize policy plugin

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ergil Osin, 2016-01-20
@Ernillew

1. Ubuntu 14 4 does not exist, there is 14.04
2. No way, cretins doing chmod 777 / can't sit at computers

S
Sergei E., 2016-01-20
@SmartFinn

Hold Shift while booting to get to the Grub bootloader menu.
In it choose:
Then execute:

mount -o remount,rw /
chmod 440 /etc/sudoers

The second option will boot from the LiveCD, mount the root partition and do the same but with sudo.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question