Link to home
Start Free TrialLog in
Avatar of John Richmond
John RichmondFlag for United States of America

asked on

new files are read only on share for everyone except owner/creator MAC OS X 10.6.7

    I have 3 Macs networked in my office. All are running OS X 10.6.  I have one which holds the share drive.  I created sharing only users accounts for the other two computers.  I have given them read+write on the folder in the system preferences  file sharing dialog box.  In Finder the share folder permissions have read+write next to each user.
      New files created are read only for the other two users.  If I change the everyone permission from read only to read+write on the individual file it stays that way even with additional editing.  How can I get new files to be read+write for everyone ?
     I have seen others addressing this issue but I haven't seen a solution I can understand. Thanks in advance for any help .
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Are you sharing with AFP?

Could you open a terminal window and do
ls -al ~/Public   (or the path to your shared folder)
 to see the permission of the shared folder and post the result here.

 make sure that folder is writeable for everyone.
chmod -R 777 ~/Public  (or the path to your shared folder)
Avatar of John Richmond

ASKER

Thanks Wesly,

I only have a check next to Share files and folders using AFP.

iMac:~ kfindley$ ls -al ~/Public
total 32
drwxrwxrwx+  9 root  admin    306 May  3 15:37 .
drwxrwxrwx  17 root  admin    578 May 17 10:30 ..
-rw-rw-rw-@  1 root  admin  12292 Jun 14 11:47 .DS_Store
drwxrwxrwx@  3 root  admin    102 May  3 11:14 .TemporaryItems
-rw-rw-rw-+  1 root  admin      0 Mar 19 16:03 .com.apple.timemachine.supported
-rw-rw-rw-+  1 root  admin      0 Mar 19 16:03 .localized
drwxrwxrwx+  3 root  admin    102 May  4 11:17 Desktop
drwxrwxrwx+  3 root  admin    102 Mar 19 16:03 Drop Box
drwxrwxrwx+  6 root  admin    204 Jun 13 09:38 MYDOCS

iMac:~ kfindley$ chmod -R 777 ~/Public  
chmod: Unable to change file mode on /Users/kfindley/Public/MYDOCS/CHESA//Base Title/BASE TITLE Add 5.17.11.doc: Operation not permitted


this went on for all files in the directory and sub directories.  Several hundred.

Thanks for helping me with this
John

Thanks for your help
A lot of files owned by root, you need to use sudo
sudo chmod -R 777 ~/Public/MYDOCS
sudo worked, the prompt came back with no errors.  Then I saved a word file from a workstation to the share and it still was read only when another computer opened it.  I saved one from the server/workstation to the share and the other computer opened it as read only as well.  So it's still read only from both directions.

I did the ls again and :

iMac:~ kfindley$ ls -al ~/Public
total 32
drwxrwxrwx+  9 root  admin    306 May  3 15:37 .
drwxrwxrwx  17 root  admin    578 May 17 10:30 ..
-rwxrwxrwx@  1 root  admin  12292 Jun 14 18:02 .DS_Store
drwxrwxrwx@  3 root  admin    102 May  3 11:14 .TemporaryItems
-rwxrwxrwx+  1 root  admin      0 Mar 19 16:03 .com.apple.timemachine.supported
-rwxrwxrwx+  1 root  admin      0 Mar 19 16:03 .localized
drwxrwxrwx+  3 root  admin    102 May  4 11:17 Desktop
drwxrwxrwx+  3 root  admin    102 Mar 19 16:03 Drop Box
drwxrwxrwx+  6 root  admin    204 Jun 13 09:38 MYDOCS
iMac:~ kfindley$


John
Where is the file? under ~/Public/MYDOCS ?
Please
cd ~/Public/MYDOCS/
ls -lR
and post the file, so we know who is the owner of that file
sudo chmod -R 2777 ~/Public/
 (make sure ~/Public is the folder you share out)
Hi, I will be on vacation for 10 days start 6/17/2011. Please click "Request Attention" if you need help during my absent. Other experts will assist you.
ASKER CERTIFIED SOLUTION
Avatar of maximus5328
maximus5328
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I ran sudo chmod -R 2777 ~/Public/ then created two files one from the computer hosting the share and the other from a workstation.


iMac:MYDOCS kfindley$ ls -lR
total 112
drwxrwsrwx+ 37 root             admin   1258 Jun 16 09:54 CHESAPEAKE
-rw-r--r--@  1 jkfindley  admin  26928 Jun 16 09:53 TEST FROM WORKSTATION.docx
-rw-r--r--@  1 kfindley       admin  27033 Jun 16 09:51 Test from computer  hosting share.docx

it continued into the CHESAPEAKE folder...

Thanks
John

operating with regular POSIX permissions will not help. you need to work with ACL
> I created sharing only users accounts for the other two computers.
So one of account called "jkfindley", right?
1. run
sudo echo "umask 002" >> ~jkfindley/.profile
2. Also edit /etc/group file on the shared computer, add "jkfindley" and other accounts into "admin" group.
Then add a file from other computer to the share folder to see it's permission is
-rw-rw-r--@  1 jkfindley  admin  ...
(group writeable) or not.

chmod -R 2777 ~/Public/
 is set gid on the directory so all the files created under that directory will inherit the group owner as the directory.
So the next thing is make sure the new added files are group writeable.
Thanks for your help Wesley on this.  I tried your solution, but it was too complicated for me.  I got error messages on changing the profiles and did not know where to go from there.

Maximus5328's solution to download sandbox worked for my limited mac experiance.  Thank you  for suggesting that app.  The permissions work just like they are suppose to now.

Experts-Exchange saved me again, thanks.

john
Sandbox let me edit the permissions so much easier than using the unix commands