Sambashare - change permissions on client to 0770

KleiKK

Cadet
Joined
Jul 20, 2022
Messages
2
Hey guys,

I am trying to change permissions of my samba share on the machine that has it mounted to 0770, but I am not getting any error when running, but it still has the same permissions after all. When I run this command from TrueNAS directly (over ssh) it changes to proper permissions but only on TrueNAS, on the client it stays the same.
```
chmod 0770 /data
drwxr-xr-x < after
```
On my client, my fstab looks like it:
```
//192.168.50.36/nextcloud /nextcloud cifs credentials=/etc/samba/user,iocharset=utf8,uid=1000,gid=1000 0 0
```
1658345593795.png

1658345621826.png

1658345650976.png

1658345688437.png


How can I change it, so the client of my samba share has 0770 permissions?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
What is the exact chmod command that you're running (including path) and where are you running it. /data on TrueNAS is a special path that should _never_ be touched by end-users.

Why do you want to set 0770 permissions? Why don't you use the graphical permissions editor?
 

KleiKK

Cadet
Joined
Jul 20, 2022
Messages
2
So I am doing
```code
chmod 0770 /mnt_folder # on client of samba share in that case ubuntu
chmod 0770 /data # inside docker which is on ubuntu
chmod 0770 /mnt/back/server/nextcloud # over ssh on Truenas
```

I need them for my software to work properly, in that case nextcloud. I don't even know how I could use GUI for it.
 
Top