Permissions Corrupted: All users own everything.

October 5, 2018 393 views
Initial Server Setup Ubuntu

Recently logged into my droplet and found that sudo does not work. I reset the root password and ran into some other problems with ssh. After fixing those, I noticed the permissions listed with “ls -l /” show my username as both owner and group for all files. I would have thought I accidentally chowned the root folder, but it seems to be something stranger. I logged in with a different account and it shows that user as the owner and group. So user1 sees user1:user1 owns everything and user2 sees user2:user2 owns everything. What could cause this?

2 Answers

Try booting into recovery mode and pick the Check Filesystem option. Let it complete and see if that helps.

  • Thanks for the suggestion. It said the number of free blocks was wrong, and I believe fixed that, but I still have the permissions problem.

Can you copy/paste the content of /etc/passwd? Also can you show the listing of this command:

ls -antlr /
Have another answer? Share your knowledge.