IN LINUX answer the following with what you would type to get the desired result.
A user is the owner of the file and the person who creates the file becomes the owner of the file.
Every file in unix has 3 types:
Owner permission : Detrmines what action a owner can take.
Group permission : Detrmines what action a user who is the member of the group can take.
Other permission: Detrmines what action others can take.
sudo chmod 770 folder_name using this command we can allow the owner and group full access, with no access for anyone else on the system.
For login: login: susan
If the password is defined in it, the password prompt appears , enter the password and login.
Now to switch user use the su command.
su-l [sam]
You will be asked for the password. Enter it and you will be logged in it.
Files are not accesed by sam because it does not have permission for it.
chmod g+s command is used to set the SGID bit.
Get Answers For Free
Most questions answered within 1 hours.