MAC OS X: Forum

Re: How to restrict a folder in MAC OS X?

COW Forums : Apple OS X

VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


MitchJi
Re: How to restrict a folder in MAC OS X?
on Jun 4, 2005 at 5:47:48 pm

Hi,

File permissions look like this (root-owner-group):
-rw-r--r--
-rwxr--r--
drw-r--r--

d is a directory, r is read, w is write, x is execute.

So if you want to protect a file from reading you remove the group r
So if you want to protect a file from writing or deletion you remove the group w

For directories if you want the directory not to be able to be deleted you remove the group w
I think that would also protect the files inside the directory but I'm not sure.
I think removing the r would mean that others could not view the contents of the directory

You can change the permissions with chmod (man chmod for help)




Best Wishes,

Mitch


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]