You are on page 1of 7

COURSE CODE: CAP423

COURSE NAME: Network Operating System - I


Homework No. 4

SUBMITTED TO
ABINASH BHAGAT

SUBMITTED BY
PRIYANKA SHARMA
ROLL NO RTB901A04
MSC( CS)

Part-A
1. Q)Give overview of samba server.
Ans) Samba-server provides a SMB server which can be used to
provide
network services to SMB (sometimes called \"Lan Manager\")
clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols
and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
protocol.

Samba-3.0 features working NT Domain Control capability and


includes the SWAT (Samba Web Administration Tool) that
allows samba\'s smb.conf file to be remotely managed using your
favourite web browser. For the time being this is being
enabled on TCP port 901 via xinetd. SWAT is now included in
it\'s own subpackage, samba-swat.

2) Discuss the various steps for Starting and Stopping the SAMBA
server.
Ans) To start a Samba server, type the following command in a shell
prompt while logged in as root:
/sbin/service smb start

To set up a domain member server, you must first join the domain or Active
Directory using the net join command before starting the smb service.

To stop the server, type the following command in a shell prompt while
logged in as root:

/sbin/service smb stop

The restart option is a quick way of stopping and then starting Samba. This
is the most reliable way to make configuration changes take effect after
editing the configuration file for Samba. Note that the restart option starts the
daemon even if it was not running originally.

To restart the server, type the following command in a shell prompt while
logged in as root:

/sbin/service smb restart


The condrestart (conditional restart) option only starts smb on the condition
that it is currently running. This option is useful for scripts, because it does
not start the daemon if it is not running.

3)Discuss the SAMBA configuration with SWAT.


Ans)Several shared directories or shared printers can be configured in
the smb.conf file. Remember that the Samba configuration file is
smb.conf, and should reside in the /usr/local/samba/lib
subdirectory. It can be somewhere else while pointing the appropriate
commands to this alternate directory.
A default smb.conf file is found in the source at samba-
3.0.1/simple/smb.conf. This place is a good starting
point. A complete description of the parameters for the smb.conf file
is in of the swat Samba
manual, which is located at
/usr/local/samba/swat/using_samba/ch06.html. A paper copy of any of
these
chapters can be created from any web browser that is displaying the
chapter by using the File|Print... menu,
or a text file can be created from the File|Save As... menu.
Copy the default Samba configuration file to the /usr/local/samba/lib
directory:
cp samba-3.0.1/simple/smb.conf /usr/local/samba/lib
swat
This directory contains all the swat files. The swat system is a system
where a web server is used to debug
the Samba configuration. The most important subdirectory is
/usr/local/samba/swat/using_samba, which
contains the definitive Samba user’s manual in HTML format for easy
browsing on the web (see Section 9,
“References,” number 7 and its note). Start a web browser at the
inx.html file to get a context-sensitive
manual. Information about using swat can be found by pointing the
browser to
file:///usr/local/samba/swat/help/SWAT.html. These files are also
available in the Samba source at
samba_3.01/docs/htmldocs/using_samba
Part-B

1Q)How we can Install DHCP Server and what are the Benefits of DHCP
servers.
Ans) To install DHCP Service:
1. Open the Control Panel and double-click Add/Remove
Programs.
2. Click Add/Remove Windows Components.
3. Highlight Networking Services and click Details.
4. Select Dynamic Host Configuration Protocol (DHCP) as
shown in Figure A and click OK.
5. Click Finish when prompted.

Figure A
Benefits of DHCP
Deploying DHCP on your enterprise network provides the following
benefits:
• Safe and reliable configuration. DHCP minimizes configuration errors
caused by manual IP address configuration, such as typographical
errors, as well as address conflicts caused by a currently assigned IP
address accidentally being reissued to another computer.
• Reduced network administration.
• TCP/IP configuration is centralized and automated.
• Network administrators can centrally define global and subnet-
specific TCP/IP configurations.
• Clients can be automatically assigned a full range of additional
TCP/IP configuration values by using DHCP options.
• Address changes for client configurations that must be updated
frequently, such as remote access clients that move around
constantly, can be made efficiently and automatically when the
client restarts in its new location.
• Most routers can forward DHCP configuration requests,
eliminating the requirement of setting up a DHCP server on every
subnet, unless there is another reason to

2 Q)How we can Configuring Windows 2000 Machine to Use a DHCP


Server.
Ans) installing DHCP on a Windows 2000 Server or Advanced Server is a
fairly simple process. During the installation, you might get prompted to
insert your Windows 2000 Server or Advanced Server CD (or locate the i386
folder on a local or network Configuring your DHCP server
After you install a DHCP server, go to Start | Programs | Administrative
Tools | DHCP to open the Windows 2000 console for managing the DHCP
service (see Figure B)
When setting up a DHCP server, the first thing you have to do is define a
scope. A scope is a list of valid IP addresses you want the DHCP server to be
able to assign to clients. When a machine requests TCP/IP information from
the DHCP server, the information is provided from the scope you created.

4 Discuss how we can create and Configuring SAMBA users.


Ans) mv /etc/samba/smb.conf /etc/samba/smb.conf.backup

Then open the configuration file with your favorite text editor (vim, nano,
emacs, gedit, kate)

vim /etc/samba/smb.conf

And write this:

[global]
workgroup = CHANGETHIS
server string = %h server
log file = /var/log/samba/log.%m
security = user
invalid users = root
load printers = no

[jffs]
comment = JFFS for DD-WRT
path = /mnt/jffs
browseable = no
valid users = jffsuser
read only = no

Now you have to restart samba serv

You might also like