Essential Unix: Question 8

Problem completing one of the interactive tutorials?

Moderator: drgrussell

Essential Unix: Question 8

Postby newb » Mon Oct 05, 2009 12:36 pm

Hello, having trouble with q8. The question asks:

Create a directory /root/dropzone It should be set up so that group and other users can save files in the directory, but they cannot read the files that are there. User root must able to read and write the directory.


At first I tried creating the directory with the demo account but I soon got "Permission Denied". So i use the command su - to gain access to the root user. I make the directory again and it works. I then use the command " chmod 622 dropzone " to give the permission " rw- -w- -w- " . I then ls -l and all seems fine, so I click test answer and "FAIL" :(
I have even tried the umask command but that hasn't worked either. I reckon this question is super simple but I don't see the answer.

Iv been stuck on this for far too long so I ask for help, from you, the gods of linux to throw down some almighty knowledge, so I can defeat this mean question 8. :D That is all.

Regards Newb
newb
 
Posts: 9
Joined: Mon Oct 05, 2009 12:19 pm

Re: Essential Unix: Question 8

Postby drgrussell » Mon Oct 05, 2009 9:35 pm

To give someone access to a directory they must always have x permissions (execute).
Add that to owner, group, and other to answer this question.

Note from this tutorial on you must always be root.

Gordon.
drgrussell
Site Admin
 
Posts: 240
Joined: Sat Feb 12, 2005 8:57 pm

Re: Essential Unix: Question 8

Postby newb » Sat Oct 10, 2009 11:26 am

Ah i see. That worked thank you.
newb
 
Posts: 9
Joined: Mon Oct 05, 2009 12:19 pm

Re: Essential Unix: Question 8

Postby purpleriverboy » Tue Feb 23, 2010 6:10 am

Yeah....so i have this command executed to give the required permissions....
Code: Select all
chmod 711 dropzone

to set the permissions of the directory to
Code: Select all
drwx--x--x   2 root root   4096 Feb 23 05:04 dropzone


but i am still failing the test....
please reply........
purpleriverboy
 
Posts: 7
Joined: Mon Oct 19, 2009 7:36 pm

Re: Essential Unix: Question 8

Postby drgrussell » Tue Feb 23, 2010 12:19 pm

"group and other users can save files in the directory"

You have given group and others only "x", but they need "x" and "w".
drgrussell
Site Admin
 
Posts: 240
Joined: Sat Feb 12, 2005 8:57 pm

Re: Essential Unix: Question 8

Postby purpleriverboy » Wed Feb 24, 2010 3:43 am

Yeah .....got the point.Thank You so much.
you are a genius!!
purpleriverboy
 
Posts: 7
Joined: Mon Oct 19, 2009 7:36 pm


Return to Tutorial Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron