Probable bug in smbd UID switching in HP-UX 10.20
Marco Marongiu
bronto at crs4.it
Mon Oct 9 16:15:24 GMT 2000
Hi, this is Marco Marongiu from CRS4 Research Center in Sardinia, Italy.
I compiled Samba, versions 2.0.6 and 2.0.7, on an HP J282 server running
HP-UX 10.20. The users authenticate against an NT domain controller and
access to their UNIX home directory; every domain user is also
registered in NIS, and his home directory is shared accross machines via
NFS and automount. Samba server also gives access to three network
printers.
Samba works for everything but one. When a new connection is made, the
parent smbd process silently fails to switch its child to the user's
uid/gid. This result in the possibility for every user to delete other
users' print jobs.
I scanned tons of subjects in the samba mailing list archives, searched
deja, read HINTS.txt and compiled 2.0.6 applying the patch "Bug in UID
handling for HP-UX", too: same thing.
I compiled with gcc and native cc also, but results didn't change.
Here is some data you may find useful.
uname -a returns:
HP-UX here_was_my_name B.10.20 A 9000/780 2013314351 two-user license
configure was issued using this command line:
./configure --prefix=/opt/samba-2.0.n --with-automount
when compiling with gcc, and
CC=/bin/cc ./configure --prefix=/opt/samba-2.0.n --with-automount
The "n" in the version number, you guessed that, was 6 when compiling
2.0.6 and 7... ok, that's enough :*)
Ah, yes: the smb.conf (names have been changed and IPs numbers
substituted by x-es).:
# Samba config file created using SWAT
# from my_machine (x.x.x.x)
# Date: 2000/10/06 12:38:03
# Global parameters
[global]
workgroup = CNS
netbios name = MY_NAME
server string = SaMBa server
security = DOMAIN
encrypt passwords = Yes
password server = my_pdc
smb passwd file = /opt/samba/private/smbpasswd
load printers = No
printer driver file = /opt/samba/lib/printers.def
local master = No
wins server = x.x.x.x
smbrun = /opt/samba/bin/smbrun
lock directory = /opt/samba/var/locks
guest account = samba
invalid users = root
hosts allow = x.x.
[homes]
comment = Home directories
path = /u/%u
writeable = Yes
browseable = No
[baobab]
comment = HP LaserJet 5Si/MX, B/N, inizio corridoio
path = /opt/samba/var/spool
printable = Yes
postscript = Yes
printer driver = HP LaserJet 5Si MX
[sequoia]
comment = HP LaserJet 5Si/MX, B/N, meta` corridoio
path = /opt/samba/var/spool
printable = Yes
postscript = Yes
printer driver = HP LaserJet 5Si MX
[rainbow]
comment = HP Color LaserJet, inizio corridoio
path = /opt/samba/var/spool
printable = Yes
postscript = Yes
printer driver = HP Color LaserJet 5M
Logs don't report any particular error: here you are some snippets:
log.nmb:
[2000/10/09 16:33:01, 1] nmbd/nmbd.c:main(747)
Netbios nameserver version 2.0.6 started.
Copyright Andrew Tridgell 1994-1998
[2000/10/09 16:33:35, 0] nmbd/nmbd.c:sig_term(67)
Got SIGTERM: going down...
log.smb:
[2000/10/09 16:33:48, 1] smbd/server.c:main(643)
smbd version 2.0.6 started.
Copyright Andrew Tridgell 1992-1998
[2000/10/09 16:33:48, 1] smbd/files.c:file_init(216)
file_init: Information only: requested 10000 open files, 1014 are
available.
[2000/10/09 17:11:38, 1] smbd/service.c:make_connection(535)
pancho (156.148.3.96) connect to service bronto as user bronto
(uid=10520, gid
=1006) (pid 26657)
[2000/10/09 17:12:13, 0] smbd/nttrans.c:call_nt_transact_ioctl(2401)
call_nt_transact_ioctl: Currently not implemented.
Can you help us? Please :(
In case you need more information, feel free to contact me and ask!
Best Regards
Marco Marongiu
CRS4 Research Center, Sardinia (ITALY)
--
____ ____ ____ _ _
/ ___)| __ \/ ___)/ /| | Marco Marongiu (bronto at crs4.it)
| (___ | /\___ \\__ | Computers & Network Group
\____)|_|\_\(____/ |_| Phone: +39 070 2796 336
More information about the samba
mailing list