June 2016
Beginner
456 pages
9h 31m
English
We have created users and groups. In this recipe, you will work with default file permissions for users and groups, as well as see how to modify those permissions.
Create two users, user1 and user2. Create new group editor and add user1 and user2 as members.
Follow these steps to manage file permissions, follow these steps:
user1.documents under home:
user1@ubuntu:~$ mkdir documents
documents:
user1@ubuntu:~$ echo "hello world"> documents/file.txt
user2:
user1@ubuntu:~$ su user2
Permission denied:
user2@ubuntu:/home/user1$ echo "hello ...Read now
Unlock full access