LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change userID now can't logon to system (https://www.linuxquestions.org/questions/linux-newbie-8/change-userid-now-cant-logon-to-system-372051/)

saraeliz 10-11-2005 06:15 PM

Change userID now can't logon to system
 
Hi everyone,

I'm new to this board and so I'd just like to say HI.

I had to change a userID on my redhat linux system and now for some reason I can no longer logon to my system. To change the userID, I had to go into the /etc/passwd file. After that I did that the ownership on my files changed. So I changed them to what they're supposed to be including all of hidden files. What do I do now?

Any advice would be appreciated.

Thanks.

Tinkster 10-11-2005 06:29 PM

Hi, and welcome to LQ!

Just make the same change in /etc/shadow



Cheers,
Tink

saraeliz 10-11-2005 07:09 PM

In /etc/shadow the numbers aren't the same.

:12993:0:99999:7:::

as my /etc/passwd

:x:12570:

THanks again.

Tinkster 10-11-2005 07:13 PM

OOops ... I wasn't reading properly. I thought you meant
the users ID not the UID. If the uid was modified and owner
ships of
chown -R <newUID> /home/name
was done there's no reason that it shouldn't let you
log-in unless there's now a syntax error in the line
that holds your user. Care to paste it here, with both
its neighbours?


Cheers,
Tink

saraeliz 10-11-2005 07:42 PM

I would love to paste it but unfortunately I'm not sure exactly what you're talking about.

Tinkster 10-11-2005 08:07 PM

Ok ... well, just check whether the number of
: in the line with your user is the same as for all
others, and that the last entry is the users shell.


Cheers,
Tink


All times are GMT -5. The time now is 04:18 PM.