[Samba] Problem with Samba %U

Ryan Novosielski novosirj at umdnj.edu
Wed Jun 11 14:03:55 GMT 2003


Andrew:

I have been using %U for my "print command= " and the other associated
commmands, because users often LAN login to remote sites where they do
have an account, but do not have an account on the local print server. The
reason I do this is for accounting purposes.

How bad is %U when using regular Windows PC's. Is it possible that %U will
return the previous user's username when a new user logs in? If so, do you
have any workarounds for the original problem?

---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
|$&| |__| |  | |__/ | \| _|  | novosirj at umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630

On Mon, 9 Jun 2003, Andrew Bartlett wrote:

> On Mon, 2003-06-09 at 17:57, Radek ?uja wrote:
> > Hello,
> >
> > I have a problem with Samba and I absolutely don't know how to solve it.
> >
> >
> > Samba version: 2.2.8a
> > Linux version: Redhat 9.0
> >
> > Description of the problem:
> >
> > In Samba configuration I use:
> >
> >   include = /etc/samba/%U.conf
> >
> > and services as follow:
> >
> > [%U]
> >     comment = Home directory (%U) (%u)
> >     path =  /public/%U
>
> This looks like a very bad idea.  Samba's handling of %U is sub-optimal,
> as you have found.  I'm certain this kind of configuration is almost
> never tested - what is wrong with the 'homes' service?
>
> You can use %u in the path, if you want.
>
> The reason %U doesn't work it that it tends to be a global, per
> connection, and windows terminal server opens only one connection to the
> server.  Even with newer versions of Samba which get %U working a little
> better, the share list is global.
>
> I expect this configuration to become less, rather than more supported
> in future.  (The compromises required for some of these configurations
> may prove too costly in future).
>
> Andrew Bartlett
>
> --
> Andrew Bartlett                                 abartlet at pcug.org.au
> Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
> Student Network Administrator, Hawker College   abartlet at hawkerc.net
> http://samba.org     http://build.samba.org     http://hawkerc.net
>



More information about the samba mailing list