Configure the samba service on solaris10

Source: Internet
Author: User

From: http://www.oschina.net/question/12_8213

Solaris10 has included Samba during system installation. You only need simple configuration to become a Samba server. Solaris10 comes with Samba, but the samba service is not started by default.
Bash-3.00 # SVCs-A | grep samba
Disabled sep_16 svc:/Network/samba: Default

Step 1: Configure smb. conf
The Samba configuration file is smb. conf, which should be placed in the/etc/SFW/directory by default,
By default, the/etc/SFW/directory contains a file named smb. conf-example,
This file is a configuration example provided by the Solaris system.
Bash-3.00 # cp/etc/SFW/smb. conf-example/etc/SFW/smb. conf
Step 2: configure the no-User Authentication Mode for Samba
(1) create a shared directory
# Mkdir-M 777-P/export/home/smbshare
# Touch/export/home/smbshare/test.txt
(Used to test Samba)
(2) edit the/etc/SFW/smb. conf file
Change SECURITY = user to Security = Share
(Connection mode. Share is shared mode and does not require user verification. User and server authentication is required)
Modify shared file path information

Replace original information
#======= Share definitions ==============
[Homes]
Comment = Home Directories
Browseable = No
Writable = Yes

Change
#===== Share definitions ==================
[Homes]
Comment = Home Directories
Browseable = Yes
Writable = Yes
Path =/expore/home/smbshare # shared directory path
Guest OK = Yes

Note:
[Global] This section is a global configuration and is required. There are the following rows;

Workgroup is the working group displayed in windows;
NetBIOS name is the name of the computer displayed in windows;
Server String is the description of the Samba server, which can be defined by yourself. This is not important;
Security is the authentication and login method. Here we use share. There are many authentication methods, one of which is also commonly used as the user authentication method. If share is used, you do not need to set the user and password;

(3) Check Samba configurations
Bash-3.00 # testparm
Load SMB config files from/etc/SFW/smb. conf
Processing Section "[homes]"
Processing Section "[printers]"
Loaded services file OK.
Server role: role_standalone
Press enter to see a dump of your service Definitions

[Global]
Workgroup = mygroup
Server String = Samba Server
Security = Share
Log File =/var/samba/log. % m
Max log size = 50
DNS proxy = No

[Homes]
Comment = Home Directories
Path =/export/home/smbshare
Read Only = No
Guest OK = Yes

[Printers]
Comment = all printers
Path =/var/spool/samba
Printable = Yes
Browseable = No
Bash-3.00 # smbclient-l pae-t2000-1
Password:
Domain = [mygroup] OS = [UNIX] Server = [Samba 3.0.35]

Sharename type comment
--------------------
Homes disk Home Directories
IPC $ IPC Service (Samba server)
Domain = [mygroup] OS = [UNIX] Server = [Samba 3.0.35]

Server comment
----------------

Workgroup master
----------------

(4) restart the samba Service
Bash-3.00 # svcadm restart samba
Bash-3.00 # SVCs | grep samba
Online 9:52:22 svc:/Network/samba: Default
Bash-3.00 # ps-Ef | grep SMB
Root 1534 1447 0 09:56:03 pts/1 grep SMB
Root 1525 1524 0 09:52:23? 0: 00/usr/SFW/sbin/smbd-d
Root 1524 1 0 09:52:22? 0: 00/usr/SFW/sbin/smbd-d

(5) use an IP address on Windows to access Solaris

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.