Question about owner and groups being displayed as numbers
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.