Samba Share permission issues

drissical
Posts: 7
Joined: Thu May 20, 2010 12:33 pm

Samba Share permission issues

Postby drissical » Sat May 29, 2010 6:08 pm

Having an issue accessing files on my server with other users. I can make files and see them just fine with my user, but if i use my wife's account she cannot see the files. Im using Greyhole as well just to keep that in mind.
using this:http://wiki.amahi.org/index.php/Shares_troubleshooting
I was able to find that I think its a permission issue of sorts, I actually thought it was just windows 7 at first but on my computer vista I cannot see the files if I am connected as her.

If i terminal in i can ls -l and see that the files are actually symlinks and i can see where they go, that is what they are suppose to do. If i SU as her user they turn red (using putty to terminal in) assuming that means that the files are not accessible at this point by her user on the linux system.

Her user was added through the amachi dash board and only differs from my own account by uid same group id. the owner and group for the files are showing root assuming that is greyhole's doing. That does not tell me why I can access them and her account cannot. I am also assuming that solving this issue will lead me to a fix for the guest account not being able to see the files if i do a "guest ok = yes" on the share.

Any help would be appreciated

One more thing she can add files so write permissions are working just fine apparently, she is the owner of the files that are written .
Let me know if there is any other information I can provide I figure this is something not to major

edit*
I got it Fix'd
looking in to this again i think it might be a problem with the mounts but I cannot figure out why my account can access them but another user account can't, just a guess. Basing this off the fact i cannot ls in to a drive mount as the second user, i get a permissions error.

Code: Select all

$ ls -l /var/hda/files/drives/sdd1/ ls: cannot open directory /var/hda/files/drives/sdd1/: Permission denied
Copy of my mounts in fstab

Code: Select all

UUID=ad14b136-df03-48de-893d-0dd839acc174 /var/hda/files/drives/sdd1 ext4 defaults 1 2 #1000 UUID=92c25af1-b515-4e76-881a-ed3c9d317650 /var/hda/files/drives/sdb1 ext4 defaults 1 2 #500 UUID=95cdff55-04a2-4ac9-b9b8-f0f3b4833ee0 /var/hda/files/drives/sda1 ext4 defaults 1 2 #320
I noticed that the mount points looked like this while unmounted:

Code: Select all

drwxr-xr-x 2 root root 4096 2010-05-17 19:40 sda1 drwxr-xr-x 2 root root 4096 2010-05-17 19:40 sdb1 drwxr-xr-x 2 root root 4096 2010-05-17 19:40 sdd1
when they were mounted they had my user for the owner and there were only owner permissions so i changed the permissions of these folders and now i can access the shares with my Wife's account. Im not sure why the mount points were setup the way they were before as 700 for my user, i changed them to root:users with a 775 im not sure what would be a better setup but I figure that it would be ok.

Who is online

Users browsing this forum: No registered users and 36 guests