Bug 1278 - The %D variable returns the server's NetBIOS name, not the client's workgroup name
The %D variable returns the server's NetBIOS name, not the client's workgroup...
Product: Samba 3.0
Classification: Unclassified
Component: Config Files
Other Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Depends on:
  Show dependency treegraph
Reported: 2004-04-20 13:20 UTC by Rod Smith
Modified: 2005-08-24 10:23 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Rod Smith 2004-04-20 13:20:26 UTC
The smb.conf man page describes the %D variable as "Name of the domain or
workgroup of the current user." When used in smb.conf, though, it seems to be
returning the NetBIOS name of the server. For instance, in a file share on a
server with a NetBIOS name of NESSUS on the RINGWORLD workgroup:

preexec = touch /tmp/%D

After accessing the share from a remote system on the RINGWORLD workgroup (using
smbclient or smbmount), a file called /tmp/NESSUS appears, whereas based on the
smb.conf man page, I'd expect a file called /tmp/RINGWORLD (or perhaps
/tmp/ringworld) to be present.
Comment 1 Gerald (Jerry) Carter 2004-04-20 19:30:29 UTC
should be fixed in 3.0.3pre2 or later.
Comment 2 Gerald (Jerry) Carter 2005-08-24 10:23:01 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.