Wednesday, February 25, 2015

How to Enable and configure the Sama on Solaris Servers

 

1. root|@socsos>/usr/sfw/sbin/smbd -V
Version 3.0.28

2. Check is Samba is running.
root|@socsos> svcs -a | grep samba
disabled       Sep_20   svc:/network/samba:default

3. Enable samba.
root|@socsos> svcadm enable svc:/network/samba:default
root|@socsos> svcs -a | grep samba

4. /usr/sfw/bin/testparm

5. create /etc/sfw/smb.conf file
Add the following lines

[global]
        workgroup = <any name you like> For example AOCV4
    log file = /var/adm/samba/samba_log.%m
    security = SHARE
    smb passwd file = /etc/sfw/private/smbpasswd


6. For read access only
[share from OCSOSAP7]
path = /data/TMPVIS11/appl
comment = AOCv4 Samba Share
guest ok = Yes
read only = Yes


7. For read and write access only
[share from OCSOSAP7]
path = /data/TMPVIS11/comn/java
comment = AOCv4 Samba Share
force user = webuser
force group = web
read only = No
guest ok = Yes
create mask = 0755
directory mask = 0755

8. Verify folder permission and ownership
All file permission should 775
Check file ownership and change permissions if needed.

svcadm restart svc:/network/samba:default

No comments:

Post a Comment