P. 1
Samba

Samba

|Views: 167|Likes:
Publicado porNurul Istiqomah

More info:

Published by: Nurul Istiqomah on Dec 14, 2010
Direitos Autorais:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/21/2014

pdf

text

original

Go to the profile directory (/data/dos/profile,in this example). See whether the user
already has a directory. If so,go into that directory and note the date on USER.DAT. The
following is the best command to use:

$ ls -l --full-time USER.DAT

The --full-timeoption enables reading of timestamps in the future. Without it,future
timestamps show the year instead of the time,as follows (assume the command was
issued 11/26/1999):

-rw------- 1 username username 458784 Nov 27 1999 USER.DAT

If your UNIX implementation doesn’t have --full-time,use something else to read
future timestamps.

If there’s not yet a /data/dos/profile/usernamesubdirectory,change to the

/data/dos/profiledirectory. Log on to the test user name (username,in this example)
on the client and watch as the subdirectory is created (if it wasn’t there) and watch as the
timestamp changes for USER.DAT. That timestamp should be accurate to within 10 sec-
onds. If not,fix it. It’s important to get roaming profiles working with a single client
before attempting multiple clients.

Once the first client is synced,perform the following experiment:

1.Log in and log out from the client.

2.Copy USER.DATto OLD.DAT.

3.Log in and verify that the correct screen scheme comes up.

Creating a Turnkey Samba System

PARTII

476

19 8628 CH16 3/17/00 1:14 PM Page 476

4.Change the scheme to another scheme. High contrast white is an excellent choice
for this experiment.

5.Log off the client,log back on,and verify that the new scheme “sticks.”Log off
the client again.

6.Rename USER.DATas NEWER.DAT.

7.Copy OLD.DATto USER.DAT.

8.Wait long enough to overcome any time-sync discrepancy between the client and
server. A good indication is that the system time is later than the timestamp on

NEWER.DAT.

9.Use the touchcommand to update the date of USER.DAT(touch USER.DAT).

10.Log on to the client and verify that the old scheme is displayed on the client. This
proves that the schemes are being written to and received from the server.

The preceding test gives you a hint on how to set up client environments from the server.

Now that roaming profiles have been tested with one client,test them with two (call
them A and B). Assume they’ve been checked and found to be completely synced,in all
ways,to within 10 seconds. Now follow these steps:

1.Log off all clients using the test user (username). Leave them logged off for more
than the time discrepancy between the clients. Note that although A and B have
been synced,others might not have been. If USER.DATappears to be in the future,
rename it.

2.Log on to A,change the scheme to high contrast black,and log off. Wait a longer
period than the time discrepancy between the clients.

3.Log on to B and verify that its scheme is now high contrast black,as set by client A.

4.Set the scheme on B to red,white,and blue and then log off. Wait a longer period
than the time discrepancy between the clients.

5.Log on to A and verify that the scheme is now red,white,and blue.

Using Samba as Your Windows 98 Logon Mechanism

CHAPTER16

477

16

U

S
I
N
G

S

A
M
B
A
A
S

Y

O
U
R

W

I
N
D
O
W
S

9
8

L

O
G
O
N

M

E
C
H
A
N
I
S
M

Mandatory Profiles

Mandatory profilesare profiles unchangeable by the user. In other words,
they’re dictated by the system administrator. Basically, you can make a normal
profile mandatory by renaming the USER.DATfile to USER.MAN. Beyond that you
need to change the directory owner and directory and file permissions so the
user cannot rename USER.MANback to USER.DAT, and cannot modify the file via
a share or UNIX command line access to the UNIX box. The entire tree for the
user’s profile must be modified for read-only access. A script can be created to
do all this work while adding a user.

Mandatory profiles are important because they take the thin client concept to a
new level.

19 8628 CH16 3/17/00 1:14 PM Page 477

You're Reading a Free Preview

Descarregar
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->