Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2905

SMB Share Linux to Linux - Only root on the client is able to modify the contents

$
0
0

I've got two linux machines, one server running a samba share with the following options:

[Projects]    path = /home/remote_user/Projects    writeable = yes    force user = remote_user

I mounted this to the client using:

sudo mount -t cifs -o username=remote_user //192.168.1.200/Projects /home/local_user/Projects

The mount was successful and I can access the files for read, but I cannot write, modify, or delete any of the contents in this mount.

I have tried all sorts of options in the smb.conf file including read only = no, forcing user/groups, public options, etc. I restarted the smbd service and remounted the drive each time and still the permissions would not change. I've gone through several similar questions on this site and others and none of their resolutions seem to resolve my issue.

When I ll in the directory from the client:

[~/Projects]$ lltotal 16drwxr-xr-x  2 root root    0 Apr 25 10:37 ./drwxr-xr-x 11 local_user local_user 4096 Apr 25 10:30 ../drwxr-xr-x  2 root root    0 Apr 18 10:39 directory3/drwxr-xr-x  2 root root    0 Apr 10 15:42 directory4/drwxr-xr-x  2 root root    0 Apr 24 08:46 directory5/drwxr-xr-x  2 root root    0 Apr  7 10:34 directory6/-rwxr-xr-x  1 root root  396 Mar 31 09:48 file1drwxr-xr-x  2 root root    0 Apr 12 10:10 directory8/drwxr-xr-x  2 root root    0 Apr 25 10:37 directory9/drwxr-xr-x  2 root root    0 Apr 13 09:46 directory10/drwxr-xr-x  2 root root    0 Apr 24 15:27 directory11/drwxr-xr-x  2 root root    0 Apr 12 14:20 directory12/drwxr-xr-x  2 root root    0 Apr 21 11:03 directory13/drwxr-xr-x  2 root root    0 Apr 24 15:55 directory14/drwxr-xr-x  2 root root    0 Apr 25 10:11 directory15/drwxr-xr-x  2 root root    0 Apr  3 15:06 directory16/drwxr-xr-x  2 root root    0 Apr  6 10:49 directory17/drwxr-xr-x  2 root root    0 Apr 25 10:11 directory18/

On the server side the owner/group are the user on the server. The user/group names (and uid/gid) on the server differ from the clients (intentional, and desirable). FWIW, the client is WSL2.


Viewing all articles
Browse latest Browse all 2905

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>