Score:0

Automount CIFS share permission issue

cn flag

Having issues setting Write access when mounting a CIFS mount. Ubuntu Server/Client. Details are in the paste. I tried to provide as much info that I could think, but please let me know if you need more info:

https://pastebin.com/1JSdiEmN *let me know if I shouldn't use pastebin and just post the code here

What am I missing? Did I mess up the smb.conf masks/modes? I've been searching forums and adding/removing arguments trying to get it to work -- no luck. I've tried both lines in the CLIENT /etc/fstab

(i created the test files from the console of the SERVER)

Thank you for any assistance!

Anthony Kelly avatar
ng flag
Are you the user `deluge`? If you're only in the group `deluge` you should try `file_mode=0775,dir_mode=0775`.
synthetiq avatar
cn flag
Apologies this wasn't clear: clientUser is my user account on the CLIENT machine. On CLIENT, I'm running the Deluge service that runs as user "deluge" and needs read/write access to that /mnt/tmp location.
synthetiq avatar
cn flag
I edited /etc/fstab with the following: //SERVER/tmp /mnt/tmp cifs credentials=/home/clientUser/.smbcred,uid=deluge,gid=deluge,vers=3.0,file_mode=0775,dir_mode=0775,iocharset=utf8 0 0 And it worked! Am I good to go with this? Any redundancy I can get rid of? Thank you so much @AnthonyKelly
Score:0
cn flag

Per @AnthonyKelly's response, adding the file_mode arguments fixed my issue. End /etc/fstab file:

//SERVER/tmp /mnt/tmp cifs credentials=/home/clientUser/.smbcred,uid=deluge,gid=deluge,vers=3.0,file_mode=0775,dir_mode=0775,iocharset=utf8 0 0

Thanks again, Andrew.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.