MCA3060 Exercise 11 SLM
MCA3060 Exercise 11 SLM
MCA3060 Exercise 11 SLM
Exercise 11
Exercise 11
The Shell
i. View local variables and environment variables using set and env
commands and comment what you observed. Observe and write your
hostname, username and present working directory (pwd).
ii. Write down the list of executed commands using history
command.
iii. Write down the manual information about any command using
man command and use it.
iv. Allow permission to read, write and execute a file only to member of
your group whereas prohibit to write and execute to other members of
different group using shell prompt/Terminal.
Page No.: 20
Exercise 11
Description
User access
Group access
Other system user's access
Equivilent to "ugo"
Add access
Remove access
Access explicitly assigned
Permission to read a file Permission to read a directory
(also requires "x")
Permission
to
delete
or
modify
a
file
Permission to delete or modify files in a directory
Permission
to
execute
a
file/script
Permission to read a directory (also requires "r")
Set user or group ID on execution.
Permissions granted to the user who owns the file
Set "sticky bit. Execute file/script as user root for
regular user.
Abbreviation
Octal code
rx
rw
5
6
rwx
Page No.: 21
Exercise 11
Page No.: 22