LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-04-2009, 10:37 AM   #1
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 806

Rep: Reputation: 40
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.

Last edited by DiBosco; 07-05-2009 at 10:07 AM.
 
Old 07-04-2009, 06:54 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.

Last edited by stress_junkie; 07-04-2009 at 06:56 PM.
 
Old 07-05-2009, 10:06 AM   #3
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 806

Original Poster
Rep: Reputation: 40
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 45 04-06-2020 05:31 AM
Using mount.cifs to mount subdirectories in Windows server kenneho Linux - Server 0 03-19-2009 04:34 AM
samba client (smbmount, mount.cifs) and kerberos Felipe Linux - Software 0 08-22-2008 03:13 AM
CIFS Mount not showing large directories (file counts). damber Linux - Networking 3 11-24-2006 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration