Author Topic: [SOLVED] File Sharing Authorization Problems  (Read 2130 times)

abluesongbird

  • Guest
[SOLVED] File Sharing Authorization Problems
« on: February 10, 2013, 04:46:42 pm »
I have two shares setup on my newly-installed zentyal 3 server, <host>,

* /guest has guest access enabled and
* /priv has guest access disabled and provides access to <user>, a specific user.

Both of these shares were created from existing directories.

From a Windows 7 client, I can access /guest but not /priv (even as <user>):

"Windows cannot access \\<host>\priv.  You do not have permission to access \\<host>\priv.  Contact your network administrator to request access."

I think the problem has to do with file permissions on <host> but am not sure how zentyal/samba is managing authorization.  Can anyone shed some light on these observations?

On <host>, I notice that the permissions on /guest and /priv are different:
root@host:~# ls -ld /guest/
drwxrwx--- 4 sync __USERS__ 4096 Feb  7 00:43 /guest/
root@host:~# ls -ld /priv/
drwx------ 66 sync __USERS__ 20480 Oct  1 20:23 /priv/

If I 'chmod 755 /priv' on <host>, then my Windows 7 client can access the /priv share; but if I subsequently make changes via zentyal, then zentyal reconfigures 'chmod 700 /priv' and the share becomes inaccessible.

Why is zentyal using these permissions and how can I get it to share with Windows 7 clients?
« Last Edit: February 17, 2013, 11:20:36 pm by abluesongbird »

abluesongbird

  • Guest
Re: File Sharing Authorization Problems
« Reply #1 on: February 17, 2013, 11:18:56 pm »
This had something to do with the mount options and is working now--I was not aware of the acl mount option nor that it was needed on zentyal-managed volumes.  When I added the same options to the /priv mount point that zentyal applied to the root mount point,

errors=remount-ro,usrquota,grpquota,acl,user_xattr

I was able to mount /priv from Windows.