FedoraThis forum is for the discussion of the Fedora Project.
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 just upgraded from Fed33 to Fed35. I kept my /home directory intact and initialized the others, as I usually do, and after the installation was complete logged in. Everything looked fine, so I created a couple of users I have as 'alteregos', logged out, and tried to log in as one of them. In both cases, I entered the password, it took a couple of seconds, and kicked me back to the user list without logging me in.
As a test, I went back to my main account and created a new user (with no password), logged out, and logged in as that new user. It did fine.
So, why can't I log in on my other /home/userdir directories? I've checked and the directory owners correctly match the account names.
Does this mean your user names in /etc/passwd are in sync with output of ls -n /home?
Whoa... I didn't look that close. The names were both there, but 'usera' owned the directory for 'userb' and vice versa, because the order I created them in didn't match the original creation order. I fixed it with a couple of "chown -R" calls. Many thanks!
I think I did it once upon a time by editing /etc/passwd. It seems to be the purview of the usermod command though.
As root you could rename the existing home directories with mv, create new users/directories correctly with mkuser -g ### -u ###, then delete the new directories and move the originals back using the correct number values with chown:chgrp.
I think I did it once upon a time by editing /etc/passwd. It seems to be the purview of the usermod command though.
As root you could rename the existing home directories with mv, create new users/directories correctly with mkuser -g ### -u ###, then delete the new directories and move the originals back using the correct number values with chown:chgrp.
I considered something like that, but using 'chown -R name:name /home/name' for both users seemed easier to me. It may have some minor unexpected consequences, but I think I'll be okay.
Whoa... I didn't look that close. The names were both there, but 'usera' owned the directory for 'userb' and vice versa, because the order I created them in didn't match the original creation order. I fixed it with a couple of "chown -R" calls. Many thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.