LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 10-11-2005, 06:15 PM   #1
saraeliz
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
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.
 
Old 10-11-2005, 06:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Hi, and welcome to LQ!

Just make the same change in /etc/shadow



Cheers,
Tink
 
Old 10-11-2005, 07:09 PM   #3
saraeliz
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
In /etc/shadow the numbers aren't the same.

:12993:0:99999:7:::

as my /etc/passwd

:x:12570:

THanks again.
 
Old 10-11-2005, 07:13 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
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
 
Old 10-11-2005, 07:42 PM   #5
saraeliz
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I would love to paste it but unfortunately I'm not sure exactly what you're talking about.
 
Old 10-11-2005, 08:07 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Where do you change the X session logon to text and vice versa? Thaidog Linux - General 2 10-19-2005 08:28 AM
i would like to change my forum userid. How? skoona LQ Suggestions & Feedback 5 06-11-2004 10:06 PM
change logon icon fypon Mandriva 1 03-10-2004 01:13 AM
How to change what desktop manerger is used to logon. (mandrake) mindstormsguy Linux - Software 5 10-18-2003 09:45 PM
change from graphical to text logon mode in RH8 hheejj Linux - General 4 01-09-2003 03:49 AM


All times are GMT -5. The time now is 04:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration