Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-09-2005, 09:44 AM   #1
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Samba as PDC: can it just run logon script, not host profiles?


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:

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

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

# optimisations
#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

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

path = /mnt/netlogon
public = no
writeable = no
browseable = no

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

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

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

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

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

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

comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root
thank you



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba PDC and roaming profiles Red Squirrel Linux - Networking 1 07-13-2005 08:09 PM
samba pdc roaming profiles help chm0d Linux - Networking 1 04-19-2005 02:24 AM
Samba as a PDC+ Roaming Profiles... tarballed Linux - Networking 22 08-12-2004 07:19 AM
Samba PDC profiles not found kragbax Linux - Networking 1 06-16-2003 05:44 AM
samba pdc without roaming profiles 2 hsa Linux - General 4 05-13-2003 08:43 AM

All times are GMT -5. The time now is 08:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration