Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-01-2009, 10:49 AM
|
#1
|
Member
Registered: Jun 2005
Posts: 374
Rep:
|
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?
|
|
|
09-01-2009, 11:05 AM
|
#2
|
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039
Rep:
|
Try:
Code:
mount -t cifs //servername/sharename /mnt/temp -o guest
|
|
|
09-01-2009, 11:08 AM
|
#3
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
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.
|
|
|
09-01-2009, 02:54 PM
|
#4
|
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039
Rep:
|
Another thing to try is:
Code:
mount -t cifs //servername/sharename /mnt/temp -o guest,nounix
|
|
|
09-02-2009, 03:48 AM
|
#5
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
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)
|
|
|
09-02-2009, 04:26 AM
|
#6
|
Member
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36
Rep:
|
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
|
|
|
09-02-2009, 04:30 AM
|
#7
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
no the share is intentionally anonymous and must be able to mount by itself, setting a user will not work anyway.
|
|
|
09-02-2009, 04:41 AM
|
#8
|
Member
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36
Rep:
|
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)
|
|
|
09-02-2009, 04:45 AM
|
#9
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
Quote:
Originally Posted by strubbldesign
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.
|
|
|
09-02-2009, 04:59 AM
|
#10
|
Member
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36
Rep:
|
can you mount it manually?
|
|
|
09-02-2009, 05:05 AM
|
#11
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
That was the original post, I can mount it manually using -t smbfs but not using -t cifs.
|
|
|
09-02-2009, 06:19 AM
|
#12
|
Member
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36
Rep:
|
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..
|
|
|
09-02-2009, 06:50 AM
|
#13
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
tried using mount.cifs but I get the same key error...
|
|
|
09-03-2009, 10:17 AM
|
#14
|
Member
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36
Rep:
|
sorry...
cant help
|
|
|
All times are GMT -5. The time now is 09:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|