Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include-Command in smb.conf with %u or %g-variable

Status
Not open for further replies.

Roland

Programmer
Jul 29, 1999
43
DE
Hi all,

i'm just experimenting with dynamic share-handling
and have a little problem:

supposing a share in the smb.conf:

[my-share]
# ... some commands and then
root preexec = echo name: %u group: %g >> /home/roland/test.txt

Creates an entry in test.txt by window$-clicking to the share:
name: roland group: supergroop

Ok, so %u and %g -Variables are accessible :)

Now, next try:
[my-share]
# ... and now:
include = /usr/local/samba/lib/roland.conf

and in roland.conf we have:
root preexec = echo name: %u group: %g >> /home/roland/test.txt

supplies the same (new) entry :)

but:
[my-share]
# ... and then:
include = /usr/local/samba/lib/%u.conf

supplies - nothing! Seems, that roland.conf cannot be found!
:-(

Any ideas would be greatly appreciated, thanks!



 
And what says testparm

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Can't find include file /usr/local/samba/lib/%u.conf"

When i change the ".../%u.conf" to ".../roland.conf"
in the smb.conf-file, testparm does not complain.

Thats it - the %u - variable seems not to be recognized
in the smb.conf - i wonder why...

(sorry for my late response, time is hitting me)



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top