This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

umask / permissions to create group-writeable directories

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Minorlemming
NewUser
NewUser
Posts: 4
Joined: 28 Aug 2013 10:16
Status: Offline

umask / permissions to create group-writeable directories

Post by Minorlemming »

Hi all,

I'm setting up a test Nas4Free system for home and I'm having problems creating the SMB setup so that directories and files are group read-write for all users.

I've tried adding the following to my share configuration and applying:

Code: Select all

create mask = 2640
directory mask = 2750
I did this based on the fact that after logging into the instance, my umask is 0022.

That still created directories with permissions 755 (no group write).

I changed this to

Code: Select all

create mask = 0660
directory mask = 2770
I've applied changes and rebooted between each config change, but when I connect back, I am still creating directories with permissions of 755.

Any ideas what I need to do in order to make directories and files created on a share be group-writeable ?

Thanks

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: umask / permissions to create group-writeable directorie

Post by raulfg3 »

viewtopic.php?f=55&t=245

Add in auxiliary parameters to do not lost on reboot.
http://wiki.nas4free.org/doku.php?id=do ... b&s[]=user
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Minorlemming
NewUser
NewUser
Posts: 4
Joined: 28 Aug 2013 10:16
Status: Offline

Re: umask / permissions to create group-writeable directorie

Post by Minorlemming »

Hi there,

Taking away the issues for multiple users, right now I just want a single user to be able to create group writeable directories inside a SMB share.

I've been using the auxiliary parameters since the beginning, and my settings are persisted across reboots:
Image

I've also tried modifying the umask now too:

Code: Select all

[waynep@nas4free /mnt/media]$ umask
0002
Despite these, directories are created as 755. /mnt/media is shared as 'media'

Code: Select all

[waynep@nas4free /mnt/media]$ ls -la 
total 32840
drwxrwx---  4 root    family        1024 Aug 28 12:09 .
drwxr-xr-x  4 root    wheel          512 Aug 27 21:14 ..
-rw-r--r--  1 waynep  family        6148 Aug 27 21:20 .DS_Store
-rw-r--r--  1 waynep  family        4096 Aug 27 21:20 ._.DS_Store
drwxrwxr-x  2 root    operator       512 Aug 27 21:06 .snap
-r--------  1 root    wheel     33554432 Aug 27 21:06 .sujournal
drwxr-xr-x  2 waynep  family         512 Aug 28 12:09 Test
That 'Test' directory entry was created after connecting to the share. With the create mask and directory mask at what they are, I would expect these directories to be created 775 or 770.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: umask / permissions to create group-writeable directorie

Post by raulfg3 »

Create new desired root folders, and asing user & permission that You need by hand, once done enable inherit permission on share edit, and children folders inherit permission of parent folders.

And read alexey123 post about user separation : viewtopic.php?f=18&t=1552
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “CIFS/SMB (Samba)”