[Samba] Include directive is not being processed by samba.

Steve Jr Ramage
Thu, 02 Oct 2003 20:58:31 -0000

I have the following Problem, include doesn't seem to work very well,
its VERY intermitantly. The files are attached below along with an
smbclient output.

Basically I am setting up a PUBLIC share, that if I connect to will give
me admin access. It contains service packs and fixes, so when I install
someones system, they can just click and connect, without being prompted
for a password.

However, it should in theory give me username: sjr access to that as
admin. That would allow me to write, and to delete files there. I
attached a %u to the comment, and it shows the correct user name, and
the file exists, I've checked and rechecked. I tried both %U and %u. If
I set the file to be included forcefully and statically it works
otherwise no.

Basically the comment should tell me that its working perfectly it
should change, but it doesn't. I'm using Samba 3.0 Final, from Debian
Packages. Any idea.
============================smb.conf=================================[data]
        browseable = yes
        path = /data
        public = yes
        writeable = no
        force create mode = 644
        force directory mode = 755
        force user = pub
        guest ok = yes
        guest account = pub
        force group = pub
        comment = Public Data Drive %U
        include = /etc/samba/%U
==========================/etc/samba/sjr===============================	force
user = sjr
	writeable = yes
	comment = Adminstrative Access: Public Data Drive
===================== smbclient output
==========================fermat:/home/sjr# smbclient -L 192.168.0.5 -U sjr
added interface
ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0 Password:password
Domain=[SJRX.NET] OS=[Unix] Server=[Samba 3.0.0-Debian]

        Sharename      Type      Comment
        ---------      ----      -------
        data           Disk      Public Data Drive sjr
        IPC$           IPC       IPC Service (Duron 900, 512 MB RAM, 100
Mb/s Connegction, Running Debian UNstable 3.0r1 and Samba: 3.0.0-Debian)
        ADMIN$         IPC       IPC Service (Duron 900, 512 MB RAM, 100
Mb/s Connegction, Running Debian UNstable 3.0r1 and Samba: 3.0.0-Debian)
        sjr            Disk      Home Directories

        Server               Comment
        ---------            -------
        GAUSS
        TURING               Duron 900, 512 MB RAM, 100 Mb/s
Connegction, Run

        Workgroup            Master
        ---------            -------
        SJRX.NET             GAUSS