Get Samba Running On Solaris

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

start)
        [ -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.
        /usr/sfw/sbin/nmbd -D

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

/etc/init.d/samba  start

7.Now access the solaris machine from your windows machine by using.

\\\\yoursolarismachinename\\specified directory in smb.conf in the []

 
 










 

Comments:

Not sure why it isn't there, but Sun should roll in real SMF manifests for Samba at some point, instead of forcing us to use google to find them...

see: http://forum.java.sun.com/thread.jspa?threadID=5106458

Posted by Michael Kennedy on September 19, 2007 at 08:49 PM PDT #

Yeah Michael you are correct even i faced the same problem and some how finally figured it out so i thought may be i should blog it so that it might be useful for others.

Posted by murali on September 19, 2007 at 09:03 PM PDT #

Murali,

It would make an interesting blog on how you 'somehow finally figure it out' :-) :-)

Any insights?

Posted by someone on September 21, 2007 at 12:58 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

murali529

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today