You are not logged in.

#1 2012-02-22 03:55:34

LWhitson2
Member
From: West Lafayette, IN
Registered: 2011-11-26
Posts: 18

Samba Permissions Help

Alright, I have a server set up so that my Windows and Linux computers can backup and share files. The goal is to have all authenticated users have rwx and all guests to only have r-x. Here is my SAMBA configuration file:

[main]
        comment = Serenity Main Share
        path = /mnt/share/main
        read list = @nobody
        write list = @users
        force group = +users
        create mask = 0664
        directory mask = 0775
        guest ok = Yes

When my wife connects from her Windows computer, directory and file permissions are set correctly as 775 and 664, but when I connect to the share from my Linux computer, the permissions are set as 740 for directories and 640 for files. This is screwing everything up because my wife can't access the files that I put on the server. Any thoughts on why this is occurring?

Also, I am mapping the drive on my Linux computer with the following line in /etc/fstab:

//serenity/main /home/lunitsond/Serenity/Main cifs users,noauto,noatime,credentials=/home/lunitsond/.smbcred,ip=192.168.1.201 0 0

Thanks,
Bryce

Last edited by LWhitson2 (2012-02-22 03:58:11)

Offline

#2 2012-02-22 09:23:18

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: Samba Permissions Help

How does your wife does her auth from windows?
And how do you do it from linux?

Also, it is just an idea, but from check from linux, what exactly are your permissions of your directory (/home/linutsond/Serenity/Main/) mounted by fstab.


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#3 2012-02-23 02:44:19

LWhitson2
Member
From: West Lafayette, IN
Registered: 2011-11-26
Posts: 18

Re: Samba Permissions Help

My wife mounts the share through the Windows "Map Network Drive" using her server credentials. I mount the share in fstab using cifs and my server credentials.

I checked the permissions on the folder and they are correct and show the correct group 'users':
0775 for directory
0664 for files

Offline

Board footer

Powered by FluxBB