Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm curious what the meaning is for the two root entries on terminal when you enter the ll command. I know one is the user but not sure which one. What do both mean and in which order?

For example,

jeff@Ubuntu:~/Documents$ ll
drwxrwxr-x  2  jeff jeff 4096 Dec 3 20:32 MySQLBackup/
-rw-rw-r--  1  root root    1 Dec 3 18:36 Essay1.txt
share|improve this question

2 Answers 2

The 1st one is the user. The 2nd one is the group.

Linux knows several layers that you can set permissions to that would apply to the user. One of these layers is a group: you can create a group, set permissions for that group and then add users to that group. Changing the group applies it to all the users to that group.

If you have 100 users it would be rather time consuming to set permissions to all of those users seperatly if large amounts of those users will have the same set of permissions.

Have a look at AddUsersHowto on how to set this (bottom part includes command line options).

When you type groups in command line you will see the groups you belong to yourself. I myself belong to the groups rinzwind adm cdrom sudo dip plugdev lpadmin sambashare jupiter. For most of these groups you can check this page for some information about them but there purpose should be fairly obvious. jupiter is software that is for CPU management that I added after install; the rest should be default. dip is the odd one out in naming but that is for modem access. lpadmin for printers etc.

share|improve this answer
    
Excellent answer. Fully understand now. Thanks for the link too! –  hogriderj Dec 7 '12 at 12:15

The first one is the user that owns the file. The second is the group. There's a user and also a group both named "root".

share|improve this answer
    
Thanks for the response. I wasn't sure which order the user and group were in but had an idea. –  hogriderj Dec 7 '12 at 12:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.