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

Before jumpinginto the seat of your Windows test workstation,it’s a good idea to check
whether all is working fine on the Samba server itself. There are several tests you can run
with the Samba server acting as both server and client. If your configuration doesn’t
work locally,you can be sure it won’t work on another Windows machine.

Using testparmto Verify smb.conf

The testparmutility inspects your configuration and will notify you of errors. With your

smb.conffile as shown previously,running the command

% testparm

will yield the following output:

[username@perseus samba]$ testparm
Load smb config files from /etc//smb.conf
Processing section “[homes]”
Processing section “[public]”
Loaded services file OK.
Press enter to see a dump of your service definitions

Pressing Enter will dump your configuration in its entirety (notice the many extra
parameters that form the defaults for Samba).

Using the smbclientCommand to Test Samba Locally

The smbclientcommand can be used to access shares from remote machines running
the SMB/CIFS protocol. In this instance,you’ll connect from the Samba server to the
Samba server to make sure that the services are running correctly on the local machine.
As your test user account,from a shell prompt type the following command:

% smbclient //perseus/public

You’ll be asked for a password. Enter your UNIX password. The response from the
Samba server PERSEUSlogged in as user usernameyields the following:

[username@perseus local]$ smbclient //perseus/public
Added interface ip=192.168.100.2 bcast=192.168.100.255 nmask=255.255.255.0
Password:
Domain=[MYGROUP] OS=[Unix] Server=[Samba 2.0.6]
smb: \>

Try listing the files with the lscommand. You should get something similar to this:

smb: \> ls ~*

~SAM1dcd.tmp 0 Wed Nov 10 08:25:01 1999
~WRI1e85.tmp 0 Wed Nov 10 08:28:05 1999
~WRI1ed1.tmp 0 Wed Nov 10 08:29:21 1999
~WRI21b8.tmp 0 Wed Nov 10 08:41:44 1999
44197 blocks of size 65536.12486 blocks available

smb: \>

To exit,use the quitcommand.

Installing Samba

CHAPTER5

141

5

I

N
S
T
A
L
L
I
N
G

S

A
M
B
A

07 8628 CH05 3/17/00 1:09 PM Page 141

If you have a similar experience to what’s shown here,that means you have a working
Samba configuration and that your server is successfully sharing and connecting to CIFS
services. The next thing to do is check with a Windows machine.

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)//-->