LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-09-2005, 10:44 AM   #1
hamish
Member
 
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?


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
 
  


Reply


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 09:09 PM
samba pdc roaming profiles help chm0d Linux - Networking 1 04-19-2005 03:24 AM
Samba as a PDC+ Roaming Profiles... tarballed Linux - Networking 22 08-12-2004 08:19 AM
Samba PDC profiles not found kragbax Linux - Networking 1 06-16-2003 06:44 AM
samba pdc without roaming profiles 2 hsa Linux - General 4 05-13-2003 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:19 AM.

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