Hi,
I have a question regarding accessing my Synology NAS from OS. I store all my data on my NAS and use Samba to access it’s shared folders by Dolphin by typical “smb://19.168.1.XX/Shared folder”, which works fine. The good thing about this is I can use the NAS username(s) to connect and then got the rights I have set in the NAS.
What is not great is that I am not allowed to create new documents on the NAS from inside an application, I have to first save it to a local folder and then use Dolphin to move it to the NAS. I also have problem with opening recently used files from within a program for instance a spreadsheet in Calc, open it from Dolphin works. Apart from this all works good, but these minor issues is a little annoying in the long term.
Is there a way to improve the Samba connection to solve this? I also think I just don’t understand thus run/user/… thing so if some have an high level explanation about that it might help.
I know NFS is an alternative, but it seems way more complicated and I did never understand if I still could use the NAS user to connect, so I gave up on that.
Thanks for your reply, makes sense. I have been into modifying the fstab many years ago, will read up and repeat on that now and try that first. I first started with other distros before I ended up with OS, and I am pretty sure it worked there without permanent mounting or maybe the actual file manager did the mount?, I guess that is why I expected it to work here as well, but also in Windows it would be typical to map a shared folder to a drive letter.
Yes, Dolphin does not work like that. Instead, it uses an SMB kio client, similar to smbclient (using libsmbclient in fact). GNOME file manager uses gvfs, which effectively mounts shares as a user AFAIR.
I did not find the smb4k application, but I added a few lines to the /etc/fstab and my shared Samba folders now shows up after reboot, but all seems read only. I have specified username and password in the fstab file, so how can I achieve the rights defined on the NAS?
I added UID and GID but no change, anyhow when I list a folder on the mounted share all files and directories are owned by root.
drwxr-xr-x 2 root root
When I created the /mnt/nas/shared folders it was as su.
//192.168.1.22/Dokumenter /home/grro/Documents/Nas/Dokumenter/ cifs user=XX,password=PPPPPP 1000 1000
I found the UID in Yast> users.
All files still owned by root
I use umount /mounted folder and mount -a after any modification in fstab
If I skip the user and password, it asks for root password when I mount it.