I have set a samba user (say, remoteuser
) who is supposed to manipulate files under some system folders on the samba server (i.e. and not only his home directory's files), such as e.g. /etc/somedir
)
The dir now is under root:root
ownership
In order to follow the safest approach, what is the preferred way of going about permission assignments?
One way (I guess) would be to create a group (e.g. sambagroup
), and add both remoteuser
and root
to this group?
this does not seem to work probably due toetc
's ownership of root:root
.
Should I prefer acl
and add the necessary permissions to remoteuser
directly to /etc/somedir
?
edit1: pls note (although it goes without saying) that remoteuser
is both the samba
and the system (debian
) username for the particular user.
edit2: for some reason these commands do not help either:
sudo setfacl -Rm u:remoteuser:rwx /etc/somedir
sudo setfacl -Rdm u:remoteuser:rwx /etc/somedir
edit3: I would like file editing to take place on the workstation of the remote user, by letting him open a file via a text editor (e.g. gedit
)
0 Answers