Adding a feature to the smbd

Simo Sorce simo.sorce at polimi.it
Sun Jan 21 23:13:00 GMT 2001


On Mon, 22 Jan 2001, Richard Sharpe wrote:

> At 11:49 PM 1/21/01 +0100, Thomas Langås wrote:
> >Richard Sharpe:
> >> In [profiles] you can use environment variables in the path:
> >>   [profiles]
> >>     path = /some/path/%$(PROFILE_PATH)
> >>
> >> You set up a file in a root exec for the netlogon share, as you are
> >> probably logging on ... and then you use the 'source environment' parameter
> >> before the path parameter in your [profiles] share to read the environment
> >> variable.
> >
> >OK, I see, didn't know this feature, and it didn't seem like anyone else on
> >the regular samba list did, either. I asked there before I made the patch,
> >and no one knew a solution to my problems. I didn't even know you could use
> >environment variables in the config-file :-)
> >
> >With this in mind, I don't see any reason to keep the patch either. You can
> >do anything you want with the "source environment" first, as a shell script,
> >and then just read the environment-variables later on.
> >
> >Why isn't the possibility to use %$(ENV_VAR) mentioned in the docs? At
> >least, I can't see it anywhere...
>
> Sigh, I know ... I checked in the man page, and could not find it ...
> However, I remember the discussion about it from about March/April last
> year, and it made it into Special Edition, Using Samba :-)
>
> A doco update is needed ...
>
Well, I've found it on the manpage!

man smb.conf
/source environment
:)



-- 
Simo Sorce - Linux Systems Consultant
E-mail: simo.sorce at polimi.it
Tel: +39 0348 7149179 - Fax: +39 02 700442399
-----------------------------------------------------------------
Be happy, use Linux!





More information about the samba-technical mailing list