I am having trouble writing to a samba share from a linux client (a Windows client can read and write just fine). According to ls -la run from the linux client, I should have full permissions:
james@Q35-ICH9:~$ ls -la /mnt/
total 8
drwxr-xr-x 3 root root 4096 Feb 25 09:38 .
drwxr-xr-x 24 root root 4096 Feb 25 04:39 ..
drwxrwxrwx 61 james james 0 Feb 26 05:39 cloudshare
james@Q35-ICH9:~$ getfacl /mnt/cloudshare/
getfacl: Removing leading '/' from absolute path names
# file: mnt/cloudshare/
# owner: james
# group: james
user::rwx
group::rwx
other::rwx
but:
james@Q35-ICH9:~$ touch /mnt/cloudshare/test
touch: cannot touch '/mnt/cloudshare/test': Permission denied
But if I use sudo, I can touch:
james@Q35-ICH9:~$ sudo touch /mnt/cloudshare/test
The user also has full access to the parent folder:
james@Q35-ICH9:~$ ls -la /mnt/
total 8
drwxrwxrwx 3 james james 4096 Feb 25 09:38 .
drwxr-xr-x 24 root root 4096 Feb 25 04:39 ..
drwxrwxrwx 61 james james 0 Feb 26 07:42 cloudshare
I am confused as to why I need to be root to write to cloudshare even though 'james' should have full permissions (as far as I can see).
grep /mnt /proc/mounts
? The answer may include your IP address; feel free to hide it. But any other mount options would be important in understanding this problem. – telcoM Feb 26 '19 at 14:27//10.0.0.x/cloud /mnt/cloudshare cifs rw,relatime,vers=1.0,cache=strict,username=neon,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=10.0.0.x,soft,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,echo_interval=60,actimeo=1 0 0
– Stonecraft Feb 26 '19 at 14:29noforceuid
and changinguid=0
touid=1000
(or whateverid -u
tells you is james' user id) (and the same for group)? Also, please edit the question to put themount
output into it! – Feb 26 '19 at 17:51fstab
and re-mounting? – Feb 26 '19 at 19:03