LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-12-2006, 07:07 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
Cifs "mount error 13 = Permission denied" CIFS SUCKS


I am getting sick and tired of this so called Smbfs replacement "Cifs". I have yet another error trying to mount a share on a Windows XP Pro machine. I get an error saying "Permission denied" despite entering the right credentials:
Code:
mount -t cifs //hostname/share /mnt/temp -o username=someuser,password=somepassword
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
I use these same credentials from another Windows machine to access that share and they work fine so instead I go back to linux and do
Code:
mount -t smbfs //hostname/share /mnt/temp -o username=someuser,password=somepassword
and the share mounts successfully and I can use it, the EXACT same credentials, I just pressed up and replaced cifs with smbfs....

This is on top of other mysterious errors like "Resource temporarily unavailable" and "Input/output error" that also often occur.
(see http://forums.gentoo.org/viewtopic-t...ighlight-.html
and http://forums.gentoo.org/viewtopic-t...ighlight-.html )

Both of these also stop the share from being mounted when encountered. In both cases I also repeated the command by pressing up and replacing the word cifs with smbfs. Smbfs succeeds where Cifs failed and I can start using the share.
Code:
mount -t smbfs //hostname/share /mnt/temp -o username=someuser,password=somepassword
These errors all occur against various SMB server ranging from both new and old Samba servers on various distributions of Linux, to Windows 2000 and XP workstations, so the remote machines can't be to blame when smbfs works at the same time.

CIFS SUCKS!

anybody else have any experiences of CIFS or any suggestions?
 
Old 07-12-2006, 10:27 AM   #2
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
i using cifs to mount win2k3, it running well. I'd make some script to auto mount the partition, so far there is no any problem.
Are you work in domain environment? Probably you need to try DOMAIN\User?
And, you can try to user option 'creadential', then make a file to store username and password.

example files '.mountparameter'

username=xxxxxxx
password=xxxxxxx


*Please check whitespace, I have problem with the whitespace before.

Regards,
Ks
 
Old 07-12-2006, 06:12 PM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
actually I am using a credentials file (without spaces), I just didn't mention it in case other people don't know about it or how to use it properly, that works fine for me across all systems, I've also passed a username and password combination instead of it for extra testing to make sure it is right and that the credentials supplied were correct.

the username and password I have been using is the local administrator which normally works fine. I've also used a domain administrator account which I know also works from other machines like windows workstations, but again I have the same results with cifs when it doesn't work for certain machines that have no apparent common features, various windows systems and various linux distros of various ages/samba packages.

The only conclusion I can draw is that it is Cifs' fault...
 
Old 07-12-2006, 09:42 PM   #4
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
err.. I have 1 experience don't know whether you same with me.

Please make sure you mount into exactly share folder but not child of the share folder. Meaning that:-
- you have win2k3 share folder \\windows\share
- you want to access \\windows\share\data
- you only can mount //windows/share but not //windws/share/data, it will return you error.

the soulution is something like:-
-mount //windows/share mountpoint
-ln -s mountpoint/data /home/user1/Desktop/data

Regards,
Ks
 
Old 07-13-2006, 04:19 AM   #5
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
no, I am trying to mount the actual share not the subfolder as you can see from the fact that mounting with smbfs works so the line is correct, the only difference I made was the -t cifs became -t smbfs and it worked, showing that the problem lies with cifs.
 
Old 07-13-2006, 04:28 AM   #6
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
humbletech99

Sorry to inform that I really wonder that are you using the windows server or linux server to share cifs?
If you are using win2k3 then we will carry on(Because I'd success and use untill now), if you using samba3 then I'd never try to mount samba cifs share then I'll keep quiet.

Regards,
Ks
 
Old 07-18-2006, 03:38 AM   #7
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
I'm mounting various shares on various samba versions as well as 2000 & XP workstations and 2000 && 2003 servers.

I've got another error here now with cifs!

Code:
mount error 20 = Not a directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
But the mount point is a dirctory! I can mount another share via cifs on the same mount point!!!!!


I could make a collection of these...
 
Old 07-19-2006, 01:25 AM   #8
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
humbletech99,

probably you need to list out your the problem server's share folder, where you want to mount the folder, what folder you want to mount. the version of your windows, samba and which distro you use? I'd successfully mount properly with fedora 3/4/5 and suse 9.3/10.
then, what server you test to? samba or windows xp's share folder??
what command you test in each server.

By the way, did you recompile your kernel, samba? and what is the version of your kernel? update patches of your kernel?

Regards,
Ks
 
Old 09-16-2006, 08:26 PM   #9
Matrixx
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 1
Question Yes and No....

I had the same issue if I entered:
mount -t cifs //hostname/share /mnt/temp -o username=someuser,password=somepassword

But if I entered:
mount.cifs //hostname/share /mnt/temp -o username=someuser,password=somepassword

It works... what is up with that?

It does seem to be an issue with cifs and different Windows systems. W2K3 both work fine but the first one has an issue with Windows XP (for me). The systems are in a domain/forest infrastructure.
 
1 members found this post helpful.
Old 09-17-2006, 09:45 AM   #10
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
Matrixx: I've had these problems with one XP Sp2 machine and various samba machines on various distros of various ages. I suspect that some of this is actually just because older versions of samba don't support cifs and therefore I get funny errors if I try, but the Windows system is up to date and there isn't a good explanation for that, especially when it works for many other machines of the exact same OS version.

kstan: the commands, folders, share names etc are in the original posting. The versions of Linux are all different, 2.4 and 2.6 kernels included, OSs both Windows and Linux. I've used both 2.6.15 and 2.6.17 kernels on the box trying to mount the shares (ie the box I've done the above commands on), self compiled with SMBFS and CIFS both compiled directly into the kernel. The kernel is pretty new so I'd say it's reasonably up to date.
 
Old 01-06-2007, 12:22 PM   #11
Mayne
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by Matrixx
I had the same issue if I entered:
mount -t cifs //hostname/share /mnt/temp -o username=someuser,password=somepassword
But if I entered:
mount.cifs //hostname/share /mnt/temp -o username=someuser,password=somepassword
It works... what is up with that?
I had authentication errors when switching from smbfs to cifs (but using a credentials file). Using mount -v it turned out that cifs, in contrast to smbfs, does not ignore spaces surrounding the equal sign in the credentials file (thus, "username = jack" lead to the user " jack" using cifs).
 
Old 01-06-2007, 12:26 PM   #12
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
there are no spaces in my creds file.
 
Old 03-15-2007, 06:55 AM   #13
mastfaraz
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 3
Thumbs up mount error 13 = Permission Denied (your mistake in the mounting Statement)

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.

Last edited by mastfaraz; 03-15-2007 at 06:59 AM.
 
3 members found this post helpful.
Old 03-15-2007, 07:13 AM   #14
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
1st post? This is a good try! Many people is waiting your help..

Good luck
 
Old 03-15-2007, 07:38 AM   #15
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

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

I can't remember the original problem on this, but as far as I can tell, this is solved now. I think that the original problem was either something like smb signing/encryption or me not actually having the perms to access the windows share after locking it down.

Anyway, I don't have any probs at the moment on this.
 
  


Reply

Tags
cifs, mount, mountcifs, smbfs



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 36 12-18-2019 02:59 AM
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

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

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