Question

IN LINUX answer the following with what you would type to get the desired result. Change...

IN LINUX answer the following with what you would type to get the desired result.

  1. Change the permissions of the /home/shared/salesproject/ folder itself, allowing the owner and group full access, with no access for anyone else on the system.
  1. Log in as "susan" (password "secret") and make sure she can access the /home/shared/salesproject/ directory and files within. Create a file in /home/shared/salesproject/ as susan. What are the owner, group, and mode of the file she created?
  1. Log in as "sam" (password "secret"). Try to edit the file susan created. Why doesn't sam have access?
  1. In order to guarantee that files created in /home/shared/salesproject/ are created with the "sales" group, set the SGID bit on the /home/shared/salesproject/ directory.

Homework Answers

Answer #1

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.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
After reading the following article, how would you summarize it? What conclusions can be made about...
After reading the following article, how would you summarize it? What conclusions can be made about Amazon? Case 12: Amazon.com Inc.: Retailing Giant to High-Tech Player? (Internet Companies) Overview Founded by Jeff Bezos, online giant Amazon.com, Inc. (Amazon), was incorporated in the state of Washington in July 1994, and sold its first book in July 1995. In May 1997, Amazon (AMZN) completed its initial public offering and its common stock was listed on the NASDAQ Global Select Market. Amazon quickly...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT