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

failed to mount smbfs

Reply to Message Icon

Original Message
Name: vophuynh
Date: January 16, 2005 at 15:07:28 Pacific
Subject: failed to mount smbfs
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


Report Offensive Message For Removal


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

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?


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

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.


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal


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

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.


Report Offensive Follow Up For Removal

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

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



Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

//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


Report Offensive Follow Up For Removal

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

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.


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: failed to mount smbfs

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge