How do you fix file permissions for root directory?

jsolarski

What is the best way to fix Ubuntu's Root file system permissions?

I was changing file permissions on a whole bunch of files that needed to be removed, I had accidentally changed the permissions for /, /etc, /var, /home, /bin, /media and all the files underneath. majority of them were changed to 0777. All this because I added a space to chmod command that I was running.

Now I am running into issues with stuff not working correctly and unable to log into root with either su or sudo. So administration from the desktop is not possible, and trying to get into grubs OS selection is also impossible, because last upgrade for some reason turned it off the menu when it boots. Any kind of admin action is nearly impossible to do because of this.

Is there a script I can run in the root shell that will fix it or should I just re-install Ubuntu? Are there any other things that I can do to fix this other then changing each directory and file to the correct permissions?

I am currently running Ubuntu 10.10 64bit

sagarchalise

here is a basic idea I hope you are looking for. I think most file system have permission of 755 for folders and 644 for files except for /bin which has executable files with root as owner.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do you fix file permissions for root directory?

From Dev

How do you get to the root directory that I need to delete a file in?

From Dev

How do file permissions work for the "root" user?

From Dev

How do you create a directory with the same access permissions as an existing one?

From Dev

How do you create a directory with the same access permissions as an existing one?

From Dev

Cron to check (and fix) all root file permissions?

From Dev

Do Linux directory permissions overrule file permissions?

From Dev

How to fix permissions warnings in the root folder?

From Dev

How to fix permissions warnings in the root folder?

From Dev

HOW TO FIX: You do not have permission to view this directory or page?

From Dev

How do you delete an outstanding TFS team project root directory?

From Dev

How do I remove a file in my root directory?

From Dev

How do you list the folder permissions of only certain directories that follow a common pattern in a particular directory?

From Dev

Protecting directory via .htaccess file without having root permissions

From Dev

How to link to file in root directory

From Dev

How do you set the resource directory in gradle file?

From Dev

How do you specify file upload directory for express within sails?

From Dev

How do you Specify a target directory for a txt file to be passed in

From Dev

How do I take root permissions?

From Dev

How do you fix upgrade

From Dev

how do you fix this error

From Dev

How to fix postfix set-permissions without user named root?

From Dev

Does 'Owning' A Directory Or File Give You And Special Permissions?

From Dev

sshfs You do not have the permissions necessary to view the contents of mounted directory

From Dev

Ansible: How to recursively set directory and file permissions

From Dev

How to give directory and file permissions to a web server

From Dev

How Do I check Permissions of Root Folder (/ Folder, not /root)?

From Dev

How do you specify a common root directory for all libname references in SAS?

From Dev

How do you grab the root Windows directory of the computer running your code? (Python)

Related Related

  1. 1

    How do you fix file permissions for root directory?

  2. 2

    How do you get to the root directory that I need to delete a file in?

  3. 3

    How do file permissions work for the "root" user?

  4. 4

    How do you create a directory with the same access permissions as an existing one?

  5. 5

    How do you create a directory with the same access permissions as an existing one?

  6. 6

    Cron to check (and fix) all root file permissions?

  7. 7

    Do Linux directory permissions overrule file permissions?

  8. 8

    How to fix permissions warnings in the root folder?

  9. 9

    How to fix permissions warnings in the root folder?

  10. 10

    HOW TO FIX: You do not have permission to view this directory or page?

  11. 11

    How do you delete an outstanding TFS team project root directory?

  12. 12

    How do I remove a file in my root directory?

  13. 13

    How do you list the folder permissions of only certain directories that follow a common pattern in a particular directory?

  14. 14

    Protecting directory via .htaccess file without having root permissions

  15. 15

    How to link to file in root directory

  16. 16

    How do you set the resource directory in gradle file?

  17. 17

    How do you specify file upload directory for express within sails?

  18. 18

    How do you Specify a target directory for a txt file to be passed in

  19. 19

    How do I take root permissions?

  20. 20

    How do you fix upgrade

  21. 21

    how do you fix this error

  22. 22

    How to fix postfix set-permissions without user named root?

  23. 23

    Does 'Owning' A Directory Or File Give You And Special Permissions?

  24. 24

    sshfs You do not have the permissions necessary to view the contents of mounted directory

  25. 25

    Ansible: How to recursively set directory and file permissions

  26. 26

    How to give directory and file permissions to a web server

  27. 27

    How Do I check Permissions of Root Folder (/ Folder, not /root)?

  28. 28

    How do you specify a common root directory for all libname references in SAS?

  29. 29

    How do you grab the root Windows directory of the computer running your code? (Python)

HotTag

Archive