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.
I wanted another user to be able to write to "/" but by mistake I made the owner of all the files in "/" to another user. I noticed and tried to change it back and I did. Just in case, I restarted and now Im stuck at the logon screen. It displays and when I try to enter my password, it goes black and just goes back to the logon screen.
What would be the best way to fix this? A format would be ideal (nothing important on it) but its been a couple of days of configuring this server and configuring it AGAIN would just piss me off......
I just want to enter the OS and be able to access (and acutally do stuff)
Nothing. Same thing login comes up, I enter my password, black screen, login again comes up, Io enter again my password, black screen, login come up.........etc infinite.
Changing ownership of all files to root will not fix the problem. Do not do it. If your first command was recursively, with "-R" option, then it can be hard to fix (first try to change your user home directory ownership to you), depending on what ditribution you use, what programs installed, etc. Please specify also if you changed only owner or permissions too?
Changing ownership of all files to root will not fix the problem. Do not do it. If your first command was recursively, with "-R" option, then it can be hard to fix (first try to change your user home directory ownership to you), depending on what ditribution you use, what programs installed, etc. Please specify also if you changed only owner or permissions too?
Well, sudo was broken but I have been able to fix it.
I changed owner AND permissions. I changed the ownership of all files to root (like you said NOT to do; Sorry, did it before you replied) and still the desktop does not show up.
I know the system is problably 90% broken but is there any way to get back into the desktop?
OK, all of that is nice for being able to get back in but it doesn't really solve things, right? You still have to reset all ownership and permissions. How you do that depends on your distribution. Either list it in your control panel or post here if unsure what to do.
OK, all of that is nice for being able to get back in but it doesn't really solve things, right? You still have to reset all ownership and permissions. How you do that depends on your distribution. Either list it in your control panel or post here if unsure what to do.
Ubuntu thought I put it, sorry about that.
Im reformatting and reinstalling but I havent hit the next button yet.........
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
Word of advice,... make your /home partition separate from / , that is, if you don't already. In that instance, you only have to format the / partition, and can leave /home intact... Fixing just the /home partition's permissions and migrating data after a reinstall or upgrade is easier than having to wipe the drive and resort to backups.
PS: 2nd piece of advice,... instead of changing permissions, you should have just added admin rights to the other user on the sudoers list, or used group permissions to do the same thing, provided that kind of permission structure was compatible with whatever software you were using.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.