Computing.Net > Forums > Linux > failed to mount smbfs

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

failed to mount smbfs

Reply to Message Icon

Name: vophuynh
Date: January 16, 2005 at 15:07:28 Pacific
OS: fedora 3
CPU/Ram: p4 2.66/ 1g
Comment:

Hello,

For some reasons, I cann't mount to my Win2k3 shared folder from my FC3 box.

(smbfs is installed)
root# cat /proc/filesystems
nodev smbfs

My Win2k3 shared folder as //main-server/public
Mount point: /mnt/share

Here is what I mount:

root# mount -t smbfs -o username=xxxx,password=xxxx //main-server/public /mnt/share

and here is what I got:

cli_negport: SMB signing is mandatory and we have disabled it.
5813: protocol negotiation failed
SMB Connection failed

What have I done wrong?
Can you pls help?


Thanks
vophuynh



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: January 17, 2005 at 06:34:35 Pacific
Reply:

Are you able to list the shares on the server with the command:
$ smbclient -L main-server

Are you able to access any shares on the fedora box from the server?


0

Response Number 2
Name: vophuynh
Date: January 17, 2005 at 07:01:33 Pacific
Reply:

Yes, I can see all shared files listed by
$ smbclient -L main-server

And I can only access to these shared files by
copy them to my fedora hard disk:

smb://main-server/public

However, I just cann't mount to it just like
map drive in Windows.

vophuynh


0

Response Number 3
Name: 3Dave
Date: January 17, 2005 at 07:22:42 Pacific
Reply:

Are you able to mount it with:
$ smbmount //main-server/public /mnt/share -o username=xxxx
It should then prompt you for a password.

You may need to add "client signing = yes" to your smb.conf file.


0

Response Number 4
Name: 3Dave
Date: January 17, 2005 at 07:25:25 Pacific
Reply:

Just found this on the net:
"...I have answered this one before - smbfs *is not* compatible with SMB
signing, and therefore cannot be used with win2k3 DCs in their default
mode. This is one of smbfs's numerous failings. The CIFS VFS - http://www.samba.org/samba/Linux_CIFS_client.htm - does not have this issue..."

http://lists.samba.org/archive/samba/2003-December/076388.html


0

Response Number 5
Name: vophuynh
Date: January 18, 2005 at 11:38:36 Pacific
Reply:

3Dave,

I am now able to mount cifs:

# mount -t cifs //main-server/public /mnt/share -o user=xxx,password=xxx

But don't know how to umount it.
And can you pls address how to add the text
to /etc/fstab so it can auto-mount each time boot up.

thanks

vophuynh


0

Related Posts

See More



Response Number 6
Name: 3Dave
Date: January 19, 2005 at 02:06:03 Pacific
Reply:

You should be able to unmount it with:
$ smbumount /mnt/share
(The benefit of using smbmount and smbumount is that you do not have to be root to use the command unlike mount)

The line you want to add to /etc/fstab would be:
main-server:/public /mnt/share cifs username=xxx,password=xxx,uid=500,gid=500 1 2
Unfortunately this stores your username and password in clear text. An alternative would be to use a ceredentials file. Create a file:
/home/vophuynh/.smbcredentials
(that's quite some name....where are you from?)
In this file put:
username=xxx
password=xxx

Make it readable to only you:
$ chmod 600 /home/vophuynh/.smbcredentials
And then change the line in fstab to:
main-server:/public /mnt/share cifs credentials=/home/vophuynh/.smbcredentials,uid=500,gid=500 1 2
NB You may need to use the IP address of the server rather than the domain name.


0

Response Number 7
Name: vophuynh
Date: January 19, 2005 at 08:52:26 Pacific
Reply:

3Dave,

main-server:/public /mnt/share cifs username=xxx,password=xxx,uid=500,gid=500 1 2

IT NEVER WORKS

/home/vophuynh/.smbcredentials

I CREATED .smbcredentials, but don't know how
to add text in there, seems to me, it is
a directory other than a file.
Can you pls elaborate a little bit, such
USERNAME=XXX
PASSWORD=XXX
will be saved in what file?

THANKS ALOT,

vophuynh



0

Response Number 8
Name: 3Dave
Date: January 20, 2005 at 01:43:23 Pacific
Reply:

Perhaps it should be:
//main-server/public /mnt/share cifs username=xxx,password=xxx,uid=500,gid=500 1 2
(Sorry, I don't use windoze servers or cifs and it is not compiled into my kernel so I can't try it out myself. I use NFS instead)

Have you tried the IP instead of domain name?
eg:
//192.168.0.1/public /mnt/share cifs username=xxx,password=xxx,uid=500,gid=500 1 2

.smbcredentials should be a file and should contain two lines:
USERNAME=XXX
PASSWORD=XXX


0

Response Number 9
Name: vophuynh
Date: January 20, 2005 at 08:02:17 Pacific
Reply:

//main-server/public /mnt/share cifs username=xxx,password=xxx,uid=500,gid=500 1 2

YES, I CAN MOUNT IT NOW, THANKS
HOWEVER, THE MOUNT FOLDER APPEARS ON MY MOUNT POINT, IN 'MY COMPUTER', AND ALSO ON THE DESKTOP. DO YOU KNOW HOW TO GET RID THE ONE ON THE DESKTOP? IT LOOKS PRETTY UGLY
WHEN I MOUNT 2 OR 3 MOUNTPOINT ON IT.

THANKS AGAIN,

vophuynh


0

Response Number 10
Name: 3Dave
Date: January 20, 2005 at 08:36:20 Pacific
Reply:

Are you running KDE? Bring up the Control Centre > Desktop > Behavior > Device Icons and then either disable them all together or untick the ones you don't want. NB there should be two entries for each type of device, one showing when it is mounted and the other unmounted.


0

Response Number 11
Name: vophuynh
Date: January 20, 2005 at 11:13:39 Pacific
Reply:

I'm currently at work, not able to try it.
However, I am running Gnome desktop instead,
does it make much difference from KDE?

vophuynh


0

Response Number 12
Name: 3Dave
Date: January 21, 2005 at 02:03:03 Pacific
Reply:

Not sure about gnome....you may have to edit a file (%gconf.xml ?) in your home directory (~/.gconf ?)


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: failed to mount smbfs

slamd64 fails to boot after install www.computing.net/answers/linux/slamd64-fails-to-boot-after-install/29309.html

How to mount a drive that is on an another computer? www.computing.net/answers/linux/how-to-mount-a-drive-that-is-on-an-another-computer/601.html

Slackware 11.0 fails to boot www.computing.net/answers/linux/slackware-110-fails-to-boot/29299.html