samba on solaris

1.Make sure that /usr/sfw/bin and /usr/sfw/sbin are on the root user’s path.
2. Check your version of SAMBA installed:
/usr/sfw/sbin/smbd -V
Version 3.0.21b
3. By default, all files create by the windows server in the Solaris directories shared by SAMBA will be owned by user nobody. If you want to change this then you can force the ownership to another user. I created a user evault in group other for this purpose. Make sure that the user you choose has permission to write to the directories in the file systems that you are sharing with SAMBA. You can use the user root if you wish.
Create an entry in the SAMBA user database for the user with the below command:
smbpasswd -a username

4.Create the file /etc/sfw/smb.conf. Below is the /etc/sfw/smb.conf that I used. The SAM-FS file system was mounted as  and /share/Myshare and Myshare is the subdirectory I wanted to share.

    workgroup = MY
    server string = Samba Server
    log file = /var/samba/log/samba_log.%m
    security = SHARE/USER

hosts deny = ALL
hosts allow = 127.
; interfaces = eth1 lo

    comment = vaultstores
    path = /share/myshare
    force user = user
    public = yes
    browseable = yes
    writeable =yes
    valid users = users
    force group = other
    read only = No
    guest ok = Yes

Note that once the file /etc/sfw/smb.conf exists SAMBA will start automatically when the system boots.
5. You should check the syntax of /etc/sfw/smb.conf using the command testparm. Assuming that all is well you can start SAMBA.
/etc/init.d/samba start


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: