Adding a feature to the smbd

Richard Sharpe sharpe at
Fri Jan 26 02:32:57 GMT 2001

At 02:52 AM 1/26/01 +0100, Thomas Langås wrote:
>Richard Sharpe:
>> >> Hmmm, I don't have 2.0.7 on my machines anymore, but I tested that
back in
>> >> early 2000, I believe, when I was writing Special Edition, Using Samba.
>> >> It does work on 2.2.0 (CVS) that I currently use.
>> >> Change the envvar to something like USER, which should show up as
ROOT ...
>> >> This will help us figure out if the mechanism is not working or the
>> >> does not exist.
>> >
>> >That did work, how is it possible to test the source environment-part
>> Also, does the shell script work when you call it manually with an
>> appropriate argument?
>Yupp, then it displays
>PROFILE_PATH=<what it's supposed to based on %I>

OK, When Samba invokes a script, it does not get exactly the same
environment as it would when you run it manually.

So, there may be some reliance in your script on the environment that is
failing when it is run from Samba.


Richard Sharpe, sharpe at
Samba (Team member,, Ethereal (Team member,
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba

More information about the samba-technical mailing list