Carregar o script de logon por grupo

1. Carregar o script de logon por grupo

Luis Vitorio
vitorioluis

(usa Debian)

Enviado em 18/10/2011 - 10:19h

Hoje o meu script de logon esta assim:
logon script = logon.cmd

Gostaria de carregar o script de logon por grupo. Ja tentei a seguinte opção:

logon script = %G.cmd
e
logon script = %g.cmd

E não deu certo..

Alguém poderia me ajudar?


  


2. Re: Carregar o script de logon por grupo

Perfil removido
removido

(usa Nenhuma)

Enviado em 18/10/2011 - 11:06h

Poste o arquivo completo.


3. Re: Carregar o script de logon por grupo

Luis Vitorio
vitorioluis

(usa Debian)

Enviado em 18/10/2011 - 11:20h

[global]
workgroup = europa
netbios name = server
server string = APPLICATION SERVER
interfaces = eth1, eth0, lo

encrypt passwords = true
passdb backend = tdbsam
security = user

#logon script = %g.cmd
logon script = logon.cmd
name resolve order = wins bcast hosts
domain master = yes
domain logons = yes
preferred master = yes
wins support = yes
logon home =
logon path =

# logon drive = H:
# logon home = \\%N\%U

create mode = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65535
dead time = 15
getwd cache = yes
log file = /var/log/samba/log_%U.log
max log size = 10
keep alive = 120
os level = 100
time server = YES

printing = cups
load printers = yes
printcap name = cups

Level0 oplocks = no
ntlm auth = YES
lanman auth = YES
client ntlmv0 auth = YES

# Script para adcionar computadores automaticamente
add user script = /usr/sbin/adduser --quiet --disabled- password --gecos "" %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usernod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
idmap uid = 15000-20000
idmap gid = 15000-20000
template shell = /bin/bash

#Sincronismo das senha locais com as do SAMBA
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd chat debug = yes
unix password sync = yes

# Definicao do loglevel
log level = 3
level2 oplocks = No

vfs objects = recycle
recycle:keeptree = yes
recycle:versions = yes
recycle:repository = /home/lixo/%U
recycle:exclude = *.tmp, *.log, *.obj, ~*.*, *.bak, *.iso, *.ldb,Thumbs.db
recycle:exclude_dir = tmp, cache

######## SISTEMA ########
[lixeira]
path = /home/lixo/%U
writable = yes
browsable = no

[netlogon]
comment = Pasta de logon
path = /home/netlogon
create mode = 0755
browsable = no
read only = Yes
guest ok = Yes
write list = luis

[sistema_integrado]
writeable = yes
path = /home/sistema_integrado
force group = ti
comment = SIA
valid users = %U
veto files = /*.mp3/*.avi/*.wma/*.wmv/*.rmvb/*.mp4/
browsable = no

[mssql]
writeable = yes
path = /home/mssql
force group = ti
comment = BKP SQL
valid users = %U
veto files = /*.mp3/*.avi/*.wma/*.wmv/*.inf/*.rmvb/*.cmd/*.bat/*.pif/*.scr/*.exe/*.vbs/*.vmx/*.vob/*.ifo/*.bup/*.ttf$
browsable = no

######## IMPRESSORAS #######
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
;write list = root

[printers]
comment = Todas as Impressoras
browseable = yes
path = /var/spool/samba
public = yes
print ok = yes
guest ok = yes
printable = yes
#printer admin = root

######## PUBLICO ########
[Publico]
writeable = yes
path = /home/Publico
force group = ti
comment = Area's public files
valid users = %U
veto files = /*.mp3/*.avi/*.wma/*.wmv/*.inf/*.rmvb/*.cmd/*.bat/*.pif/*.scr/*.exe/*.vbs/*.vmx/*.vob/*.ifo/*.bup/*.ttf/*.lnk/*.ini/*.msi/
public = yes

####### HOME ########
[homes]
comment = Pasta de %u
path = /home/%S
valid users = %S
read only = no
guest ok = yes
browsable = no
veto files = /*.mp3/*.avi/*.wma/*.wmv/*.inf/*.rmvb/*.cmd/*.bat/*.pif/*.scr/*.exe/*.vbs/*.vmx/*.vob/*.ifo/*.bup/*.ttf/*.lnk/*.mpeg/*.vob/*.ini/*.msi/

####### FINANCEIRO ######
[financeiro]
writeable = yes
invalid users = @academia,@assis_social,@atendimento,@eventos,@manutencao
path = /home/financeiro
comment = Pasta de %u
valid users = @financeiro
public = yes
browsable = no
veto files = /*.mp3/*.avi/*.wma/*.wmv/*.inf/*.rmvb/*.cmd/*.bat/*.pif/*.scr/*.exe/*.vbs/*.vmx/*.vob/*.ifo/*.bup/*.ttf/*.lnk/Thumbs.db/*.mpeg/*.vob/*.ini/*.msi/

###### MANUTENCAO #######
[manutencao]
comment = Pasta de %u
path = /home/manutencao
valid users = @manutencao
read only = no
guest ok = yes
browsable = no
veto files = /*.mp3/*.avi/*.wma/*.wmv/*.inf/*.rmvb/*.cmd/*.bat/*.pif/*.scr/*.exe/*.vbs/*.vmx/*.vob/*.ifo/*.bup/*.ttf/*.lnk/Thumbs.db/*.mpeg/*.vob/*.ini/*.msi/

######## PORTARIA #######
[portaria]
comment = Pasta de %u
path = /home/portaria
valid users = @portaria
read only = no
guest ok = yes
browsable = no
veto files = /*.mp3/*.avi/*.wma/*.wmv/*.inf/*.rmvb/*.cmd/*.bat/*.pif/*.scr/*.exe/*.vbs/*.vmx/*.vob/*.ifo/*.bup/*.ttf/*.lnk/Thumbs.db/*.mpeg/*.vob/*.ini/*.msi/


###### TI #######
[ti]
comment = Pasta de %u
path = /home/ti
valid users = @ti
read only = no
guest ok = yes
browsable = no
veto files = /*.mp3/*.avi/*.wma/*.wmv/*.inf/*.rmvb/*.cmd/*.bat/*.pif/*.scr/*.exe/*.vbs/*.vmx/*.vob/*.ifo/*.bup/*.ttf$







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts