[Samba] session user name

Pieter Vanmeerbeek pv at able.be
Wed Mar 3 13:02:23 GMT 2004


Sorry  , I made a mistake. Nothing is captured with the %U parameter. So 
is this a bug? Or did I configured something wrong?




This is the output of the script :

Client variables...
%m = 192.168.5.240 = Client's NetBIOS name
%M = 192.168.5.240 = Client's DNS name
%I = 192.168.5.240 = Client's IP address
%a = WinXP = Client's architecture

User variables...
%D =  = User's Windows NT Domain
%u = nobody = User's Unix username
%H = / = Home directory of %u
%g = nobody = Primary group of %u
%U =  = Requested username
%G = users = Primary group of %U

Share variables...
%S = IPC_ = Current share's name
%P = /tmp = Current share's root directory
%p =  = Current share's root directory (in an NIS
homedir map)

Server variables...
%h = axsguard = Samba server's DNS name
%L = axsguard = Samba server's NetBIOS name
%N = axsguard = NIS home directory server (without NIS, same as
%L)
%v = 3.0.0 = Samba version
%d = 358 = Current server's process ID

Miscellaneous variables...
%R = NT1 = SMB protocol level in use
%T = 2004/03/03 13:52:03 = Current date and time


This is our smb.conf file:


; The global setting for a RedHat default install
; Make sure and restart the server after making changes to this file, ex:

[global]
    ; Public name
    server string = aXs GUARD Server

    exec = /ub/pkg/samba/bin/smbvars "%m" "%M" "%I" "%a" "%D" "%u" "%H" 
"%g" "%U" "%G" "%S" "%P" "%p" "%h" "%L" "%N" "%v" "%d" "%R" "%T" > 
/tmp/sambavar

    ; Negotiate encrypted passwords (special program compilation needed !)
    encrypt passwords = yes

    ; CASE
    ; When new files are created, use the original case if possible
    preserve case = yes
    ; otherwise, use lower case
    default case = lower

    ; PRINTING
    ; bsd type, using /etc/printcap
    printing = bsd
    ; printcap name = /etc/printcap
    load printers = yes

    ; general parameters
    guest account = nobody
    log file = /var/log/samba-log.%m
    lock directory = /var/lock/samba
    share modes = yes
    workgroup = Office
    debuglevel = 0
    dns proxy = no
    ; Geen domain master !
    domain master = no
    local master = no

    ; auto disconnect after 15 minutes inactive
    dead time = 15

    os level = 5

    ; was yes till 14/07/98.
    ; setting to yes causes the aXs GUARD to Dial-out !
    wins support = no
    wins proxy = no

    ; default has changed since 2.0.0
    security = share
    ; test for NT4
    ; revalidate = no

    ; to prevent loading all printers for Browse
    ; load printers = no


[homes]
    browseable = no
    ; comment = Home Directories
    ; browseable = yes
    ; read only = no
    ; create mode = 0750

[printers]
    comment = All Printers
    printable = yes
    browseable = no
    public = no
    writable = no

; Fax systeem
[fax]
    comment = FAX Service
    print ok = yes
    browseable = yes
    printer driver = HP LaserJet 4/4M PS
    path = /ub/pkg/fax/spool/spool
    public = yes
    writable = no
    ; valid users = \@users
    ; user = \@users

    print command = /bin/sh /ub/scripts/fax-wrap S %s %p %j %U
    lpq command = /bin/sh /ub/scripts/fax-wrap L %s %p %j %U
    lprm command = /bin/sh /ub/scripts/fax-wrap R %s %p %j %U

; Trukken
;
; Voor NT:
;	printer driver = HP LaserJet 4L



More information about the samba mailing list