Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

When I check the permission on my etc folder using the alt + i command, I am not able to check the permission. As if the file had no permissions at all.

This occured to me while I was trying to write some stuff in the hosts file.

I tried to manually chmod the file but I got an "operation not allowed".

share|improve this question

migrated from stackoverflow.com Nov 25 '11 at 14:23

This question came from our site for professional and enthusiast programmers.

4  
Belongs on Super User? And did you try using sudo? –  Austin Hyde Jan 10 '11 at 18:45

2 Answers 2

You can use the old unix comand line chmod

chmod 777 ./folder

With 777 you permit your file or folder do all things for all peoples. Use

man chmod

to read the help.

share|improve this answer

The /etc directory on a mac isn't a directory at all, it's a symlink (shortcut). It redirects to private/etc.

You won't be able to chmod the directory, because it belongs to the root user by default. If you want to chmod it you'll have to prefix the command with 'sudo' to run as the superuser.

Bearing that in mind, make sure you know what you're doing before you start playing around with system directories and their permissions.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.