sudo chmod 700 /
is a bad idea but, should be completely(Assuming you did only and exactly that ... i.e. you did not use chmod -R
nor change ownership with chown
) recoverable ... A 700
permissions on /
will deny other users all rights(read, write and execute) and allow only the owner(root) ... Hence the message you see and the behavior you experience because only the user root
can access the system root directory /
and no other user can even read that directory or anything under it.
The default permissions for the root directory /
are 755
:
Permissions Owner Group
755(drwxr-xr-x) root root /
Therefore you need to boot into recovery mode, drop to a root shell(Alternatively, boot into a live USB, mount
your root partition and chroot
to it) then change the permissions back like so:
chmod 755 /
then reboot and try to login normally again.
If you make it and login back successfully ... You might want to check system directories permissions and compare them to another intact Ubuntu system and fix what might need fixing if there are any ... Below is the information of directories and files under /
for reference:
Permissions Owner Group Name Linked to
777 lrwxrwxrwx root root '/bin' -> 'usr/bin'
755 drwxr-xr-x root root '/boot'
775 drwxrwxr-x root root '/cdrom'
755 drwxr-xr-x root root '/dev'
755 drwxr-xr-x root root '/etc'
755 drwxr-xr-x root root '/home'
777 lrwxrwxrwx root root '/lib' -> 'usr/lib'
777 lrwxrwxrwx root root '/lib32' -> 'usr/lib32'
777 lrwxrwxrwx root root '/lib64' -> 'usr/lib64'
777 lrwxrwxrwx root root '/libx32' -> 'usr/libx32'
700 drwx------ root root '/lost+found'
755 drwxr-xr-x root root '/media'
755 drwxr-xr-x root root '/mnt'
755 drwxr-xr-x root root '/opt'
555 dr-xr-xr-x root root '/proc'
700 drwx------ root root '/root'
755 drwxr-xr-x root root '/run'
777 lrwxrwxrwx root root '/sbin' -> 'usr/sbin'
755 drwxr-xr-x root root '/snap'
755 drwxr-xr-x root root '/srv'
600 -rw------- root root '/swapfile'
555 dr-xr-xr-x root root '/sys'
1777 drwxrwxrwt root root '/tmp'
755 drwxr-xr-x root root '/usr'
755 drwxr-xr-x root root '/var'
sudo
? ... Explain what you did before this had happened. – Raffa Jul 16 '22 at 16:53sudo chmod / 700
orsudo chmod 700 /
? – Raffa Jul 16 '22 at 17:06sudo chmod 700 /
sorry – Tomsoz Jul 16 '22 at 17:20-R
then there is a chance to fix it. – Pilot6 Jul 16 '22 at 18:48