You are not logged in.
Samba Client has connected to local server but I have to use sudo to edit anything inside the mounted directory /mnt/truenas
I gave chown username filename to /mnt/truenas and even tried altering chmod but nothing seems to be working.
/etc/fstab
//localserverIP/servernam /mnt/truenas cifs _netdev,nofail,credentials=/etc/samba/credentials 0 0
Note: I locked down the credentials file with root access only and using a random password that isn't found anywhere else.
Again, the server works but I'd have be able to move around the file system much like my /home/dir without having to use sudo for simple edits.
Thanks for any helpful tips, advice or criticism.
Last edited by Rabid3east (2022-07-09 01:10:21)
Offline
I gave chown username filename to /mnt/truenas
What you do to the mountpoint is irrelevant.
Either allow everyone to read/write or fix the shares ownership.
https://wiki.archlinux.org/title/Samba# … ermissions
https://wiki.archlinux.org/title/Samba#Manual_mounting
You can also try to chown/chmod the *mounted* paths, but depending on the server config of the share, that might not be possible
Offline
Thanks Seth for replying. I did add uid=1000, and gid=984, 0 0 to the end of my fstab and played around with chown and chmod more. But after a restart it just started working. I was reloading the fstab and remounting manually so not sure what changed. However it's all working as it should now. Hope it helps others.
Offline