Net use
Jump to navigation
Jump to search
Example with smb
# DOMAIN is your AD domain sudo setfacl -Rm 'g:DOMAIN\sftp_clients_group_rw:rwx' /sftp/clients
net use k: \\sftp\myshare /user:MYDOMAIN\myuser net use /delete k:
smb.conf
[myshare] path = /sftp/clients/someuser writeable = yes browseable = no valid users = @"DOMAIN\sftp_clients_group_rw" write list = @"DOMAIN\sftp_clients_group_rw"
facls
# set for current files/dirs sudo setfacl -Rm 'g:DOMAIN\sftp_clients_group_rw:rx' /sftp/clients # set defaults for new files sudo setfacl -Rdm 'g:DOMAIN\sftp_clients_group_rw:rx' /sftp/clients # remove all sudo setfacl -Rx 'g:DOMAIN\sftp_clients_group_rw:rx' /sftp/clients