Linux Redhat lab: use chmod to manage basic permissions on Linux



Linux Redhat lab: use chmod to manage basic permissions on Linux

Linux Redhat lab: use chmod to manage basic permissions on Linux

Link playlist
https://www.youtube.com/playlist?list=PLIpLw6v7Z1qmty_yT3KQUeV5jW46Wu7hG
2023 07 29 06 32 29
Exercise 7-1 Managing Basic Permissions 1. From a root shell, type mkdir -p /data/sales /data/account.
2. Before setting the permissions, change the owners of these directories using chown linda.sales /data/sales and chown linda.account /data/account. 3. Set the permissions to enable the user and group owners to write files to these directories, and deny all access for all others: chmod 770 /data/sales, and next chmod 770 /data/account. 4. Use su – laura to become user laura and change into the directory /data/account. Use touch emptyfile to create a file in this directory. Does this work? Type groups to figure out why. 5. Still as user laura, use cd /data/sales and use touch emptyfile to create a file in this directory. Does this work? Type groups to figure out why.