Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

CIFS Windows 10 mount is read only

$
0
0

I am running Ubuntu 22.04.3 LTS trying to mount (CIFS/Samba) an NTFS drive on Windows 10 Pro Version 22H2 (OS Build 19045.3693). I actually have it working on one of the Windows drives, but have run out of space. I have another drive that has space and want to use that one. Other than name, size and space available the two drives are identical; both attached via USB to the same hub and have similar security.No matter what I do, the second mount on Linux ends up read only.sudo touch /mnt/mountname/test.txtresults in touch: cannot touch '/mnt/mountname/test.txt': Permission denied

I am using this command to mount:

sudo mount -t cifs -o credentials=/etc/win_creds/cred_file,dir_mode=0770,file_mode=0770,vers=2.0,uid=1000,gid=0,forceuid,forcegid //192.168.x.x/windrivename/winfolder/anotherwinfolder /mnt/mountname

I have checked that the Linux permissions on the mount are rwxrwx--- (both prior to mounting and after mounting).

I have checked to make sure that the user name listed in cred_file exists and has Windows permissions to //192.168.x.x/windrivename/winfolder/anotherwinfolder (ie Full Control). I have tried both Workgroup and THEACTUALWINDOMAINNAME as Domain.

I have unmounted and made sure that the /mnt/mountname folder has rwxrwx--- permissions and is owned by the user that is issuing the mount command; in addition, the user is a member of root and the group owner of /mnt/mountname is root.

I have tried vers=1.0 and vers=3.0.

There are no error messages with dmesg | grep CIFS.

There are no error messages in Windows Event Viewer -> Security nor System.


Viewing all articles
Browse latest Browse all 699

Trending Articles



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