Page 277 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 277
Unit 14: File Server
! notes
Caution When it rewrites the file, it wipes away all comments, so if you’re the kind of
sysadmin who likes to include documentation within configuration files, you’ll have a
reason to hate SWAT.
Here’s a list of SWAT’s other pages and the functions you can use:
1. Globals: Provides access to the global parameters (what else?) in smb.conf. You can work at
one of two levels: Basic, which shows only the more important options listed, or Advanced,
which shows every available parameter. Click on the corresponding buttons to pick your
desired level. You can click on the Help links to get specific help about each parameter.
After making any edits, click on Commit Changes to save your choices, or Reset Values to
go back to the original smb.conf values.
2. Shares: Lets you create, edit, or drop shares. To edit an existing share, pick it from the
combo box, then click on Choose Share; clicking on Delete Share will delete it. When you
add or edit a share, you can specify several parameters on either Basic or Advanced levels,
such as name, path, valid and invalid users, and read-only or writable. Remember to click
on Commit Changes (or Reset Values) before changing pages or your work will have been
in vain.
3. Printers: Similar to Shares, but works with printers instead.
4. Wizard: Lets you do a quick server configuration. You can pick either a standalone server,
a domain controller, or a domain member. You must also specify how the server will work
with Windows Internet Name Service (WINS) and whether you want to expose your home
directories. Click on “Rewrite smb.conf” or on Commit to save your values, and you will
have a basic Samba server running, which you can then further tweak using the other
options.
5. Status: Shows you which services are running: usually smbd (the Samba daemon itself)
and nmbd (the NetBIOS nameserver support daemon), and possibly Winbind (to allow
a Linux box to become a Windows domain member). You also get the listing of all active
connections (which you may kill, if you need to), active shares, and open files. You can
click on Auto Refresh so the page will refresh on its own every so many seconds (30 by
default).
6. View: Lets you view the current configuration file. You can click on the View button to see
it either in the normal view (minimalist, with only the nondefault attributes) or the full
view (with all possible parameters).
7. Password: Allows you to create, delete, enable, or disable local Samba users and change
passwords for a local or remote server.
Note Whether you’re just starting out with Samba or are an experimented sysadmin,
SWAT can you help you configure your box more easily through its graphical interface.
14.6 creating user accounts
Before the Samba server can be accessed across the network, access must be granted to users
and any shared resources which are going to be provided by the server. Essentially, for a user
to be granted access to the server they need to have a valid UNIX account and a separate Samba
password which is stored in the “smb password file”, so infact a users password for their UNIX
account may be different to their Samba account.
LoveLy professionaL university 271