0% found this document useful (0 votes)
67 views1 page

Basic Unix Commands

The document provides instructions for several tasks related to file and directory permissions on Linux/Unix systems. It includes commands to view and change permissions for specific files and directories as well as the default permissions using umask. Specific tasks involve setting read, write, and execute permissions for users, groups, and others.

Uploaded by

mentesnot aweke
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views1 page

Basic Unix Commands

The document provides instructions for several tasks related to file and directory permissions on Linux/Unix systems. It includes commands to view and change permissions for specific files and directories as well as the default permissions using umask. Specific tasks involve setting read, write, and execute permissions for users, groups, and others.

Uploaded by

mentesnot aweke
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

current march as U=wx, g=x, o=r if you are asked to remove user permission from

owner
$: changemod u-w marchas
$; changemod 514 marchas
task 8: add back the change permission to owner to marchas
$: changemod u+w marchas
task 9: give change and execute permission to other for marchas
$: chmod 0=wx marchas
task 9: remove both both change and execute permission from other
$: chhmod 0-wx marchas
task 10 : remove all permissioon from group and other user
$: chmod go= marchas

directory access mode


directory access modes are listed and organized in the some manner as any other
five there are a few difference that need to be mentioned
1 read permission
access to directory ameans that the user can read the contents the user can took at
the five mane inside directory
task1: view the current defalut permission setting and maksure the ouput is in
sybolic form
$; umask -S
task2: view the current defalt permission setting and makesure the out put is in
actual from
$: umask
task3: create a new directory name hello and confirm the defalt permission
$mkdir hello
task4: copy/bin/bash to hello and confirm the directory permission
$ cp/bin/bash hello
task5: change the defalt permission to u=wx g=x o= ---
$: umask 467 hello
$ umask -S
task6: add read permission to other and group to hello
$umask 423 hello
task7 : current helo u=wx,g=x,o=r if you are asked to remove change permission from
owner
$umask 623 hello
$umask -S (im symbolic)
$umask (in octal form)
task 8: add back the change permission to owner to hello
$umask 423 hello

exercise
1, change your working directory to /etc/
2, change the default permission the ff
u = rx
g = ---
o = w
3, on a system the command umask -S give us the ff from what will be the permission
in octal format
u= x , g=r ,o=w
4, add the read write and execute permisson to owner and other but group as a
default permission setting
5, giving the following command umask 273 hello and then configure the default
permission and write to owner adn group , other have

You might also like