LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-05-2022, 03:17 PM   #1
andymck
Member
 
Registered: Aug 2006
Location: Garland, TX, USA
Distribution: Fedora
Posts: 90

Rep: Reputation: 15
Can't Log In After Upgrade


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.
 
Old 02-05-2022, 05:40 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,804
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by andymck View Post
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?
 
Old 02-05-2022, 09:18 PM   #3
andymck
Member
 
Registered: Aug 2006
Location: Garland, TX, USA
Distribution: Fedora
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mrmazda View Post
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!

Last edited by andymck; 02-05-2022 at 09:29 PM.
 
Old 02-05-2022, 09:29 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,804
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
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.
 
Old 02-06-2022, 01:11 AM   #5
andymck
Member
 
Registered: Aug 2006
Location: Garland, TX, USA
Distribution: Fedora
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mrmazda View Post
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.
 
Old 02-06-2022, 03:47 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by andymck View Post
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!
So, is this SOLVED now?
 
Old 02-06-2022, 10:35 AM   #7
andymck
Member
 
Registered: Aug 2006
Location: Garland, TX, USA
Distribution: Fedora
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ondoho View Post
So, is this SOLVED now?
Yes -- sorry I forgot that with my last post.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to log internal-sftp chroot jailed users access log to /var/log/sftp.log file LittleMaster Linux - Server 0 09-04-2018 03:45 PM
[SOLVED] after installation of MySQL could not log into mysql using temporary password in /var/log/mysqld.log User247 Linux - Server 2 12-25-2017 09:31 AM
[SOLVED] Can't log in with GDM (or GUI) but can log in via CLI with no password after updates. anon112 Sabayon 1 09-12-2010 06:12 PM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 04:13 PM
Opennms Logs - where are web.log, web_rtc.log and webauth.log referenced? not_much_of_a_guru Linux - Networking 0 07-12-2006 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration