Get Samba Running On Solaris
By murali529 on Sep 19, 2007
Did you ever feel that it would be better if you can access your solaris drives on windows ? Then Samba is definitely the solution and with Solaris10 it has become very easy to get samba up and running.Here are the steps that you need to follow to get your samba up and running.
1.Samba comes pre-bundled with solaris10.
2.Go to /etc/init.d and see if you can find samba .If samba is present then you are done as you should just configure and get it running.
3.In /etc/sfw you will find a file smb.conf .You need to edit this file ,at the end of this file you will find the directories that you wish to expose with required permissions which you need to edit according to your choice.
[tmp] ------>This exposes the name as tmp so in windows you should access it as \\\\youmachinename\\tmp to access this directory
comment = Temporary file space
path = /tmp
read only = no --->This is added if you want your directory to be readonly.If you want it to be writable also use [writable = yes]
public = yes
4.now open the file /etc/init.d/samba and you will find
[ -f /etc/sfw/smb.conf ] || exit 0 --->This specifies the location where smb.conf file can be found
/usr/sfw/sbin/smbd -D --->This implies that /usr/sfw/sbin is the directory where smbd service is found.
so you will find a file smbpasswd in /usr/sfw/bin
5.You can add a user who should be able to access this samba service by using smbpassword which can be found as stated in the previous step by
smbpasswd -a Root
and then it will ask for password which you can give.
6.Now you are almost done so you can start using the service by starting samba using the command
7.Now access the solaris machine from your windows machine by using.
\\\\yoursolarismachinename\\specified directory in smb.conf in the