Error 13 Mount.cifs
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top mount error 13 = Permission denied up vote 10 down vote favorite 5 One of my servers is set up to automatically mount a Windows directory using fstab. However, after my last reboot it stopped working. The line in fstab is: //myserver/myfolder /mnt/backup cifs credentials=home/myfolder/.Smbcredentials The .Smbcredentials file is: username=myaccount password=mypassword domain=mydomain I do a mount -a and I receive mount error 13 = Permission denied. If I do this enough it will lock out my Windows account, so I know it's trying. I've checked that my password is correct. What am i doing wrong? linux samba fstab share|improve this question edited Apr 11 '14 at 21:05 Patrick 34.3k680129 asked Apr 11 '14 at 20:27 Pickle 191116 1 Could you try mount from the command line with mount -t cifs //myserver/myfolder /mnt/backup --verbose -o credentials=home/myfolder/.Smbcredentials and add the debugging info (sanitized) to your question? –bsd Apr 11 '14 at 20:44 What's the distro and version of cifs-utils do you have installed? I've had this problem before and I believe it was due to an update. –slm♦ Apr 11 '14 at 22:37 add a comment| 3 Answers 3 active oldest votes up vote 9 down vote A couple of things to check out. I do so
17:56:14 willroberts Member Registered: 2013-03-16 Posts: 11 [SOLVED] mount.cifs failing to mount after update to 3.8.x When trying to mount a CIFS share in Arch with kernel 3.8.3-2-ARCH, I get this:mount error(22): Invalid argumentdmesg shows this:FS-Cache: Loaded FS-Cache: Netfs 'cifs' registered for caching Key type cifs.spnego registered Key type cifs.idmap registeredFor clarity, I'm running this command (and have tried many others):sudo mount.cifs //desktop/mydata /mnt/mydata -o user=meAlso, I am able to browse this share properly with smbclient, and I'm also able to mount it in distributions using older kernels.I tested this on Ubuntu 13.04 as well, and http://unix.stackexchange.com/questions/124342/mount-error-13-permission-denied the same problem happens there (also has kernel 3.8.x, so it seems likely that this is a kernel issue). From what I understand, portions of the mount.cifs client code were moved into the kernel recently, and the argument parser was overhauled at the same time (I found similar bug reports for Fedora, Gentoo, etc). Any ideas?SOLVED:The fix is to add "sec=ntlm" to the -o https://bbs.archlinux.org/viewtopic.php?id=160047 flag:sudo mount.cifs //desktop/mydata /mnt/mydata -o user=me,sec=ntlm Last edited by willroberts (2013-03-22 03:32:46) Offline #2 2013-03-21 18:09:33 jc61990 Member From: New York Registered: 2012-07-14 Posts: 29 Website Re: [SOLVED] mount.cifs failing to mount after update to 3.8.x i too am having this issue on both my arch machines. I can still mount my samba shares from windows tho.i am getting this errormount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) i put arch on everything.Devices on arch: Desktop (self built), Dell XT Laptop, RaspberryPi, HTPC, PogoPlug, and my Web Server Offline #3 2013-03-21 18:34:34 dennis123123 Member Registered: 2009-07-02 Posts: 72 Re: [SOLVED] mount.cifs failing to mount after update to 3.8.x Exactly the same issue here, Debian samba server. Shares work fine on every other machine, Windows, iPad, Linux. My Arch laptop that I just updated to 3.8.3-2 now just says:mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Last edited by dennis123123 (2013-03-21 18:34:54) Offline #4 2013-03-21 18:48:55 alphaniner Member From: Ancapistan Registered: 2010-07-12 Posts: 2,754 Re: [SOLVED] mount.cifs failing to mount after update to 3.8.x Next time, try a search first: linky Last ed
= Permission denied driving me insane General support questions including new installations Post Reply Print view Search Advanced search 4 posts • Page 1 of 1 neuronetv Posts: 49 Joined: 2012/01/08 21:53:07 mount error 13 = Permission denied driving me http://www.centos.org/forums/viewtopic.php?t=48433 insane Quote Postby neuronetv » 2014/09/13 18:11:33 I have a samba share set ip on http://superuser.com/questions/675195/cannot-mount-windows-7-share-from-linux-using-cifs-mount-error13-permission a centos 5 machine, 32bit, it works fine and has been working fine for two years. My other machines (centos 6/MS Windows) have no problem connecting to it and accessing it.All my linux machines can connect to this share using this command:mount -t cifs -o username=
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Cannot Mount Windows 7 Share from Linux using CIFS: Mount error(13): Permission denied up vote 2 down vote favorite 1 We have a windows XP share entry in our FSTAB that works as follows: //MAIN/StorageD /mnt/storaged cifs username=admin,password='',uid=1001,gid=1000,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm 0 0 But the entry for a Windows 7 box does not: //MAIN-WIN7/Win7VM /mnt/Win7VM cifs username=main,password='',uid=1001,gid=1000,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm 0 0 The directory /mnt/Win7VM is set to 777 permissons and owned by user 1001 So we try to debug a bit and mount manually... Just as a check, the following works: mount -t cifs '//MAIN/backupx' /mnt/backupx -o username=Admin,password='' But for the windows 7 machine, this does not work. mount -t cifs '//MAIN-WIN7/Win7VM' /mnt/Win7VM -o username=Main,password='' As I get the error (which is famous I guess): root@debian:/home/user# mount -t cifs //MAIN-WIN7/Win7VM /mnt/Win7VM -o username=Main,password='',sec=ntlm mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) So, I spend hours searching, checking, and trying to do the following: Checked settings: Workgroup is "WORKGROUP" Doma