LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-01-2009, 10:49 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
mount -t cifs permission denied by mount -t smbfs works fine


I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access.

Code:
# mount -t cifs //servername/sharename /mnt/temp -o password=""
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
 
==> /var/log/messages <==
Sep  1 16:43:25 clientname Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Sep  1 16:43:25 clientname CIFS VFS: Send error in SessSetup = -13
Sep  1 16:43:25 clientname CIFS VFS: cifs_mount failed w/return code = -13

# mount -t smbfs //servername/sharename /mnt/temp -o password=""
Anonymous login successful
I can then read and write files in /mnt/temp over smbfs but I cannot even mount it using cifs, but there are other cifs filesystems from other samba servers that mounted fine on this machine. I have the same problem mounting this one share from all linux boxen... but those same linux boxen can mount cifs shares from other machines just fine.

Any ideas why?
 
Old 09-01-2009, 11:05 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
Try:
Code:
mount -t cifs //servername/sharename /mnt/temp -o guest
 
Old 09-01-2009, 11:08 AM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
same result:

Code:
mount -t cifs //servername/sharename /mnt/temp -o guest
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
I also tried:

Code:
mount -t cifs //servername/sharename /mnt/temp -o user=guest,password=""
mount error 127 = Key has expired
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

Sep  1 17:12:42 clientname Status code returned 0xc0000072 NT_STATUS_ACCOUNT_DISABLED
Sep  1 17:12:42 clientname CIFS VFS: Send error in SessSetup = -127
Sep  1 17:12:42 clientname CIFS VFS: cifs_mount failed w/return code = -127
It is using the nobody account as the guest account but the account isn't really locked, it is /sbin/nologin but setting this to /bin/false and /bin/true didn't help either. And doing passwd -u nobody didn't let it work after that either.

Last edited by humbletech99; 09-01-2009 at 11:16 AM.
 
Old 09-01-2009, 02:54 PM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
Another thing to try is:
Code:
mount -t cifs //servername/sharename /mnt/temp -o guest,nounix
 
Old 09-02-2009, 03:48 AM   #5
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
Code:
mount -t cifs //servername/sharename /mnt/temp -o guest,nounix
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
 
Old 09-02-2009, 04:26 AM   #6
strubbldesign
Member
 
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36

Rep: Reputation: 15
i would try it this way
mount.cifs //xx.xx.xxx.xx/E: /home/fysi/netlaufwerk/ -o user=leo

and when it works make an alias to your .bashrc
have phun

PS for a networkdrive in win 2003 serverenvironment

mount.cifs //xx.xx.xxx.xx/datapool$ /home/fysi/netlaufwerk/ -o user=pc04'

dont forget to replace the xx.xx.xxx.yy with the server address
and never use the "-o passwd" in the .bashrc as it is an securityrisk
 
Old 09-02-2009, 04:30 AM   #7
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
no the share is intentionally anonymous and must be able to mount by itself, setting a user will not work anyway.
 
Old 09-02-2009, 04:41 AM   #8
strubbldesign
Member
 
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36

Rep: Reputation: 15
Quote:
no the share is intentionally anonymous and must be able to mount by itself, setting a user will not work anyway.
the network share cant mount itself!!

then leafe the user away or replace it with anonymus
but use this form of mount: mount.cifs
this helps (worked for me too)
 
Old 09-02-2009, 04:45 AM   #9
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by strubbldesign View Post
the network share cant mount itself!!

then leafe the user away or replace it with anonymus
I said by itself, ie at boot time without interaction as is standard.

Yes it it anonymously available from windows or from linux via smbfs, only cifs doesn't work and that is what is perplexing since smbfs does work.
 
Old 09-02-2009, 04:59 AM   #10
strubbldesign
Member
 
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36

Rep: Reputation: 15
can you mount it manually?
 
Old 09-02-2009, 05:05 AM   #11
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
That was the original post, I can mount it manually using -t smbfs but not using -t cifs.
 
Old 09-02-2009, 06:19 AM   #12
strubbldesign
Member
 
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36

Rep: Reputation: 15
have you tried to mount it via
mount.cifs?

I don't know why but aprox. 9 months ago i have to change my aliases in .bashrc from "mount -t cifs //server/dir /mnt/networkdir" to "mount.cifs //server/dir /mnt/networkdir" and it worked again

try it..
 
Old 09-02-2009, 06:50 AM   #13
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
tried using mount.cifs but I get the same key error...
 
Old 09-03-2009, 10:17 AM   #14
strubbldesign
Member
 
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36

Rep: Reputation: 15
sorry...
cant help
 
  


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 5 = Input/output error" but smbfs works! humbletech99 Linux - Networking 16 03-16-2014 05:54 PM
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 40 10-31-2012 08:50 AM
Help with mounting samba share: smbmount or mount.cifs error: permission denied wdli Linux - Server 1 08-11-2009 11:31 PM
mount smbfs vs cifs Zurvan Linux - Networking 2 12-29-2006 02:46 PM


All times are GMT -5. The time now is 09:32 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration