LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-20-2005, 03:50 PM   #1
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
Question about owner and groups being displayed as numbers


Slack 10.2

On some folders/files the owner and group are not displayed as the usernames/groupnames but as numbers.

I have seen this a few times on different directory's

The one I'm looking at now is a directory that is a rsync from a slackware-mirror.
It makes kinda sense because I use the -a option with rsync (witch also includes to keep permissions and owner). Maybe this is causing it.

But I can also remeber seeing it on other files too.

Anyway ,

1) what exactly is causing this ?
2) and, is it bad ?

Last edited by nukey; 09-20-2005 at 03:55 PM.
 
Old 09-20-2005, 04:02 PM   #2
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
I don't think it is "bad" usually what happens is a UID (the number you are seeing) is translated into a local user name on your machine. So in fact Every file on your computer is owned by a number 1001 or 501 or whatever. However, when you RSYNC from somewhere they may have a user with a number that simply does not exist on your machine in which case you see the number. I suppose that this could get dangerous if at some future date a malicious user was assigned this UID and then could access these files.
 
Old 09-20-2005, 04:19 PM   #3
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Original Poster
Rep: Reputation: 30
So, basicly I have 2 options, run rsync with different options or chown -R the directory

Actually, the rsync option is the only _real_ solution , i'll check it out.

Hope I won't see this behavior somewhere else

Thanks !
 
Old 09-20-2005, 04:25 PM   #4
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
I guess it depends on what you are rsyncing. If you are backing up your own stuff you should keep the ownership intact to avoid a lot of confusion if you need to recover everything. Then just make sure you assign all of your users the same UID wen you reinstall. take a look at /etc/passwd the username is in third space User:x:UID:GID:etc
 
Old 09-20-2005, 10:15 PM   #5
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
I have had this numbered ids problem when using going through putty and then su to another user.
 
Old 09-21-2005, 09:47 AM   #6
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Original Poster
Rep: Reputation: 30
Just checked it, removed some dir, run rsync NOT with the -a option, and the numbers are gone ;-)
 
  


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
Port numbers and domain name question yanik Linux - Networking 2 09-01-2005 04:38 PM
Protecting a directory with chmod, owner, groups, others clarence1720 Linux - Newbie 12 11-06-2004 01:33 AM
owner and groups Clemente Linux - Newbie 1 09-12-2003 12:06 PM
Question for board owner Jason P LQ Suggestions & Feedback 1 01-18-2003 08:43 AM
apache, process owner, and rsync/ssh question Kruel Linux - Networking 0 03-01-2002 12:25 PM

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

All times are GMT -5. The time now is 12:51 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