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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Try booting into recovery mode and pick the Check Filesystem option. Let it complete and see if that helps.
Can you copy/paste the content of /etc/passwd? Also can you show the listing of this command:
ls -antlr /
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.