You are not logged in.

#1 2022-07-08 13:27:05

Rabid3east
Member
Registered: 2021-10-31
Posts: 37

[Solved] Samba Client has connected to local server but...

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

#2 2022-07-08 15:07:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,325

Re: [Solved] Samba Client has connected to local server but...

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

#3 2022-07-09 01:10:04

Rabid3east
Member
Registered: 2021-10-31
Posts: 37

Re: [Solved] Samba Client has connected to local server but...

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

Board footer

Powered by FluxBB