LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mount.cifs will not allow me to copy directories, smbmount will (https://www.linuxquestions.org/questions/linux-networking-3/mount-cifs-will-not-allow-me-to-copy-directories-smbmount-will-737713/)

DiBosco 07-04-2009 10:37 AM

mount.cifs will not allow me to copy directories, smbmount will
 
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.

stress_junkie 07-04-2009 06:54 PM

I've started to use smb4k. It bypasses these kinds of issues.

I suspect that the problem is that you are not mapping the network share as your local user or you need to add the rw flag to the options list.

I put some example code for this in a post a few days ago. I suspect that if you had searched LQ you would have found it. Here is the same example code.
Code:

mount -t cifs //192.168.1.4/share-name /home/linux-user/iomega -o username=nas-user,password=nas=password,uid=linux-user,gid=users,rw
You should research your problem to see if someone else has asked and answered the same problem both on LQ and on the Internet. If you did research your problem before you posted then you should have said so in your post.

DiBosco 07-05-2009 10:06 AM

Yes, I'd done a load of searching, I wouldn't post here if I hadn't. I found loads of people had similar problems and not one of the posts had solved the issues that people had.

I don't understand what password=nas=password means. Should that be password=nas-password? What does nas stand for? network something server? My username has always been the same on the samba server and smbmount always worked perfectly. It's just these newer machines that give issues. I'm using mount.cifs btw, I think if you do mount -t cifs you have to be root, no?

I just tried smb4k and that is just the same!

Thanks for trying anyway.


All times are GMT -5. The time now is 05:24 PM.