 |
 |
Default folder permissions
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
I realized this at some long ago time, but it just resurfaced in my thoughts. New folders and documents created in the Home folder have default permissions that give everyone read access. Is there a way to change what the default permissions are for a newly created folder/document so that I don't have to remember to manually change them everytime I create a new one?
thanks,
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Apr 2001
Location: europe
Status:
Offline
|
|
They are created from /System/Library/User Template/
|
|
Nasrudin sat on a river bank when someone shouted to him from the opposite side: "Hey! how do I get across?" "You are across!" Nasrudin shouted back.
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
Do I just set the permissions on that folder to the default permissions I want or is there a config file somewhere in that folder?
Can you copy that folder to th ~/Library directory so that different users can set different default permissions?
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
Bounce.
Sorry to be a dolt, but I still don't understand how this works. That folder is owned by System and I can't set the group permissions to not Read or Write unless I change the owner. Is it okay to set that folder to owned by me? Or when another user creates a folder will it be owned by me?
thanks,
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Canada
Status:
Offline
|
|
Developer didn't read your post properly. The folders in "/System/Library/User Template" are used when a new user is created and have nothing to do with folders made in the home directory after a user is created.
As to your question, I don't of anything that will do what you ask.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
That's a bummer, man.
Doesn't the default behavior seem a little odd. Most users won't even think to check the permissions on folders they create (unless they are power users or just know better). Shouldn't the default behavior be to make new folders readable only to the owner?
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Apr 1999
Location: Copenhagen, Denmark
Status:
Offline
|
|
Originally posted by kman42:
That's a bummer, man.
Doesn't the default behavior seem a little odd. Most users won't even think to check the permissions on folders they create (unless they are power users or just know better). Shouldn't the default behavior be to make new folders readable only to the owner?
kman
Other users can't get into your folders.
To change the default you would have to change the umask - I can't remember where, but I think it's in the startup script.
|
|
JLL
- My opinions may have changed, but not the fact that I am right.
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
Originally posted by JLL:
Other users can't get into your folders.
To change the default you would have to change the umask - I can't remember where, but I think it's in the startup script.
Actually, they can. Create a folder in your Home directory and log in as another user.
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
I'm surprised no one has comments or helpful insights on this.
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
Sorry. This is the last time I'll bounce this thread. I just can't believe that no one else has anything to say about this.
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
I finally found a great explanation of this issue over at osxfaq.com.
New files have permissions set to 644 and new directories are set to 755 by default. Normally, this isn't a problem if you create files or directories within one of the default folders in your home folder (Documents, Movies, etc) since they are set to only be readable by the owner. However, if you create a directory or a file in your Home directory, then that file/directory will be readable by everyone.
umask is used to REDUCE the permissions by the amount specified in umask from 666 for files or 777 for directories. For instance, the default setting of 'umask 022' reduces new files to 644 and directories to 755. If you set umask to 066 then new files will be 600 (read/write by owner, no access by anyone else) and directories to 711 (full access by owner, executable by everone else).
For a more complete understanding, see www.osxfaq.com. Look for the advanced UNIX tutorial and permissions. Their tutorials are excellent.
kman
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|