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
 
LinkBack Search this Thread
Old 05-12-2008, 06:32 PM   #16
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48

Quote:
Originally Posted by mastfaraz View Post
Solution

Most of people got this Permission Denied access when mounting a
Windows Shared folder

following mounting ->

usually : mount -t cifs //<MachineName>/<Shared Folder> /mnt/Shared -o username=<username>,password=<password>
give you error 13.

correct : mount -t cifs //<MachineName>/<SharedFolder> /mnt/Shared -o username=<DomainName>/<username>,password=<password>

Yes! the only deference is "domain name:<DomainName>" is missing. In case of No Domain try to put your <MachineName> there.
cifs does not locate domain itself (I guess).

This is my first Post on web.

Damn good work man!!! It works
 
Old 05-13-2008, 03:24 AM   #17
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
I'm absolutely positive that it was not a permissions problem such as just not qualifying the username with the domain, but rather the fact that this was 3 years ago and some samba servers I had didn't support cifs then (they were 2.x series). If you look up, I did mention in the original post that the credentials used were exactly the same in both cases of the smbfs and cifs lines.
 
Old 05-13-2008, 04:49 AM   #18
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Quote:
Originally Posted by humbletech99 View Post
I did mention in the original post that the credentials used were exactly the same in both cases of the smbfs and cifs lines.
I beg to differ. The credentials are not the same. In the solution posted, we are including the "DomainName" whereas you didn't included that.
 
Old 05-13-2008, 04:53 AM   #19
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
no no, you misunderstand, the original problem was that when passing the exact same credential string the connection would work with smbfs and not cifs. This was due to the older samba servers.

The problem you are describing is in fact a different and trivial problem of you just not qualifying the username with the domain.
 
Old 10-01-2008, 07:37 AM   #20
send2amitgandhi
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
Lightbulb Hurrey ...working

Yes boss superb it is really appropriated, without using Domain name it is creating huge difference here.


Thanks,

-- Amit Gandhi

Quote:
Originally Posted by mastfaraz View Post
Solution



Most of people got this Permission Denied access when mounting a
Windows Shared folder

following mounting ->

usually : mount -t cifs //<MachineName>/<Shared Folder> /mnt/Shared -o username=<username>,password=<password>
give you error 13.

correct : mount -t cifs //<MachineName>/<SharedFolder> /mnt/Shared -o username=<DomainName>/<username>,password=<password>

Yes! the only deference is "domain name:<DomainName>" is missing. In case of No Domain try to put your <MachineName> there.
cifs does not locate domain itself (I guess).

This is my first Post on web.
 
Old 10-27-2008, 08:26 AM   #21
skeldoy
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by humbletech99 View Post
actually, you know what, I take it all back, cifs is way way way better than smbfs.
smbfs doesn't complain because it silently fails in many cases. This is worse, because you then find out that what you were doing hasn't worked.
Anyway, I don't have any probs at the moment on this.
I just made the same realization that you did, but this thread didn't help me. I needed to do:
mount.cifs //SERVER/SHARE /mnt/point -o domain=THEDOMAIN,user=user,pass=pass
in order to make it work.. not really sure why DOMAIN\user didn't work. I agree now that it is better than SMBFS, but there should be more specific error-messages. I wasted a couple of hours before I realized that the cifs-mount-command differed from the smbfs and then I used a couple of hours trying different combos to get it working. Really stupid to waste peoples time like this. But I agree that CIFS is looking better than SMB in terms of stability. Still.. Annoying differences are still annoying.
 
Old 10-27-2008, 08:34 AM   #22
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by skeldoy View Post
not really sure why DOMAIN\user didn't work.
Did you try DOMAIN/user instead?
 
Old 10-31-2008, 05:32 AM   #23
skeldoy
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by humbletech99 View Post
Did you try DOMAIN/user instead?
yeah, but for some reason it did not work. I am starting to wonder if there is something weird with my character-set that prevents the / from being interpreted such by the mount.cifs, but I cannot find anything like that in the code. Can anyone confirm that DOMAIN/user is working or is it DOMAIN//user or DOMAIN\\user or DOMAIN\user?
 
Old 10-31-2008, 05:42 AM   #24
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
DOMAIN/user works for me.

So does DOMAIN\\user and just "user" when using smbclient.DOMAIN\user will not work because of shell escaping.

