Assume access control list of three files are given as below in
Unix directory listing. (you will see something similar when you
type ls -l in a unix system)
Access Control |
FileName |
Group |
Owner |
Drw-rwxr-x |
Classess |
University |
Nick |
drwxr----- |
bills |
University |
Kate |
-rwxrw-rw- |
list |
OS_Class |
Sandra |
-rwxr-x--x |
Assignment2 |
OS_Class |
Nancy |
Narrate the permission given to the owner, group and everybody for each file or folder.
Hint:
d- directory (if it is a folder, otherwise -)
r- read permission
w- write permission
x- execute persmission
Classess is a directory.
Owner Nick.
He's allowed to read, and write.
He belong to group University.
And his group members can read, write, and execute
this file.
All other people can just read and execute this
file.
bills is a directory.
Owner Kate.
She's allowed to read, write and execute this
directory.
She belongs to group University.
And her group members can just read this file.
No other people have access to this directory.
list is a file.
Owner Sandra.
She's allowed to read, write and execute this
file.
She belongs to OS_Class group.
And her group members, and others can just read, and
write to this file.
Assignment2 is a file.
Owner Nancy.
She's allowed to read, write and execute this
file.
She belong to OS_Class
And her group members can just read and execute this
file.
All others can just execute this file.
Assume access control list of three files are given as below in Unix directory listing. (you...
Objective: Practice common UNIX commands. Procedure: The following list of Unix commands are given for self-learning. Use 'whatis' or 'man' command to find out about each command. Your document should include the description or screen shots of the output from each of the command. Commands: df du gzip file history wget Changing access rights: chmod u+x Dir1.0 adds execute permission for the owner chmod go-w file1 removes write permission for the group and others chmod ugo=rw testfile sets...
1. Assume the following struct is declared for the permission list of a file in Linux. Each permission (u or g or o) is represented as an octal. For example, u=7 means rwx, u=5 means r-x. Note: "unsigned char" means a byte, not a character or a letter or a string. typedef struct { unsigned int uid; // owner id unsigned int gid; // group id unsigned char u; // owner's permission unsigned char g; // group's permission unsigned char...