Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
When u add a user they get a UID (User ID) i.e. 500
You are also part of a group - as a default its your username. (GID might be also be 500)
That information is all stored in /etc/passwd along with your home directory and encrypted password.
When you logon or a program needs to authenticate you it checks /etc/passwd for an entry and when you enter a password it is encrypted and compared to that of the /etc/passwd entry.
Thats basically it, file permissions are basic, they are based on username and pasword but alsoo permission bits (i.e. you might do an ls -l foo and get get the following)
Code:
[ammullan@daemon ~]$ ls -l | grep foo
-rwxrwxr-x 1 ammullan ammullan 11954 Feb 14 20:59 foo
The -rwxrwxr-x is read, write and execute permissions. They are broken down into 3 block groups (i.e. in this example foo can be read, written to and executed by user and group and can be read and executed by all)... The 1st bit will have a d if it's a directory etc.
Hope that helps a bit (If ya wanna know any more let me know)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.