LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba and Novell (https://www.linuxquestions.org/questions/linux-networking-3/samba-and-novell-203087/)

Mordeth_0 07-09-2004 12:13 PM

Samba and Novell
 
I'm trying to mount a smb share on my fedora core 2 machine from a novell server. but I keep getting the following error
root@pc10-107 /]# mount -t smbfs //tester-w/ /root/ -o ip=(tester-w's ip)
6961: protocol negotiation failed
SMB connection failed
[root@pc10-107 /]#

I'm using Novell Netware v6.5
A fully updated version of Fedora Core 2
and I downloaded and installed the newest version of samba 3.0.5

the strange thing is that the error code is not always 6961 in fact I is always a different number. My smb.conf file is as follows (I deleted a all the commented out parts):

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = MYGROUP

# server string is the equivalent of the NT Description field
server string = tester-w

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes

# all information in one file
log file = /var/log/samba/log.smbd

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no

[homes]
comment = Home Directories
browseable = no
writable = yes

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes


So now for my question: what is wrong? who did I annoy to have this evil problem?

khurtwilliams 07-09-2004 01:39 PM

Novell Client for Linux
 
To my knowledge, Samba does not handle Novell files systems. Samba after all is an open source implementation of Microsoft network file systems (CIFS,SMB, NetBIOS). You will need to get Netware specific tools. See here: http://forge.novell.com/modules/xfmod/project/?nwcunix

Mordeth_0 07-23-2004 08:45 AM

It's all in the syntax and CIFS
 
I was able to get Novell mounted with smbmount. A thing I didn't mention before is that I am using CIFS on the Novell server. It was very tricky and I still have some problems with it. Just to clear some information up:

[root@pc10-107 etc]# smbclient -L //tester-w -N
Anonymous login successful
Domain=[WORKGROUP] OS=[NetWare 6.5] Server=[NetWare 6.5]

Sharename Type Comment
--------- ---- -------
Users Disk users
IPC$ IPC Remote IPC
Anonymous login successful
Domain=[WORKGROUP] OS=[NetWare 6.5] Server=[NetWare 6.5]

Server Comment
--------- -------

Workgroup Master
--------- -------
[root@pc10-107 etc]#

The Users share is on the sys volume and is where the users home directory's are located. I don't know what the Server, Comment, Workgroup and Master part do but I hope to eventually find out.

the command I used to get samba to mount on my machine is:

[root@pc10-107 etc]# smbmount //tester-w/users /test -o username=josh
Password:
[root@pc10-107 etc]#

I kept hung up on 2 main spots first do not i repeat do not put a / after the directories. ie: //tester-w/users is NOT the same as //tester-w/users/ smbmount will complain and will not mount. It is a simple thing up I felt stupid when I figured it out by accident. Second and now comes my second and current problem. I can only mount with users that are in the base tree (o=baseTree) or people with dn of cn=josh,o=baseTree but not users who have a dn like so cn=dan,ou=someGroup,o=baseTree so the attempted mount command like so would work:

[root@pc10-107 etc]# smbmount //tester-w/users /test -o username=cn=josh,o=baseTree
Password:
[root@pc10-107 etc]#

but the attempted mount as dan would fail.

[root@pc10-107 etc]# smbmount //tester-w/users /test -o username=cn=dan,ou=someGroup,o=baseTree
Password:
30104: session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
SMB connection failed
[root@pc10-107 etc]#

even the following would fail

[root@pc10-107 etc]# smbmount //tester-w/users /test -o username=dan
Password:
30464: session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
SMB connection failed
[root@pc10-107 etc]#

I want to be able to mount the users share as a user like dan but I don't know where the problem is. To me I would think that it is a change I would have to make on the server or console oneor is a problem with my syntax. Any Ideas or suggestions would be welcome.

josh


All times are GMT -5. The time now is 07:28 AM.