evaluate a variable in smb.conf

David Brodbeck DavidB at mail.interclean.com
Mon Nov 19 08:28:01 GMT 2001


I think include files are only read when the configuration file is first
opened by the daemon.  I don't think they're evaluated for each connection.

-----Original Message-----
From: Benoit MARCHAL [mailto:Benoit.Marchal at ensem.inpl-nancy.fr]
Sent: None
To: Joel at HammersHome.com
Cc: samba at lists.samba.org
Subject: Re: evaluate a variable in smb.conf


I can write
	LOGON PATH = \\%N\profiles\%u
in global section

so while I cannot write
	include = profiles.%g

isn't the same thing ?

Message de Joel Hammer:
> I do not think it is possible to use %u or %g in global. Those are the
names
> that are assigned to the user when using a specific share, not the names
> that the user presents to samba when he logs onto it. (%U)
> Somebody please correct me if I am wrong.
> Joel
> On Mon, Nov 19, 2001 at 04:11:32PM +0100, Benoit Marchal wrote:
> > Hello
> > 
> > I want to use a variable in the global section of smb.conf
> > 
> > If the variable is %u (or %g), it concerns the current user (root at 
> > this moment) and not the veritable user. while ?
> > 
> > does somebody can help me ?
> > 
> > thanks
> >
----------------------------------------------------------------------------
--
> > | Benoît Marchal                | Tel   : (33) 03.83.59.55.75
|
> > | E.N.S.E.M.                    | Fax   : (33) 03.83.44.07.63
|
> > | 2, Avenue de la Forêt de Haye | E-mail:
Benoit.Marchal at ensem.inpl-nancy.fr |
> > | F-54516 Vandoeuvre-les-Nancy  |
|
> >
----------------------------------------------------------------------------
--
> > 
> > -- 
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba


-- 
Benoit Marchal                     | Tel   : 33 3.83.59.55.75
E.N.S.E.M.                         | Fax   : 33 3.83.44.07.63
Service de Maintenance Informatique| email :
Benoit.Marchal at ensem.inpl-nancy.fr
2, avenue de la Foret de Haye      | 
54516 Vandoeuvre les Nancy         |

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list