• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Samba logon-script

Hallo zusammen,
ich habe Opensuse 11.1 installiert und smba als PDC Konfiguriert.
Mein Problem ist, dass benutzer_name.bat wird nicht bei der Anmedung automatisch ausgeführt.

Hier sind die Dateien:

logon-script:
mode con lines=1
net use P: \\linux-server\users
net use Q: \\linux-server\gemeinsam
net use R: \\linux-server\verwaltung
net time \\linux-server

smb.conf:
[global]
workgroup = samba
netbiosname = linux-server
server string = Samba-TNG %v(PDC)

encrypt passwords = yes
password level = 4
debug level = 2
log file = /usr/local/samba/var/log/log.%m
max log size = 50
os level = 65
wins support = yes
domain logons = yes
security = user
socket options = TCP_NODELAY

logon script = %G.bat
logon home = \\linux-server\\%U
logon path = \\linux-server\profiles\%U

printcap name = cups
load printers = yes
printing = cups

[homes]
comment = User Home Verzeichnis
browseable = no
writeable = yes
valid users = %S

[netlogon]
comment = Network Logon Service
path = /daten/netlogon
public = yes
browseable = yes
writeable = yes

[profiles]
comment = Users Profiles
path = /daten/profiles
read only = no
root preexec = PROFILE=/daten/profiles/%U;
if [ ! -e $PROFILE ];
then mkdir -pm700 $PROFILE;
chown %U:%G $PROFILE; fi
public = yes
browseable = yes
writeable = yes

Bitte helfen Sie mir
MfG Chramez
 
na weil %G nicht zum Benutzernamen aufgelöst wird sondern zum "primary group name".
Der Benutzername wäre %U
 
Oben