Learning Linux, the Linux system to find files than Windows Rights Management is very strict.
Create a new group under Linux: groupadd group name
Linux newly created user: useradd username
Create users and groups: useradd -g group name Username
To view the user information: cat / etc / passwd or vi / etc / passwd which the cat command can only be viewed, not modified permissions, vi command to view existing permissions have modify permissions (ie read / write privileges)
eg: Create two groups: A and group B
Create two users: a and b
Wherein a user belongs to group A, b user belong to group B.
B When the user wants to access a user's files, you must allow a user to the appropriate authority.
Using the command: chmod 777 a
Then use: ls -l will appear
drwxrwxr-x this string of characters, the first of which is the file type, followed by a group of three, respectively, for the current user privileges, the current set of user permissions, user rights of other groups.
w: writable represent value: 2
r: readable representation value: 4
x: represents executable Value: 1
Where 777 represents all users have read and write permissions to perform, because 1 + 2 + 4 = 7, is not it. Nobody said more difficult to understand. .
When the user wants to b Group A, it is necessary to use administrator privileges: usermod -g A b.