How to edit and add a new user or samba share in Solaris 10 ?

Today we will see how to edit a samba share in Solaris 10 and how to add/edit users in a samba share on Solaris 10 server.

Lets see how to do this in step by step process.

1. Check out the smb.conf configuration file.
In Solaris 10, the smb.conf file is located at different location /etc/sfw.

bash-3.2# cd /etc/sfw

bash-3.2# ls -ltr
total 780
drwxr-xr-x   2 root     bin          512 Jul 17  2009 mysql
drwxr-xr-x   4 root     sys          512 Jul 17  2009 openssl
drwxr-xr-x   2 root     bin          512 Jul 17  2009 ser
dr-x------   2 root     bin          512 Aug 26  2009 private
-rw-r--r--   1 root     root        3602 Nov 19  2009 smb.conf

 

2. Add the required share configuration in the file.
“valid users” contains the list of users who can access the samba share.
path is the share location on server and the share name is quoted in square brackets on top.

bash-3.2# tail -10 smb.conf
[ngeuser]
        comment = ngeuser
        path = /home/ngeuser
        valid users = ngeuser
        writable = yes
        create mask = 0755

~

3. Check out the samba service status on server.

bash-3.2# svcs -a | grep -i samba
online         Feb_08   svc:/network/samba:default

 

4. Now refresh the service to re-read the configuration file

bash-3.2# svcadm refresh svc:/network/samba:default
bash-3.2#

### Check out the status again if the service is online, and not in maintenance.
bash-3.2# svcs -a | grep -i samba
online         13:18:01 svc:/network/samba:default
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments