Operating System - HP-UX
1835228 Members
2919 Online
110078 Solutions
New Discussion

Re: First time samba setup

 
Jeff Boege
Occasional Contributor

First time samba setup

I'm setting up samba on a workstation for the first time and when I run the smbclient -L SERVERNAME command I get the following:

added interface ip=address.205 bcast=address.255 nmaks=255.255.255.0
Password:

since I'm logged in as root I give it the root password then I get:

Domain=[DOMAIN_NAME] OS=[UNIX] Server=[Samba 2.0.6]
tree connect failed: code 0

In the log.servername file it has the following:

[2001/06/06 14:07:29, 0] lib/util_sec.c:(67)
Failed to set gid privileges to (-1,-2) now set to (0,0)
PANIC: failed to set gid

I also can't connect to the server from my NT PC.

Any help is apreciated, thanks

Jeff
3 REPLIES 3
John Poff
Honored Contributor

Re: First time samba setup

What does your smb.conf file look like?

Also, version 2.0.6 is getting old. The current version is 2.0.9. If you can do it, you might want to try the newest version as they have fixed a bunch of bugs since 2.0.6.

JP
Mark Fenton
Esteemed Contributor

Re: First time samba setup

Jeff, I trust you read the docs first, but if not, that definately should be your first stop. Most distributions of Samba come with the (excellent) HTML book from O'Reilly.

The issue of your samba client authenticating to the NT network is probably that root has no NT account. Try connecting as some other user, say administrator, who would have an NT account.

Hope this helps....
Jeff Boege
Occasional Contributor

Re: First time samba setup

Here's my smb.conf file. Should I be able to be loged in as root on the workstation when I run the smbclient command?

Jeff

# 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 many any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
netbios name = water5

# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
workgroup = Wat_domain

# server string is the equivalent of the NT Description field
server string = Samba Server

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/opt/samba/log.%m

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

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = share
# Use password server option only with security = server or domain
password server = *

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
encrypt passwords = no

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

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply

local master = no
read only = no
preserve case = yes
short preserve case = no
dos filetime resolution = yes
syslog = 0

#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no

# This one is useful for people to share files
[tmp]
path = /tmp