Last edited by humbletech99; 10-31-2008 at 05:43 AM.
 
Old 12-25-2008, 09:57 AM   #25
djbon2112
LQ Newbie
 
Registered: Sep 2008
Posts: 24

Rep: Reputation: 15
EDIT: Sorry, I actually managed to post in the wrong thread >.<
 
Old 10-29-2009, 11:24 AM   #26
caverdave
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Rep: Reputation: 0
cifs "mount error=13"

I was having this problem too. I was trying to connect to a Windows XP Pro share as my local username. But I was using the company domain:

mount.cifs -t smbfs //<machine>/<share> /mnt/<dir> -o username=<user>,domain=<xxx.com>

When I changed it to
mount.cifs -t smbfs //<machine>/<share> /mnt/<dir> -o username=<user>,domain=<machine>

it worked.

I was doing it the first way in a slightly older version of Samba and it worked fine, which was frustrating.
 
Old 11-03-2009, 05:56 AM   #27
erhhung
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Lightbulb RE: CIFS "mount error 13" Permission denied

I followed the directions at:

http://lists.olug.org/pipermail/olug...er/015520.html

which says pretty much exactly what's been said here. I finally found out why I got the mount error 13 problem using cifs and an external credentials file. This is my entry in /etc/fstab:

//denali/music /mnt/denali/music cifs nosuid,nodev,noexec,credentials=/etc/samba/auth.smb,uid=500,gid=500,file_mode=0664,dir_mode=0755 0 0

The file /etc/samba/auth.smb contains only 2 lines:

username=foo
password=bar

But the key thing is that this file must not contain any extra white space before or after those 2 lines, i.e., the file should end right after the last password character without a newline! I had a newline and it caused the error. I had tried adding the domain name prefix to the username and that didn't help. Perhaps smbfs is more forgiving about how it reads credentials, but cifs should not be so picky, but it is.

Hope this helps.
 
Old 02-15-2010, 01:52 AM   #28
jagd.panther
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
Today I had exacttly the same problem: I was unable to mount cifs share (of course domain/user/pass were correct). It turned out that administrator disallowed NTLMv1 auth so I had to use -o sec=ntlmv2. If that doesn't help then try to synchronize clock on client & server.
 
Old 10-15-2010, 05:24 PM   #29
hasi
LQ Newbie
 
Registered: Dec 2007
Posts: 18

Rep: Reputation: 0
jagd.panther -- you are my hero!

I have been trying to get CIFS to work for almost two years. And this is also for how long I have been googling for this problem -- without any solution.

Now, finally, this did the trick! Using "-o sec=ntlmv2" I can finally mount my share! What's weird is that it had always worked with smbclient, and also with the smb:// KIO slave in KDE. This means that they must have implemented the v2 authentication.
 
Old 11-22-2010, 03:03 PM   #30
Rastus
LQ Newbie
 
Registered: Mar 2008
Location: San Antonio, Texas
Distribution: Debian -Lenny / Etch - RHEL
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by mastfaraz View Post
Solution

Most of people got this Permission Denied access when mounting a
Windows Shared folder

following mounting ->

usually : mount -t cifs //<MachineName>/<Shared Folder> /mnt/Shared -o username=<username>,password=<password>
give you error 13.

correct : mount -t cifs //<MachineName>/<SharedFolder> /mnt/Shared -o username=<DomainName>/<username>,password=<password>

Yes! the only deference is "domain name:<DomainName>" is missing. In case of No Domain try to put your <MachineName> there.
cifs does not locate domain itself (I guess).

This is my first Post on web.

thanks for the post BIG help today
 
  


Reply

Tags
cifs, mount, mountcifs, smbfs


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cifs "mount error 5 = Input/output error" but smbfs works! humbletech99 Linux - Networking 16 03-16-2014 05:54 PM
Acrobat Reader "error opening document - permission denied" Robhogg Linux - Software 5 04-25-2008 08:44 AM
Cifs "mount error 11 = Resource temporarily unavailable" humbletech99 Linux - Networking 1 09-26-2006 12:04 PM
cifs - "READ ERRORS" snoopy78m Linux - Networking 1 06-15-2006 10:01 AM
"permission denied" error when cron job executes jillu Linux - Newbie 11 11-02-2004 01:19 PM


All times are GMT -5. The time now is 04:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration