[Samba] bug (?)
don_mccall at hp.com
Fri Apr 26 10:39:02 GMT 2002
The ability to access the /usr/bin subdirectory is a function of samba
a 'home directory' in the user store (/etc/passwd in this case).
It FINDS it because the system user 'bin' is defined as:
You can prevent this behavior by adding the following line to your 'homes'
of the smb.conf file:
valid users = %S
This will ensure that the user of the home directory is in fact the
appropriate unix user
(for in this instance 'bin')...
BTW, this is true of ANY 'home directory' listed in the /etc/passwd file...
Hope this helps,
From: Panagiotis J. Roris [mailto:pjr-lists at mail.ntua.gr]
Sent: Friday, April 26, 2002 12:25 PM
To: samba at lists.samba.org
Subject: [Samba] bug (?)
Hi, I would like to mention the existence of an not browseable
undefined sharename in samba.
I tested it with samba 2.2.1a, 2.2.3a and linux, sunos, freebsd.
If you run a samba server and try to connect at sharename "bin",
which is not defined in the smb.conf you actually achieve it.
(the user that tries to connect must be is smbpasswd)
In linux after the connection you see the /bin dir and in freebsd
you go to / and you can browse the whole tree. (access is not with
Is this a feature of samba, because it looks to me as a bug
A small proof follows, not wanted to make this mail so big.
prori at ikaros:  ~ > uname -r
prori at ikaros:  ~ > cat /usr/local/etc/smb.conf
workgroup = HOME
server string = Unix FreeBSD
hosts allow = 192.168.0. 127.
load printers = no
log file = /var/log/log.%m
max log size = 50
security = user
encrypt passwords = yes
socket options = TCP_NODELAY
local master = yes
dns proxy = no
client code page=737
#============================ Share Definitions
comment = Home Directories
browseable = no
writeable = yes
prori at ikaros:  ~ > id
uid=1001(prori) gid=1001(prori) groups=1001(prori)
prori at ikaros:  ~ > smbd -V
prori at ikaros:  ~ > smbclient //ikaros/bin
added interface ip=192.168.0.202 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[HOME] OS=[Unix] Server=[Samba 2.2.3a]
smb: \> cd /root
smb: \root\> ls
. D 0 Fri Apr 19 19:59:36 2002
.. D 0 Fri Apr 19 20:06:50 2002
.msgsrc H 2 Sun Mar 10 09:53:50 2002
.klogin H 142 Mon Jan 28 15:13:22 2002
.login H 297 Mon Jan 28 15:13:22 2002
.profile H 251 Mon Jan 28 15:13:22 2002
.history H 868 Sun Mar 3 09:02:27 2002
.xinitrc AH 15 Sun Mar 3 09:39:32 2002
.xsession AH 15 Sun Mar 3 09:39:32 2002
.ssh DH 0 Thu Apr 18 16:57:51 2002
zlib.v1.1.corrected.patch 1759 Thu Apr 18 17:32:06 2002
62760 blocks of size 32768. 40290 blocks available
To unsubscribe from this list go to the following URL and read the
More information about the samba