LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba as PDC: can it just run logon script, not host profiles? (http://www.linuxquestions.org/questions/linux-networking-3/samba-as-pdc-can-it-just-run-logon-script-not-host-profiles-361750/)

hamish 09-09-2005 09:44 AM

Samba as PDC: can it just run logon script, not host profiles?
 
Hiya

I have a samba primary domain controllers in my office.

I would really like samba just to run a logon script when the user logs onto the domain, but NOT to host the user's profile. Is there a way to do this, do you know?

This is my smb.confL:

Code:


[global]
netbios name = PI
workgroup = HAMISHNET
server string = Samba Server on pi.hamishnet

hosts allow = 10.0.0. 127.0.0.0/8
security = user
encrypt passwords = yes
interfaces = lo eth0
bind interfaces only = yes

# optimisations
#socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY IPTOS_LOWDELAY
read raw = yes
write raw = yes
oplocks = yes 
max xmit = 65535
dead time = 15 
getwd cache = yes

null passwords = no
hide unreadable = yes
hide dot files = yes

local master = yes
os level = 65
domain master = yes
preferred master = yes

domain logons = yes
logon script = login.bat
logon path = \\%L\profiles\%U
logon drive = M:
logon home = \\%L\%U\.9xprofile

wins support = yes
name resolve order = wins lmhosts host bcast
dns proxy = no

time server = yes

smb passwd file = /etc/samba/private/smbpasswd

unix charset = ISO8859-1

log file = /var/log/samba/log.%m
log level = 3

# scripts
add user script = /usr/sbin/useradd -m %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/usermod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
passwd program = /usr/bin/passwd %u
passwd chat = "*New password:*" %n\r "*New password (again):*" %n\r \ "*Password changed*"

printcap name = cups
printing = cups
cups options = "raw"
use client driver = no

#SHARES
[netlogon]
path = /mnt/netlogon
public = no
writeable = no
browseable = no

[profiles]
path = /mnt/profiles
browseable = no
writeable = yes
default case = lower
preserve case = no
short preserve case = no
case sensitive = no
hide files = /desktop.ini/ntuser.ini/NTUSER.*/
write list = @smbusers @root
create mode = 0600
directory mode = 0700

[homes]
path = /home/%U
browseable = no
valid users = %S
writable = yes
guest ok = no
inherit permissions = yes
create mode = 0664
directory mode = 0775

#[homes]
#comment = Home Directories
#browseable = no
#read-only = no
#writable = yes
#valid users = %S
#create mode = 0664
#directory mode = 0775

[public]
comment = public area
path = /mnt
browseable = yes
public = yes
write list = hamish
guest ok = yes
create mask = 0664
directory mask= 0775

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes

[epsonc64]
comment = Epson C64
printable = yes
path = /var/spool/epsonc64
public = no
guest ok = no
printer admin = root

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root

thank you

Hamish


All times are GMT -5. The time now is 07:17 PM.