Solution: Mounting Windows shares from SuSE 9.1 Pro
There have been a number of messages regarding difficulties in using Samba to mount Windows shares. I am finally able to mount shares from the Windows 2003 server in our office, although I am using CIFS and not SMBFS. I will explain my situation in case it is helpful to those trying to access Windows shares. I am running SuSE 9.1 Pro with all the YOU updates applied. Although i don't think it is relevant, I have installed the Samba client 3.04 and libsmbclient 3.04 from the apt repository. Our office has a Windows 2003 Small Business Server. I have been able to access the server fine using vmware. I couldn't mount the shares using Linux. My linux machine is called maclinux. Let's assume the following; domain name is DOMAINNAME username is LINUXUSER share name is SHARENAME. ip address of Windows server is 192.168.1.1 Windows server name is WINSERVER my uid is 1500 users gid is 200 using the Samba client in Yast, I was able to add maclinux to the windows domain, DOMAINNAME. using the Network browsing icon on the desktop would fail as many people have reported. smb://192.168.1.1/SHARENAME did work and did allow me to access the files on SHARENAME. ThE command smbclient -L WINSERVER would list all the shares on WINSERVER. Numerous incantations of smbmount and mount -t smbfs all failed however. i was receiving error messages that "SMB signing is mandatory and we have disabled it" Googling on SMB signing led me to info that CIFS is included in the 2.6 kernel and can be used to access Windows shares. I now use the following command to mount Windows shares mount -t cifs -o user=LINUXUSER,domain=DOMAINNAME,uid=1500,gid=200,rw //192.168.1.1/SHARENAME /home/LINUXUSER/mnt/WinServer/SHARENAME the command is all on one line. Hope that helps someone. Mike -- Michael A. Coan Woodlawn Foundation 524 North Avenue, Suite 203 New Rochelle, NY 10801-3410 Tel 914-632-3778 Fax 914-632-5502
On Fri, 2004-05-28 at 12:08, Mike Coan wrote: <snip>
using the Network browsing icon on the desktop would fail as many people have reported.
smb://192.168.1.1/SHARENAME
did work and did allow me to access the files on SHARENAME.
ThE command smbclient -L WINSERVER
would list all the shares on WINSERVER.
Numerous incantations of smbmount and mount -t smbfs all failed however. i was receiving error messages that
"SMB signing is mandatory and we have disabled it"
Googling on SMB signing led me to info that CIFS is included in the 2.6 kernel and can be used to access Windows shares.
I now use the following command to mount Windows shares
mount -t cifs -o user=LINUXUSER,domain=DOMAINNAME,uid=1500,gid=200,rw //192.168.1.1/SHARENAME /home/LINUXUSER/mnt/WinServer/SHARENAME
the command is all on one line.
Or you can use smbfs to mount the shares at boot time with entries in /etc/samba/smbfs like: //server/share /media/<mount point> username=xxxx%xxxx,uid=<username>,gid=<group name> all on one line. -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
Ken,
<snip>
Or you can use smbfs to mount the shares at boot time with entries in /etc/samba/smbfs like:
//server/share /media/<mount point> username=xxxx%xxxx,uid=<username>,gid=<group name>
all on one line.
Except that the mount -t smbfs command never worked. i assumed that if mount -t smbfs didn't work, then it wouldn't work to put stuff in /etc/samba/smbfs. Most of the messages I read indicated that people couldn't get smbfs to work. I would certainly prefer to mount the shares at boot time like you suggest. Mike -- Michael A. Coan Woodlawn Foundation 524 North Avenue, Suite 203 New Rochelle, NY 10801-3410 Tel 914-632-3778 Fax 914-632-5502
On Fri, 2004-05-28 at 14:15, Mike Coan wrote:
Ken,
<snip>
Or you can use smbfs to mount the shares at boot time with entries in /etc/samba/smbfs like:
//server/share /media/<mount point> username=xxxx%xxxx,uid=<username>,gid=<group name>
all on one line.
Except that the mount -t smbfs command never worked. i assumed that if mount -t smbfs didn't work, then it wouldn't work to put stuff in /etc/samba/smbfs. Most of the messages I read indicated that people couldn't get smbfs to work. I would certainly prefer to mount the shares at boot time like you suggest.
Mike --
Exactly why I use smbfs. If I try to mount manually using mount -t smbfs it always fails. -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
----- Original Message -----
From: "Ken Schneider"
On Fri, 2004-05-28 at 14:15, Mike Coan wrote:
Ken,
<snip>
Or you can use smbfs to mount the shares at boot time with entries in /etc/samba/smbfs like:
//server/share /media/<mount point> username=xxxx%xxxx,uid=<username>,gid=<group name>
all on one line.
Except that the mount -t smbfs command never worked. i assumed that if mount -t smbfs didn't work, then it wouldn't work to put stuff in /etc/samba/smbfs. Most of the messages I read indicated that people couldn't get smbfs to work. I would certainly prefer to mount the shares at boot time like you suggest.
Mike --
Exactly why I use smbfs. If I try to mount manually using mount -t smbfs it always fails.
-- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
I normally use something like the following: //boxname/sharename /home/user/mountpoint smbfs user,uid=username,gid=groupname, password="password" 0 0 Unless the firewall settings put the kibosh on it, it works. HTH... ...CH
participants (3)
-
C Hamel
-
Ken Schneider
-
Mike Coan