At 01:45 AM 03/23/2000 +1100, Paul Rijke wrote:>Hi all you Samba cracks (I hope) out there,
>
>I've a question... I use the following smb.conf but when I change the
Win95>client to have user profiles, several folders and the user.dat file is
>created in the users home directory instead of the profile share...
>
>My questions are:
>
>1. Does anyone know how to solve this?
>2. Does anyone know how to copy the local usersettings to the specific
>network-profile so I won't have to install software all over again?
>
>I hope that someone can AND will help me...
>
This is a copy of the smb.conf files from one of our servers which uses the
netlogon and winlogon functions to achieve roaming profiles.
I have also included the setup for the /etc/skel directory which is used
when creating new users under Redhat Linux. This solves the
problem of a bunch of junk files showing up where the user can see/nuke
them and presents the user with a nice clean directory to
clutter up with his/her own junk.
[global]
workgroup = SOMEDOMAIN
interfaces = 10.12.86.93/27
security = SERVER
encrypt passwords = Yes
passwd program = /usr/bin/passwd %u
username map = /usr/local/samba/lib/users.map
log file = /var/log/samba/%U.log
printer driver location = \\%h\printerdefs
time server = Yes
deadtime = 480
socket options = SO_KEEPALIVE
logon script = logon.bat
logon path = \\%h\winlogon
logon drive = g:
logon home = \\%N\home\%U\Data
domain logons = Yes
os level = 130
preferred master = Yes
domain master = Yes
wins proxy = Yes
wins server = 10.12.81.250
remote announce = 10.12.81.250/SOMEDOMAIN
remote browse sync = 10.12.82.255
hosts allow = 10.12. 192.168.191. 192.168.192.
# a foolish little fix to take care of connection problems
[IPC$]
path = /tmp
guest ok = Yes
# this is what the user sees for a home directory
[homes]
comment = Home Directories
path = /home/%u/Data
read only = No
create mask = 0750
browseable = No
#this is where window 95/98 expect to find the logon.bat script
[netlogon]
path = /home/%u
guest ok = Yes
browseable = No
#this is where windows95/98 will store a copy of the users profile
[winlogon]
path = /home/%U/windows
read only = No
browseable = No
#default setting applicable to all printers
[printers]
path = /var/spool/samba
guest ok = Yes
print ok = Yes
lprm command = lprm -P%p %j
browseable = No
#this is where the install files are stored for all the printers
[printerdefs$]
path = /var/spool/printerdefs
guest ok = Yes
browseable = No
# a definition for an HP LaserJet 5N
[hplj5n]
comment = Prt1 - HPLJ 5N
path = /var/spool/samba
read only = No
guest ok = Yes
print ok = Yes
lprm command = lprm -P%p %j
printer name = hplj5n
printer driver = HP LaserJet 5N
printer driver location = \\%h\printerdefs$\HP
oplocks = No
share modes = No
# a definition for a fax printer. (this also requires some special software
on the server)
[fax]
comment = Fax
path = /tmp
guest ok = Yes
print ok = Yes
postscript = Yes
print command = ( /usr/bin/printfax.pl %I %s %U %m; rm %s ) &
lpq command = faxlpq %U
lprm command = faxlprm %j %U
lppause command lpresume command queuepause command
queueresume command printer driver = Linux Fax
printer driver location = \\%h\printerdefs$\FAX
browseable = No
available = No
# a definition for a Lexmark Optra S 2450
[lex2450s]
comment = Prt2 - Lexmark Optra S 2450
path = /var/spool/samba
read only = No
guest ok = Yes
print ok = Yes
lprm command = lprm -P%p %j
printer name = lex2450s
printer driver = Lexmark Optra S 2450
browseable = No
oplocks = No
share modes = No
available = No
*************************************************************************************************************
*************************************************************************************************************
This is a copy of the directory structure which saved under /etc/skel so
that when new users are created it
does not take 5 minutes for the new user to become connected and it also
sets up new users so that they all
have the default desktop settings. Basically there are 3 directories and
one link: Data, Desktop, windows, and
logon.bat. The Data directory is what the user sees as his/her home
directory. The "windows" directory is
where the users profile gets stored by win95/98 machines. and the Desktop
directory is used for X-windows
logins but users rarely login with an X client so that could be deleted if
you wanted. The Data and Windows
directories are referenced in the smb.conf file. The logon.bat is a link
to the default logon.bat file which is
stored in a common directory somewhere on the system. Using a link like
this in the skel directory ensures
that the new user gets a link to the common logon.bat file and the system
admin can always replace it with a
link to a different common logon.bat file or can create a unique logon.bat
file specifically for this user by
replacing the link with an actual file.
/etc/skel
|-- Data
| `-- Word Documents
|-- logon.bat -> /sagidisk/profiles/logon.bat
|-- Desktop
| |-- Autostart
| |-- Printer.kdelnk
| |-- Templates
| | |-- Device.kdelnk
| | |-- Ftpurl.kdelnk
| | |-- MimeType.kdelnk
| | |-- Program.kdelnk
| | |-- URL.kdelnk
| | `-- WWWUrl.kdelnk
| |-- Trash
| |-- cdrom.kdelnk
| |-- floppy.kdelnk
| |-- red_hat_errata.kdelnk
| |-- red_hat_support.kdelnk
| `-- www.redhat.com.kdelnk
`-- windows
|-- Application Data
| |-- Identities
| | `-- {38C90740-2EEA-11D3-9143-F414B1B64577}
| `-- Microsoft
| |-- Address Book
| | `-- agent.wab
| |-- Internet Explorer
| | |-- Desktop.htt
| | `-- Quick Launch
| | |-- Launch Internet Explorer Browser.lnk
| | |-- Launch Outlook Express.lnk
| | |-- Microsoft Word.lnk
| | |-- Sagitta for Windows.lnk
| | `-- Show Desktop.scf
| |-- Investor
| | `-- Ticker.dat
| |-- Office
| | `-- WEBFDR16.INF
| `-- WELCOME
| |-- DEFAULT.WBM
| |-- ICW.WBM
| |-- LOGO.WBM
| |-- MS.WBM
| |-- REGWIZ.WBM
| |-- TOUR.WBM
| |-- TUNEUP.WBM
| |-- WELCOM98.WAV
| |-- WELCOME.DAT
| |-- WELDATA.EXE
| `-- WIN.WBM
|-- Cookies
| |-- agent@msn[1].txt
| |-- agent@www.msn[1].txt
| `-- index.dat
|-- Desktop
| |-- AMSWord.lnk
| |-- Acrobat Reader.lnk
| |-- Microsoft Word.lnk
| |-- Outlook Express.lnk
| |-- Premium Finder.LNK
| |-- Sagitta for Windows.lnk
| `-- Winzip32.lnk
|-- Favorites
| |-- Channels
| |-- Links
| |-- Media
| `-- desktop.ini
|-- History
|-- Local Settings
| `-- Temporary Internet Files
| |-- Content.IE5
| | |-- desktop.ini
| | `-- index.dat
| `-- desktop.ini
|-- My Documents
| `-- desktop.ini
|-- NetHood
|-- Recent
|-- Start Menu
| |-- New Office Document.lnk
| |-- Open Office Document.lnk
| `-- Programs
| |-- AMS Word Processing
| | `-- AMSWord.lnk
| |-- Accessories
| | |-- Address Book.lnk
| | |-- Calculator.lnk
| | |-- Communications
| | | |-- Dial-Up Networking.lnk
| | | `-- Phone Dialer.lnk
| | |-- Entertainment
| | | |-- CD Player.lnk
| | | |-- Interactive CD Sampler.lnk
| | | |-- Sound Recorder.lnk
| | | |-- Volume Control.lnk
| | | `-- Windows Media Player.lnk
| | |-- Games
| | | |-- FreeCell.lnk
| | | |-- Hearts.lnk
| | | |-- Minesweeper.lnk
| | | `-- Solitaire.lnk
| | |-- Imaging.lnk
| | |-- Internet Tools
| | | `-- NetMeeting.lnk
| | |-- Notepad.lnk
| | |-- Paint.lnk
| | |-- System Tools
| | | |-- Disk Cleanup.lnk
| | | |-- Disk Defragmenter.lnk
| | | |-- ScanDisk.lnk
| | | |-- Scheduled Tasks.lnk
| | | |-- System Information.lnk
| | | `-- Welcome To Windows.lnk
| | `-- WordPad.lnk
| |-- Internet Explorer.lnk
| |-- Lotus Applications
| | |-- Lotus Notes.lnk
| | `-- Notes Minder.lnk
| |-- MS-DOS Prompt.pif
| |-- McAfee VirusScan
| | |-- Create Emergency Disk.lnk
| | |-- McAfee VirusScan Scheduler.lnk
| | `-- McAfee VirusScan.lnk
| |-- Microsoft Photo Editor.lnk
| |-- Microsoft Word.lnk
| |-- Outlook Express.lnk
| |-- Premium Finder.LNK
| |-- Sagitta
| | |-- Network Hosts.lnk
| | |-- Sagitta for Windows.lnk
| | `-- Sagitta.lnk
| |-- StartUp
| | |-- Microsoft Find Fast.lnk
| | `-- Office Startup.lnk
| |-- WinZip
| | |-- Online Manual.lnk
| | `-- WinZip 7.0.lnk
| `-- Windows Explorer.lnk
|-- USER.DAT
`-- Word Documents
52 directories, 205 files
*************************************************************************************************************
Hope this solves your problem Paul.
Ken Smith
Network Systems Administrator
Barton Insurance Brokers Ltd
TEL:(604)824-5006
FAX (604)858-4063