Question

Change the permissions of the /home/shared/salesproject/ folder itself, allowing the owner and group full access, with...

  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.
  2. 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?
  3. Log in as "sam" (password "secret"). Try to edit the file susan created. Why doesn't sam have access?
  4. 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.

Need answer from 1-4

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1).sudo chmod 770 folder_name

using this command we can 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.

2).if we Log in as "susan" (password "secret") and we want that she can access the /home/shared/salesproject/ directory and files within for that we have to run this command

sudo chown susan folder_name

Here 'chown' command means change owner.

For Create a file in /home/shared/salesproject/ as susan we have to run this command

mkdir /home/shared/salesproject/susan

rwxr-sr-x this is the permissions of  the owner, group, and mode of the file she created

3).If we login as "sam" (password "secret"). and we want to edit then we can't edit susan file because susan file created and edited under "susan" user and all the permission of editing have assigned to user "susan"

so user "sam" is not abale to edit susan file.

4).for seting SGID permission for group we can run this command

chmod g+s folder_name

Add a comment
Know the answer?
Add Answer to:
Change the permissions of the /home/shared/salesproject/ folder itself, allowing the owner and group full access, with...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Cybersecurity Fundamentals Lab #9: Access ControlName: ____________________ If your Kali VM is already up and running,...

    Cybersecurity Fundamentals Lab #9: Access ControlName: ____________________ If your Kali VM is already up and running, login to the root account on the VM via ssh. It does not matter whether you use a command line or GUI sshclient. If your VM is not currently up, use the vSphere web client to start your VM before logging into it via ssh.1: Create an Unprivileged User For some labs, including this one, we will need a non-root user account on the...

  • CASE 8 Unlocking the Secrets of the Apple iPhone in the Name of access the male...

    CASE 8 Unlocking the Secrets of the Apple iPhone in the Name of access the male San Bernardino suspect's iPhone 5c. Cook stated: Antiterrorism We are challenging the FBI's demands with the deepes respect for American democracy and a love of our country. We believe it would be in the best interest of everyone to step back and consider the implications While we believe the FBI's intentions are good, if would be wrong for the w e nt to force...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT