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,
user2. Create new group
editor and add
user2 as members.
Follow these steps to manage file permissions, follow these steps:
user1@ubuntu:~$ mkdir documents
user1@ubuntu:~$ echo "hello world"> documents/file.txt
user1@ubuntu:~$ su user2
user2@ubuntu:/home/user1$ echo "hello ...