NAS singular behaviours

GOT IT, we are near!
with

sudo mount -t cifs "//192.168.1.7/PUBLIC DISK 1" /home/angelo/Scrivania/LAVORO -o vers=1.0,username=admin,password=admin

the LAVORO folder on my Desktop is now filled by the NAS folders and files!!
Nautilus other positions bookmark spaces is empty (NAs is not mounted by Nautilus usual procedure)
GREAT!
BUT all the files in the NAS reached by the Desktop/LAVORO directory are read only, can't be modified, I can't upload they on the net (like the behavior at the start of this topic) and I can save nothing in the NAS disk, no new files!!!!!
Otherwise Nautilus => Mount NAS by bookmark => shared folders are completely accessible
UPdate: cannot umount the LAVORO folders because the owner is user#502 and also opening Scrivania (Desktop) with root privils does not allow to me to change the folder's owner...

All right! So we have our answer to the "NAS singular behavior", it seems it supports older versions of the SMB protocol that are used by default by Nautilus. It's probably true as well for FTP. Over these two, SMB is the better protocol I think so let's stick to using that.

Now, you can edit the /etc/fstab file again and add the option for the version like we just did here:

//192.168.1.7/PUBLIC\ DISK\ 1 /home/angelo/Scrivania/LAVORO cifs vers=1.0,credentials=/home/angelo/.smbcredentials,uid=1000,gid=1000,x-systemd.automount 0 0

And reboot, to have a fresh start.

I'm not sure how to deal with spaces in the shared directory. Try like this first, adding the backslash \ character in front of each space. If that doesn't work, try adding the quotes around the entire first field, making sure to reboot afterwards:

"//192.168.1.7/PUBLIC DISK 1" /home/angelo/Scrivania/LAVORO cifs vers=1.0,credentials=/home/angelo/.smbcredentials,uid=1000,gid=1000,x-systemd.automount 0 0

Done, nothing happened: Scrivania/LAVORO stay empty
Tried however other combinations also eliminating the inside credential referring,
"//192.168.1.7/PUBLIC DISK 1/LAVORO" /home/angelo/Scrivania/LAVORO cifs vers=1.0,username=admin,password=admin,uid=1000,gid=1000,x-systemd.automount 0 0
Always without goals :frowning: the CLI command work (I cannot umount the folder but it is not a real problem, the NAS is always on and must be always connected to the PC.. but I wish to not be forced to type the cli command every day)
Question: I gave to Guest, in NAS, the same permissions of the admin... Avoiding the usr/pwd sets could semplify the process?

It could simplify the process... but giving admin permissions to a guest account is not a very good idea. Let's find another way.

Let's try one more thing, by using the ASCII character code for a space (\040):

//192.168.1.7/PUBLIC\040DISK\0401 /home/angelo/Scrivania/LAVORO cifs vers=1.0,credentials=/home/angelo/.smbcredentials,uid=1000,gid=1000,x-systemd.automount 0 0

And reboot :crossed_fingers:

1 Like

FIXED!
after boot I've automatically on Desktop the 192.168.1.7 folder and two LAVORO folders (one with the usual folder icon and another, squared with the upper part yellow and the bottom zone white with a little row it seems like an external drive :grinning_face_with_smiling_eyes:) but both have the same NAS' files inside and I can work on them! read, write modify, upload, attach, delete... ahhhh Great!!! I feel really gratefully to you, can't say how I'm happy to this wonderful solution! Now, just few tries on secondary aspects about Libreoffice and the pdf manipulations and I can abandone win also on the other pcs in office!
Thank you so much!!!

1 Like

You're welcome, hope everything works out :slight_smile: