<body> Waiting For You... <body>
SAMBA
Tuesday, July 21, 2009

Configuration
To share out /tmp directory:
1. Find out localhost name
a. # hostname

2. Setup a flat smb.conf
a. #vi /opt/pware/lib/smb.conf --> (create if unavailable)
i. [global]
ii. workgroup = myworkgroup
iii. netbios name =
iv. security = SHARE
v.
vi. [data]
vii. comment = data
viii. path = /tmp
ix. read only = no
x. guest ok =yes
b. :wq

3. Test the smb.conf parameters
a. # /opt/pware/bin/testparm
b. You will see an output similar to your smb.conf, if different, go back and check the smb.conf

4. Start SAMBA Daemons (in order)
a. # /opt/pware/sbin/nmbd -D
b. # /opt/pware/sbin/smbd -D

5. Check smbclient on AIX
a. # /opt/pware/bin/smbclient -L (localhost)
b. You should see the AIX sharing details 
Mapping the AIX share to Windows
1. Ensure that both the windows client and the AIX SAMBA daemon are on the same workgroup
a. (see Configuration step 2.ii)
b. In this lab, it is

2. Ensure that both server and client is reachable Netbios name
a. # ping

3. Browsing the AIX server for network shares, using Windows Explorer
a. Run Windows Explorer
b. In the address bar, type
i. \\ (see step 2 above)
c. Right-click the /tmp and map to Drive Y:
d. Are you able to browse and read Drive Y: ? Y / N

4. Browsing the AIX server for network shares, using command line
a. Start  run  cmd
b. In the command prompt:
i. c:\>net use z: \\\tmp
ii. c:\>z:
iii. z:\> dir
c. List out the directory listings (if any)
________________________________________________________________________________________________________________________________________________________

Unmapping shares in windows

1. Unmap the shares using command line
a. Start  run  cmd
b. c:\>net use * /del /y

Stopping the SAMBA daemon
1. Identify the PID of both nmbd and smbd
a. # ps –ef | grep nmbd
i. What is the PID for nmbd? _____________
b. # ps –ef | grep smbd
i. What is the PID for smbd? _____________
c. # kill -9
d. # kill -9
2. What is the command(s) to check if the Daemons are still running?
______________________________________________________________________________________________________________________________________________________________________

Felt Totally Confused..... 12:30:00 PM