Carlos;
here is a basic guide line to setup samba, just download packages to go with your OS. I put this together after I started working with it. All packages are on the sunfreeware site.
1) Gather all packages needed for installation of Samba.
a. gcc-3.2.3-sol8-sparc-local.gz
b. libiconv-1.8-sol8-sparc-local.gz
c. ncurses-5.4-sol8-sparc-local.gz
d. popt-1.7-sol8-sparc-local.gz
e. readline-5.0-sol8-sparc-local.gz
f. samba-3.0.10-sol8-sparc-local.gz
2) Use the command gunzip to unzip the packages.
a. Example #gunzip gcc.3.2.3-sol8-sparc-local.gz
3) Use command pkgadd –d to add packages.
a. Example #pkgadd –d gcc.3.2.3-sol8-sparc-local
4) Create the smb configuration file
a. I set up something like this to begin with;
b. # cd /usr/local/samba/lib
c. # vi smb.conf
# Global parameters
netbios name = (your server name)
workgroup = (whatever you want)
security = share
hosts allow = 192.168.1., localhost, e4500,
name resolve order = hosts
[root]
path = /
comment = Solaris Root
guest ok = Yes
read only = Yes
[export]
path = /export
comment = Solaris share
guest ok = Yes
read only = No
5) Modify your system search path depending on you shell;
a. Edit your .profile or .login or .cshrc to have similar PATH and MANPATH entries.
b. vi .profile
PATH=/usr/sbin:/usr/bin:/usr/ucb:/etc:/usr/local/bin:/usr/ccs/bin:/usr/local/samba/bin:.
export PATH
MANPATH=/usr/sbin:/usr/man:/usr/local/man:/usr/local/samba/man:.
export MANPATH
6) Check to see if the configuration is alright
a. #cd /usr/local/samba/bin
b. #testparm <return>
c. you should get output similar to the following;
Load smb config files from /usr/local/samba/lib/smb.conf
Processing section “[root]”
Processing section “[export]”
Loaded services file OK.
Press enter to see a dump of your service definitions
7) Arrange for inetd to start the Samba daemons:
Most of Samba's services are provided by means of three servers or daemons: smbd is the Samba server, nmbd is the NetBIOS name server and swat is a Web-based Samba configuration tool. These deal with incoming connections on ports 137, 139 and 901 respectively and we need to tell the Solaris internet daemon, inetd, to start the appropriate Samba daemons whenever an incoming request is received on these ports.
a. Edit /etc/services and make the following changes if necessary. The lines should already be in there
Immediately after the line which reads:
sunrpc 111/tcp rpcbind
insert the two lines:
netbios-ns 137/udp # Samba nmbd
netbios-ssn 139/tcp # Samba smbd
and, after the line which reads:
ldaps 636/udp # LDAP protocol over TLS/SSL (was sldap)
insert the line:
swat 901/tcp # Samba swat
b. Now edit /etc/inetd.conf and add the following three lines to the end of the file:
netbios-ssn stream tcp nowait root /usr/local/samba/sbin/smbd smbd
netbios-ns dgram udp wait root /usr/local/samba/sbin/nmbd nmbd
swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat
Tell the inetd daemon to re-read its configuration file:
# pkill -HUP inetd
and Samba is installed and working.
8) You must edit /etc/dfs/dfstab and add your entries for your share, it should look similar to this
a. Ex. #vi /etc/dfs/dfstab
share –F nfs –o rw /export
9) You must start the nfs server daemon;
a. /etc/init.d/nfs.server start
10) Try to listen for your shares;
a. smbclient –L (servername)
b. This should give you a list of you shares
11) Try connecting with unix
a. Smbclient //servername/aservice
b. Aservice is = to your share so ex. is #smbclient //e4500/export
12) Try connecting from your windows client;
a. Net use (driveletter): \\servername\service
b. Ex. c:\WINDOWS\>net use m: \\e4500\export <enter>
c. It will tell you if it completed.
13) Try starting swat:
a. Open browser put
b. Or
once you get it setup you can tweek to your likeing
DNS is not that hard either.
Thanks
CA