Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay, I'm certainly no expert, and I haven't even installed Linux for the first time yet (but oh, I'm getting close!), but here's a suggestion/question.
You are Root. Can you give some kind of 'Root' permission to 'Eric', so that he is capable of doing everything that Root is (was) able to do? If so, I imagine you could then log in as Eric and set all files back to being accessable by everyone. Log back in as Root, take away the 'root' permission of Eric again.
Hope this is of some help in at least some small way. :/
pff, you can change them all back to root again (by doing chown root -R /) but then you will have to manually set the usernames correctly on all your personal folders (e.g. /home/*).
I personally wouldn't go through all that trouble .
No, no-- please do not do that (referring to beerwulf's suggestion)!!!
The very point of user privilege separation is that eric should never have the permissions of root (except temporarily). This occurrence is the very reason that it is strongly suggested that one not log in as root (because it's very easy to fubar your system that way, as you now know).
Have you tried going back as root and doing a chown in reverse (using the username root instead of eric)? Can't get much worse at this point.
Wait a minute-- when you say, your server, do you mean the whole system, or are you talking about a server running on the system (which is what I assumed)?
If you mean the former, I must admit, I did this once myself, and made the system unbootable by doing so (as many system files were no longer owned by root, which they needed to be). IIrc, I solved it by doing an upgrade install over the original install to set the permissions back correctly.
Well, if you change it all back you will definately need to fix your home and /tmp files. Be careful to not change the whole /tmp folder though or you will have bad bad things happen as well.
chown -R root /
chown -R eric /home/eric
chown -R eric /tmp/*-eric
You need to change the ownership of system files back to root or nothing will work. Some files won't or aren't supposed to run as root for security purposes. There you will have to find the documentation and re-chown each individual file/folder.
Well, I did say "Log back in as Root, take away the 'root' permission of Eric again" which complies with "eric should never have the permissions of root (except temporarily)." :P
But that's neither here nor there now, especially given that it seems you can still change file permissions as Root, even if they're owned by someone else.... which actually does make a heck of a lot of sense.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.