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


  Search this Thread
Old 07-05-2006, 07:39 PM   #1
Registered: Oct 2004
Location: Rhode Island, USA
Distribution: Slackware... Simplicity is bliss.
Posts: 62

Rep: Reputation: 15
Lost /etc/passwd, now UID/GID are different from before. Is this OK?

Hello. I lost the /etc/passwd file. I copied over a passwd file from a similair setup server and added some more users from looking at the /etc/shadow file. Is it going to be a problem if the UID/GID numbers are different from before the data loss?

Thanks for any help,
Old 07-05-2006, 07:44 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Yes... The ids are the numbers stored with the files, so if the original user bob had an id of 1000 and now has 1001 he won't get owner permissions on his files, but Alice was 1001 so now bob own all her files instead.
Old 07-05-2006, 09:01 PM   #3
Registered: Oct 2004
Location: Rhode Island, USA
Distribution: Slackware... Simplicity is bliss.
Posts: 62

Original Poster
Rep: Reputation: 15
I see. I believe the important users were created during install (root, nobody, mysql, sshd, etc.) and from looking at a few of my server's /etc/passwd file, they all have the same UID/GID, maybe because there were created in sequence. Maybe I should copy over my current /etc/passwd to a fresh install as the server in question is a dedicated server in a remote location. I'd hate to lose connection and be stuck.


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
what is uid and gid rmanocha Linux - Software 9 08-18-2008 11:03 PM
Shell Script :- to get UID and GID furquan Programming 30 02-21-2006 07:44 AM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 11:39 AM
How can I change a user's uid and gid? homesp Debian 2 05-31-2005 02:39 PM
changing uid, gid zeke1955 Linux - General 4 01-09-2004 11:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 AM.

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