-Adam-
Dabbler
- Joined
- Jan 10, 2017
- Messages
- 27
Hi!
I'm struggling with my project which is installing a mail-server (mailinabox) on a share from Freenas. What I want to achieve is to connect a share via fstab and install all the necessary components there. The problem is that when I do mount the share I have only one user and one group (root as default) for the entire share. Mail server uses many different users and combination of access privileges.
Could sb please provide a solution for using a Freenas share with possibility of using system-wide permissions as well?
I use this stab entry to mount:
These are the original permissions:
And this is how it looks after copying to mounted share:
Thanks,
Adam
I'm struggling with my project which is installing a mail-server (mailinabox) on a share from Freenas. What I want to achieve is to connect a share via fstab and install all the necessary components there. The problem is that when I do mount the share I have only one user and one group (root as default) for the entire share. Mail server uses many different users and combination of access privileges.
Could sb please provide a solution for using a Freenas share with possibility of using system-wide permissions as well?
I use this stab entry to mount:
Code:
//192.168.2.13/MAIL /home/user-data cifs username=**,password=**,vers=3.0,mfsymlinks,nobrl,_netdev 0 0
These are the original permissions:
Code:
drwxr-xr-x 2 root root 4096 Feb 7 16:56 backup drwxr-xr-x 3 root root 4096 Feb 7 16:49 dns drwxrwxr-x 7 root www-data 4096 Feb 7 18:52 mail -rw-r--r-- 1 user-data user-data 3 Feb 7 16:43 mailinabox.version drwxrwx--- 5 www-data www-data 4096 Feb 7 18:17 owncloud drwxr-xr-x 3 root root 4096 Feb 7 16:53 owncloud-backup -rw-r--r-- 1 root root 15 Feb 7 17:00 settings.yaml drwxr-xr-x 3 root root 4096 Feb 7 16:58 ssl drwxr-xr-x 3 user-data root 4096 Feb 7 16:52 www
And this is how it looks after copying to mounted share:
Code:
drwxr-xr-x 2 root root 0 Feb 7 16:56 backup drwxr-xr-x 2 root root 0 Feb 7 16:49 dns drwxr-xr-x 2 root root 0 Feb 7 18:52 mail -rwxr-xr-x 1 root root 3 Feb 7 20:13 mailinabox.version drwxr-xr-x 2 root root 0 Feb 7 18:17 owncloud drwxr-xr-x 2 root root 0 Feb 7 16:53 owncloud-backup -rwxr-xr-x 1 root root 15 Feb 7 20:13 settings.yaml drwxr-xr-x 2 root root 0 Feb 7 16:58 ssl drwxr-xr-x 2 root root 0 Feb 7 16:52 www
Thanks,
Adam