tutorial 4 permissions stuck on question 4?

Problem completing one of the interactive tutorials?

Moderator: drgrussell

tutorial 4 permissions stuck on question 4?

Postby kingfisherdude » Sat Oct 23, 2010 3:27 am

I have typed chmod 277 scripts and it still doesn't pass. I have tryed all different combinations to no avail. Can somebody explain this better than the silly examples on the program that doesn't teach anybody anything. David Carter
kingfisherdude
 
Posts: 1
Joined: Sat Oct 23, 2010 3:00 am

Re: tutorial 4 permissions stuck on question 4?

Postby drgrussell » Sun Oct 24, 2010 2:04 pm

Well I think I would be best to ignore your dig at my material...

Anyway, the question asks you to remove read and execute. Read being 4 and execute 1 gives 5, and so quite rightly you calculated that 7-5 is 2, and this is indeed the first octet of the answer. However why set the other fields to 7? The question does not ask you to change these, so changing them to 7 is wrong. This is one reason why I personally recommend the symbolic notation, which would have allowed you to change only the owner octet without having to know the other octets (chmod u-rx). See http://linuxzoo.net/page/sec_symbol.html

But if you want to use this numeric notation then leave octets 2 and 3 as they were. As the default for these is 5 for directories, chmod 255 would have served you better.

I hope this helps you.
Gordon.
drgrussell
Site Admin
 
Posts: 350
Joined: Sat Feb 12, 2005 8:57 pm


Return to Tutorial Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron