0

I was moving a folder to /usr/share/, and I accidentally moved /usr/share/ to my Desktop. I have since moved it back, but when I was in the live ISO, I stupidly changed the ownership of /usr/ to the active user to avoid using the terminal. When I finished changed it back to root. However, the permissions are now screwed up. I tried using sudo, but it was broken. I followed this post and used

chmod 4755 /usr/bin/sudo

but there are still things that don't work. I don't know the default permissions / ownership of /usr/. Can you help me?

Edit: To clarify, when I changed the permissions of /usr/ I changed also all the sub-directories

3
  • 2
    You say you changed the permissions of /usr. How did you do that and manage to affect the program /usr/bin/sudo? Do you mean you changed the permissions of /usr and every file/directory under it? Please edit your question to clarify this. Commented Nov 18, 2019 at 20:57
  • Are you running any particular Unix? Did you also change the ownership of all files under /usr? If you changed ownership, then why are you trying to remedy it using chmod?
    – Kusalananda
    Commented Nov 19, 2019 at 22:25
  • The default is what is recorded in the installed package. But I don't think it's easy into restore. May be boot into a Live system and reinstall those packages will help Commented Nov 20, 2019 at 1:58

1 Answer 1

-1
drwxr-xr-x. 13 root root 155 Nov 16 05:56 /usr/
1
  • This may well depend on what Unix the user is using. What you are showing is different from what would be correct on OpenBSD or macOS, for example. We don't know what Unix the user is using, so the question can't really be answered with finality.
    – Kusalananda
    Commented Nov 19, 2019 at 22:24

You must log in to answer this question.