No, nobody can read the cp.new file in sarwar’s home directory (except sarwar) because no user has the permission to search sarwar’s home directory.
a. chmod 776 ~/lab5
b. chmod 751 ~/lab?
c. chmod 666 *.c
d. chmod 711 ~/*
e. chmod u+rx ~/bin
f. umask 077
g. ls -l
h. ls -ld
i. ls -l ~/personal
j. ls -ld ~/personal
a. Set permissions for ~/lab5 to read, write, and execute for the owner and group, and read and write for others.
b.Set permissions for all 4-letter files (and directories) in your home directory that start with the string “lab” to read, write, and execute for the owner, read and execute for the users in the group that the owner belongs to, and execute only for others.
c. Set permissions for all the files terminating with .c (i.e., all C source files) to read and write for everyone.
d. Set permissions for all the files and directories in the home directory to read, write, and execute for the owner and execute only for everyone else.
e. Allow the owner of ~/bin to perform read and execute operations. If ~/bin is a directory, the execute permission will allow the owner to perform the search operation on it.
f. Set the default permissions for all executable files and directories created from now on to read, write, and execute for the owner and no permissions for anyone else, and for all text files created from now on to read and write for the owner and no permissions for anyone else.
g. Display the long listings for all the files and directories in your current directory.
h .Display the long list for the current directory.
i. Display the long list for all the files and directories in the ~/personal directory.
j. Display a long list for the directories in the ~/personal directory.