I cannot get write permissions on my Windows 11 share. I can access and read all files, but when I try to copy a file TO the Windows 11 share, I get permission denied.
What I’ve Tried:
I have permissions open on the Win11 share and I can read and write on that share from another Windows machine, I just cannot write to that share from Linux. Not sure what config files in Linux I need to adjust to achieve writing permissions to this share. I am happy to post any config files I need to but am just not sure which ones need tweaking.
Appreciate any pointers on this subject. Thanks in advance.
Is this windows share on the same computer as Ubuntu or another computer and if another computer, how do you access it? Generally, people doing this use samba which I have no familiarity with. If that’s it, the configuration file is in /etc/samba directory and is named smb.conf. If that’s not what your doing, post specifics.
I made no changes to the smb.conf file to gain access to the windows machine, which is located in another room and on the same network. I installed Samba, set the Windows machine to a static IP, then went into Nautilus “Other Locations” entered the server address (in this case it is the static IP that I set the windows machine to use), entered my windows credentials when prompted, and had access to the share.
I can copy files FROM the windows machine, but any time I try to copy files TO the windows machine, I get a permissions error, denied.
I hope that clears up my issue. Thanks for your response.
Does the account you are using on the remote Windows system have a blank password? Does the account have write access in the share permissions as well as at the file level?
The remote windows system does not have a blank password. As I mentioned, I used my credentials to log into the machine from Nautilus. Yes, at the Windows level, all permissions are granted, and I can copy both ways with another windows machine, but I cannot write to the remote windows system from Linux.
Thanks for the reply. The truth of the matter is that as of this morning, I had write privileges to the windows share. Out of the blue. It might have been something I did, what with the folder permissions on the windows machine that I played with so many times. So for now, the network share between my Ubuntu and Windows boxes are working as they should. The worst part about it is that I have no real idea why….
You did assume correctly my ID is 1000. I kept your suggestion on tap just in case something goes awry. A couple questions on your lines of code: First the dumb one, by username and password is that from the windows drive I am accessing, correct? Not my linux uname and password? 2nd, can you put a line like that into the fstab file so that the drive would get mounted at bootup?
Not dumb to ask for clarification. Yes it’s the Windows username and password.
You can add a line similar to that in /etc/fstab and it’ll mount at boot.