1
1
I have two users in Ubuntu. My first was me and I am the owner of the folder in question. The second is my wife. Netatalk is running and we can both see the folder on the network. I can access it but she cannot. She gets an error in OS X:
… you don't have permission to see its contents
I have use chmod 777
on the folder but it made no difference. Any ideas?
The directory in question is a mounted harddrive at /media/ourPhotos
ls -lh /media/
I am trying to share "Mir Yannick", shared group is "shapiras"
total 112K
drwx------ 1 isaac isaac 24K Dec 1 10:52 Belboz the Magnificent
lrwxrwxrwx 1 root shapiras 7 Aug 18 16:17 floppy -> floppy0
drwxrwxr-x 3 root shapiras 4.0K Dec 16 03:28 floppy0
drwx------ 1 isaac isaac 48K Dec 1 10:51 Frobozz Magic Memory Device
drwx------ 1 isaac isaac 28K Aug 20 16:23 Mir Yannick
drwxrwxr-x 3 root shapiras 4.0K Aug 20 09:01 Network Trash Folder
drwxrwxr-x 3 root shapiras 4.0K Aug 20 09:01 Temporary Items
AppleVolumes.default
/davidtennant Tardis allow:isaac cnidscheme:dbd options:usedots,upriv,tm
/media cnidscheme:dbd allow:isaac,jessica options:usedots,upriv
/media/Mir\ Yannick allow:jessica options:usedots,upriv
df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sdh1 ext4 1939812036 1193632920 649089428 65% /
udev devtmpfs 3047700 12 3047688 1% /dev
tmpfs tmpfs 1222604 900 1221704 1% /run
none tmpfs 5120 0 5120 0% /run/lock
none tmpfs 3056500 740 3055760 1% /run/shm
/dev/sdb1 fuseblk 1953512444 1504702472 448809972 78% /media/Mir Yannick
/dev/sdg1 fuseblk 976759804 873042100 103717704 90% /media/Belboz the Magnificent
/dev/sda1 fuseblk 976759804 703015860 273743944 72% /media/Frobozz Magic Memory Device
Its not the home directory, its a mounted hard drive. I didn't realize that was significant. My apologies, I have edited my answer. – Fresheyeball – 2012-12-16T08:44:00.837
But can your wife access that share with my method? – John Siu – 2012-12-16T08:45:14.583
Well she can access her home folder fine, thats the method we where using actually. And she can see the folder in question too, but it got a red circle on it in osx and says she does not have permission to access content. – Fresheyeball – 2012-12-16T08:50:38.707
She has to "umount" her home folder, then "mount" your folder with your login. You can only use one credential with a server at a time. You cannot connect as A to Folder-A and as B to Folder-B at the same time to a single server. – John Siu – 2012-12-16T08:53:22.730
Are you telling me that netatalk is not capable of sharing the same folder to two different accounts? – Fresheyeball – 2012-12-16T09:05:00.840
I am on my mac, connected as Foo to folders A and B. She is on her mac and connected as Bar to folder C; at the same time, but from two different computers. Why can't it be
Foo -> A, B
andBar -> C, B
at the same time? – Fresheyeball – 2012-12-16T09:07:53.830Netatalk is capable to handle multiple accounts and folders. – John Siu – 2012-12-16T09:09:09.693
Well the issue is that right now Foo can access B but Bar can't. I've set B to 777 to no effect and can't think of anything else to do. Foo is the owner of that folder, but that should not matter. – Fresheyeball – 2012-12-16T09:10:36.930
I updated my answer, let me know result. Pay attention to step 3, there is a semi-colon(:) right before the group name sharefolder. – John Siu – 2012-12-16T09:12:46.840
I'm sorry, I am still new to linux, and step 3 confuses me, where would I put the path to the folder in that command? – Fresheyeball – 2012-12-16T09:17:24.767
Sorry, formatting error. – John Siu – 2012-12-16T09:22:42.087
in progress, will let you know result as soon as it finishes – Fresheyeball – 2012-12-16T09:29:55.277
Same thing. No change. – Fresheyeball – 2012-12-16T16:42:49.143
Oh and I restarted the daemon as well. – Fresheyeball – 2012-12-16T16:52:05.790
Please update question with content of /etc/netatalk/AppleVolumes.default and output of "ls -lh /media" – John Siu – 2012-12-16T17:01:12.477
I have updated my answer. – Fresheyeball – 2012-12-16T18:41:44.927
It looks like chown did nothing to change the ownership of the mounted drives. Maybe thats a hint. – Fresheyeball – 2012-12-16T19:00:07.603
Which folder is the mounted one? I don't see "ourPhoto" in your update. – John Siu – 2012-12-16T19:04:20.773
Its Mir Yannick. I was just using ourPhoto as a hypothetical, but then again this tread has gotten real. – Fresheyeball – 2012-12-16T19:09:01.007
Mir Yannick is basically a hd from my bad old windows days, and contains about 1tb of photos. – Fresheyeball – 2012-12-16T19:09:55.013
Updated, netatalk won't work. I updated with samba config info. – John Siu – 2012-12-16T19:28:52.120
Aww... really? No netatalk? I was hoping we could both use the afp service for timemachine. Can't do that with samba. – Fresheyeball – 2012-12-16T19:40:32.687
You can keep netatalk running, there is no conflict between them. – John Siu – 2012-12-16T19:46:05.517
Guys, please note that we also have [chat] for longer discussions. Try and keep the comment thread somewhat small. Thank you. /cc @Fresheyeball – slhck – 2012-12-16T20:58:34.837
Ok so this has messed everything up. Not only does Samba not play nice along side Netatalk, but now I don't have authorization to access any of my harddrives. My whole system is screwed. – Fresheyeball – 2012-12-16T21:07:35.603
They don't even show up under /dev – Fresheyeball – 2012-12-16T21:08:16.193
Let do this in chat. Craeting a room "access netatalk share on osx permission issue" – John Siu – 2012-12-16T21:11:22.280
room : http://chat.stackexchange.com/rooms/6756/access-netatalk-share-on-osx-permission-issue
– John Siu – 2012-12-16T21:15:21.240I got it working. I rebooted unmounted and remounted the drives to new locations. – Fresheyeball – 2012-12-16T21:20:31.527
You've been a huge help, and put in big effort. Please add that possible fix and I will award you the bounty. – Fresheyeball – 2012-12-16T21:21:11.480
Updated. I hope it reflect what you did for the final touch. – John Siu – 2012-12-16T21:36:11.060
I did not use Samba. Netatalk did work. The permissions problem had to do with the manner in which the drives where mounted. I don't know why it was the case, or how remounting them from the command-line instead of the from the ui made a difference, but what ended up working is still contradictory to your answer. – Fresheyeball – 2012-12-17T18:06:44.783
Can you post your current AppleVolumes.default and ls -lh "mount point"? The answer may be in them. Also the command line you use to mount. – John Siu – 2012-12-17T18:58:18.887
After reviewing previous answer, updated base on the result of netatalk work after reboot. – John Siu – 2012-12-17T20:04:47.940
@Fresheyeball any feedback or comment? – John Siu – 2012-12-18T05:12:30.970