LinuxQuestions.org
Visit Jeremy's Blog.
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 10-24-2012, 01:59 PM   #1
realized
LQ Newbie
 
Registered: Oct 2004
Posts: 23

Rep: Reputation: 15
mount cifs error 13 (permission denied) but...


I have a linux box that is used to run some tasks, such as backup some files on windows computers among other things.

the debian box has:

eth0 == network1/domain1
eth1 == network2/domain2

both are assigned via dhcp from the network(s) dhcp server.

the linux box has a samba share that is wide open for everybody on either network to use...

daily i have been mounting computer(s) from network1 to create and save tarballs of some folders/files on a few of the computers (4 of them)

to mount the drive i just:

mount -o username=username,password=password,ro -t cifs //hostname/c$ /winshare

and run the tarball for folders/files found in /winshare.

at the end of the script - it unmounts and goes on to the next computer doing the same thing.

this works perfectly fine with everything connected to eth0...


trying to do the same thing with eth1 and i get access denied, even when i add the "dom=" feature in the command to tell it the domain name.

few things that might or might not matter:

1) i can't resolve network2 hosts by name - so my mount commands are via ip
2) resolv.conf has a 'domain' and 'search' line that point to eth0's domain - it does have the dns server for eth1 though. but no 'domain' and 'search' lines
3) both networks can access the samba share just fine
4) both eth1 and eth0 are getting dhcp information from windows 2003 servers.
5) i know my username/password is right =)

thanks guys!
 
Old 10-25-2012, 05:30 PM   #2
Felipe
Member
 
Registered: Oct 2006
Posts: 302

Rep: Reputation: 32
Hello:

You don't' say if account is local to the server or from Active Directory.

To specify domain name try with group parameter:
Quote:
username=userxxx,password=passyyyy,group=domainzzzz...
or try with:
Quote:
username=domainzzz\\userxxx,password=passyyyy
(if you have no other character delimiter for domain and group).
 
Old 10-25-2012, 06:00 PM   #3
realized
LQ Newbie
 
Registered: Oct 2004
Posts: 23

Original Poster
Rep: Reputation: 15
neither worked =(

and sorry, im trying to use a Active Directory username and password... though if that is the problem i can just as easily add a local user to the few computers i want to do this on.

i will try that in a bit.
 
  


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
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM
Help with mounting samba share: smbmount or mount.cifs error: permission denied wdli Linux - Server 1 08-11-2009 11:31 PM

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

All times are GMT -5. The time now is 05:26 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