Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Usually, the user id for users created on Linux systems now starts from 1000. On Fedora/CentOS systems it used to be from 500. It is specified in /etc/login.defs file. So, a user with uid 1000 is the first normal user (non-root user) created on the system. Or if your system starts giving uid from 500, then another non-root (non administrator) user with uid 1000.
The file ownership shown in your post for directory /var (which is a system directory) is clearly a case of mess up. This directory should be owned by root only and not normal user. It's either an innocent experimentation with file permissions or an attack perhaps?
P.S.: If only uid is shown and not the name of the user, it is mostly because, the username changed.
I've understood that the owner of some files is 1000(user), what is it? and why there is it!?
typically, Linux starts creating "normal" users at UID 1000. So a user with UID 1000 is probably the first user ever created on that particular system (beside root, who always has UID 0).
P.S.: If only uid is shown and not the name of the user, it is mostly because, the username changed.
are you sure? If you change the user name, the new name will be displayed instead of the old one.
I'd rather assume this occurs when a user is deleted. In that case, there are still files that have UID 1000 for the file owner in their meta data, but since there is no such user any more, Linux can't display a name for it.
are you sure? If you change the user name, the new name will be displayed instead of the old one.
I'd rather assume this occurs when a user is deleted. In that case, there are still files that have UID 1000 for the file owner in their meta data, but since there is no such user any more, Linux can't display a name for it.
[X] Doc CPU
You are correct. I stand corrected uid is displayed instead of username when the user is deleted (say using 'userdel') without deleting all related files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.