Привет, как запретить linux (виндовых нет) пользователям менять пермишшены на smb шаре?
Вот пример шары:
\[it]
path = /share/disk1/it
vfs objects = acl_xattr
msdfs root = no
writeable = yes
browseable = yes
public = no
dos filemode = no
hide unreadable = no
create mode = 0660
directory mode = 0770
force create mode = 0660
force directory mode = 0770
locking = 1
blocking locks = 1
strict locking = Auto
oplocks = 1
level2 oplocks = 1
fake oplocks = 0
csc policy = manual
valid users = @share_it_r @share_it_rw
force group = Domain Users
nt acl support = 0
inherit acls = 0
write list = @share_it_rw
inherit owner = no
inherit permissions = yes
read only = yes
мантим шару
sudo mount -t cifs -o vers=1.0,user=$USER,cruid=$USER,sec=krb5 //servername/it /home/$USER/test
cd ~/test/
Ну и тест
touch file.test
ls -la file.test
-rw-rw----+ 1 testuser Domain Users 0 Aug 31 13:52 file.test
chmod 600 file.test
ls -la file.test
-rw-------+ 1 testuser Domain Users 0 Aug 31 13:52 file.test
mkdir dir.test
ls -la | grep dir.test
drwxrwx---+ 2 testuser Domain Users 0 Aug 31 13:53 dir.test
chmod 600 dir.test/
ls -la | grep dir.test
drw-------+ 2 testuser Domain Users 0 Aug 31 13:53 dir.test