Command
Command
task 6: write a command to give privilage for a member of primary group or a user
task 10: create an account may hold, setting its home directory to /home/mayhold &
the group as may This would have korn-shell assigned it
$ sudo usermod -d /home/mayhold -g may -S /bin/kush mayhold
task 12: write a command to give privilage for a member of primary group or a user
$ sudo visudo ==> go to root username==> ALL=?userbin/top then control+s ==>
control+x
***********************************************************************************
*
***********************************************************************************
*
file access mode
task 13: view the current defualt permission setting and makesure the outpu in
symbolic form
$ umask -S
task 14: view the curren default permission setting and makesure the output in
octal format
$ umask
task 15: create a new file name marchas and confirm the defualt permission
$ sudo touch marchas
$ ls -l marchos
task 16: copy /bin/bash to march and confirm the file permission
$ cp /bin/bash marchas
$ ls -l marchas
task 19: current march as u=wx, g=x, o=r if you are asked to remove wright
permission from owner
$: chmod u-w marchas
task 21: remove both change and execute permission from other
$ chmod o-wx
task 22: remove all permission from group and othe ser
$ chmod go= marchas
task 24: view the current default permission setting and makesure the output in
octal form
$: umask
task 25: create a new directory name hello and confirm the default permission
$ mkdir hello
??? $ ls -l ???
task 26: copy /bin/bash to hello and confirm the directory permission
$ cp /bin/bash hello
task 28: current hello u=wx,g=w,o=xw if you are asked to remove change permission
from owner
$ umask 623
$ umask -S(in symbolic)
$ umask (in octal form)