I've recently started using Linux and have a headless Ubuntu server which I would like to access a network drive on my server with write permissions. I can mount the network drive with the following command in my fstab file:
I've also tried:
Where uid and gid matches my ubuntu username details using 'id username' command.
My .smbcredentials file contains the Windows username and password on my Windows server which has r/w permissions to the shared drive:
If I putty onto the Linux server I can view the Windows share at the mount point but if I try to create a test.txt file on the mount point using 'touch' command I get denied permission.
How do I map a Windows share with r/w permissions?
Code:
//IP Address/share /media/mountname cifs credentials=/home/username/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
I've also tried:
Code:
//IP Address/share /media/mountname cifs credentials=/home/username/.smbcredentials,uid=1000,gid=1000 0 0
Where uid and gid matches my ubuntu username details using 'id username' command.
My .smbcredentials file contains the Windows username and password on my Windows server which has r/w permissions to the shared drive:
Code:
username=wUsername
password=wPassword
If I putty onto the Linux server I can view the Windows share at the mount point but if I try to create a test.txt file on the mount point using 'touch' command I get denied permission.
How do I map a Windows share with r/w permissions?