LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 05-12-2008, 07:32 PM   #16
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Lenny
Posts: 1,212
Thanked: 5

[Log in to get rid of this advertisement]
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
kushalkoolwal is offline     Reply With Quote
Old 05-13-2008, 04:24 AM   #17
humbletech99
Member
 
Registered: Jun 2005
Posts: 374
Thanked: 0

Original Poster
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.
humbletech99 is offline     Reply With Quote
Old 05-13-2008, 05:49 AM   #18
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Lenny
Posts: 1,212
Thanked: 5
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.
kushalkoolwal is offline     Reply With Quote
Old 05-13-2008, 05:53 AM   #19
humbletech99
Member
 
Registered: Jun 2005
Posts: 374
Thanked: 0

Original Poster
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.
humbletech99 is offline     Reply With Quote
Old 10-01-2008, 08:37 AM   #20
send2amitgandhi
LQ Newbie
 
Registered: Oct 2008
Posts: 1
Thanked: 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.
send2amitgandhi is offline     Reply With Quote
Old 10-27-2008, 09:26 AM   #21
skeldoy
LQ Newbie
 
Registered: Oct 2008
Posts: 2
Thanked: 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.
skeldoy is offline     Reply With Quote
Old 10-27-2008, 09:34 AM   #22
humbletech99
Member
 
Registered: Jun 2005
Posts: 374
Thanked: 0

Original Poster
Quote:
Originally Posted by skeldoy View Post
not really sure why DOMAIN\user didn't work.
Did you try DOMAIN/user instead?
humbletech99 is offline     Reply With Quote
Old 10-31-2008, 06:32 AM   #23
skeldoy
LQ Newbie
 
Registered: Oct 2008
Posts: 2
Thanked: 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?
skeldoy is offline     Reply With Quote
Old 10-31-2008, 06:42 AM   #24
humbletech99
Member
 
Registered: Jun 2005
Posts: 374
Thanked: 0

Original Poster
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 06:43 AM..
humbletech99 is offline     Reply With Quote
Old 12-25-2008, 10:57 AM   #25
djbon2112
LQ Newbie
 
Registered: Sep 2008
Posts: 19
Thanked: 0
EDIT: Sorry, I actually managed to post in the wrong thread >.<
djbon2112 is offline     Reply With Quote
Old 10-29-2009, 12:24 PM   #26
caverdave
LQ Newbie
 
Registered: Jul 2009
Posts: 5
Thanked: 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.
windows_xp_2003 caverdave is offline     Reply With Quote
Old 11-03-2009, 06:56 AM   #27
erhhung
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 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.
linuxcentos erhhung is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 5 = Input/output error" but smbfs works! humbletech99 Linux - Networking 9 12-25-2008 10:58 AM
Acrobat Reader "error opening document - permission denied" Robhogg Linux - Software 5 04-25-2008 09:44 AM
Cifs "mount error 11 = Resource temporarily unavailable" humbletech99 Linux - Networking 1 09-26-2006 01:04 PM
cifs - "READ ERRORS" snoopy78m Linux - Networking 1 06-15-2006 11:01 AM
"permission denied" error when cron job executes jillu Linux - Newbie 11 11-02-2004 02:19 PM


All times are GMT -5. The time now is 08:58 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration