55.7k views
1 vote
create a directory called mydir on the desktop and inside the directory create file called project.txt. give the anime group the write permission on the file, but do not give the same permission to the manga group (i.e., add the manga group to the file, but make sure the write permission is unchecked). does jacob have permissions to write this file? explain

User BillBokeey
by
8.4k points

1 Answer

0 votes

To create the directory "mydir" on the desktop and the file "project.txt" inside it, use the commands:

mkdir ~/Desktop/mydir

touch ~/Desktop/mydir/project.txt

The commands to use

To grant the anime group write permission and deny write permission to the manga group, use:

chmod g+w ~/Desktop/mydir/project.txt

chmod g-w ~/Desktop/mydir/project.txt

If Jacob is part of the anime group, he would have write permissions since the anime group has write access to "project.txt".

However, if Jacob is part of the manga group or not a member of any group with write access, he won't have permissions to write to the file. The final permissions determine Jacob's write access based on his group association.

User Michael Kropat
by
8.5k points