1847055 Members
5080 Online
110261 Solutions
New Discussion

Samba Problem

 
Rene_17
Regular Advisor

Samba Problem

I have configured Samba 2.2.8a on a HPUX 11.11 machine. The client winxp shows the server iff2, but i can??t connect to the server !
I have take this smb.conf file on the old installation (hpux10.20 with Samba 2.0.7) and it worked. It also works on the other servers with hpux 11.11 and Samba 2.0.7 !
I have made an Samba and unix user, but i can??t connect form a windows 2000 and a winxp machine.
On the other server it works with the same smb.conf !
Could it be that i have to wait an hour befor this works on this new installation ?
4 REPLIES 4
Rene_17
Regular Advisor

Re: Samba Problem

[global]
workgroup = iff
server string = Samba Server
log file = /var/opt/samba/log.%m
max log size = 1000
security = share
encrypt passwords = no
socket options = TCP_NODELAY
local master = yes
printing = hpux
print command = /usr/bin/lp -d%p %s ; /usr/bin/rm %s
lpq command = /usr/bin/lpstat -p %p
lprm command = /usr/bin/cancel %p-%j
read only = no
preserve case = yes
short preserve case = no
dos filetime resolution = yes
syslog = 0
hosts deny = all
hosts allow = 138.232.81. 127.

[homes]
comment = Home Directories
browseable = no
public = no
read only = no
create mode = 0750

[tmp]
path = /tmp

[iff]
comment = iff User
path = /home/samba/iff
public = no
writable = yes
printable = no

[LaserJet40]
printer = LaserJet40
comment = HP LaserJet 4000N
printing = HPUX
path = /tmp
printable = yes
guest ok = yes
writable = no
create mode = 0700

[LaserJet43]
printer = LaserJet43
comment = HP LaserJet 4300tn
printing = HPUX
path = /tmp
printable = yes
guest ok = yes
writable = no
create mode = 0700

[DeskJet16]
printer = DeskJet16
comment = HP DeskJet 1600CM
printing = HPUX
path = /tmp
printable = yes
guest ok = yes
writable = no
create mode = 0700

[DeskJet25]
printer = DeskJet25
comment = HP DeskJet 2500CM
printing = HPUX
path = /tmp
printable = yes
guest ok = yes
writable = no
create mode = 0700

[Lex1275]
printer = Lex1275
comment = Lexmark Optra SC 1275
printing = HPUX
path = /tmp
printable = yes
guest ok = yes
writeable = no
create mode = 0700
Rene_17
Regular Advisor

Re: Samba Problem

Errormessage when i want to connect !

[2003/09/19 12:30:31, 0] lib/util_sec.c:(111)
Failed to set gid privileges to (-1,-2) now set to (0,0) uid=(0,0)
[2003/09/19 12:30:31, 0] lib/util.c:(1094)
PANIC: failed to set gid
Darren Prior
Honored Contributor

Re: Samba Problem

Hi Rene,

It looks to me as if Samba is using the nobody user for guest access, and isn't happy with it having a negative gid.

The best way forward is to define the guest user in your smb.conf to be a user like smbnull (if you're using CIFS this should have been created for you automatically) and make sure that the user exists and has positive uid and gid.

As for it working on other servers, it's likely that there's been some changes since the older versions you were running, also check the /etc/passwd entry for nobody to see whether a positive gid/uid was used.

regards,

Darren
Calm down. It's only ones and zeros...
Rene_17
Regular Advisor

Re: Samba Problem

thanks for this information !
next errormessage:

[2003/09/19 13:26:59, 0] smbd/service.c:(597)
pc17-c803 (138.232.81.32) Can't change directory to /tmp (Permission denied)

?