For many years I have used smbmoumt to mount shares on my server. However, with newer versions of Linux that I'm starting to use smbmount is sadly defunct and cifs is used instead.
What I do is quite simple. I have a very straightforward script such as this (as user, not root):
smbmount //server/pictures ~/network/pictures
This would know my username and I could just add my password when prompted.
It took my ages to work out that to be able to even log on with cifs I would need to do this as user:
mount.cifs //server/pictures ~/192.168.0.1/pictures -username=myusername
I have to do the IP address of the server, because later cifs simply refuses to pick up the name of server.
Now, although I can mount a pull files
off the server, if I try to copy directories with sudirectories, it just creates one of the subdirectories then gives up saying permission denied.
Does anyone know why this would be and what would fix it? Please don't suggest fixes in fstab.
Many thanks.