Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 50310  / 3 Years ago, fri, june 18, 2021, 7:03:58

Have reinstalled Ubuntu on my web dev server. On the old one I had an smbfs share setup to access a share over the local network to other Ubuntu boxes. It was setup using the following and worked fine - http://ubuntuforums.org/showthread.php?t=288534



This time round I am using cifs-utils instead of smbfs, but I presume this is fine?



Upon reinstalling the server I have been having issues making the files writable. Its mounted ok, and when from my local machine I ls -l it shows me write permissions (although from my local user), but when I goto create or save over a file it gives me a no permissions error



Here is the line in my /etc/fstab. I had to make one change to be able to mount, and I added the ,sec=ntlmv2 option, without which I was getting mount error(13)



//192.168.0.40/webserver    /media/webserver        cifs    credentials=/root/.smbcredentials,sec=ntlmv2,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=1000,gid=1000 0 0


and my credentials file (unchanged from when it was previously working)



username=melon
password=xxxxxxxxxxxx


How can I fix it so that I have write permissions on my mount?


More From » mount

 Answers
1

Make sure you have the following line in your /etc/samba/smb.conf file on the server:



writeable = yes


Hopefully that will enable write access to the share.


[#29882] Saturday, June 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
untroo

Total Points: 3
Total Questions: 110
Total Answers: 95

Location: Palestine
Member since Thu, Oct 28, 2021
3 Years ago
untroo questions
;