Simple samba Configuration

Source: Internet
Author: User
Simple configuration of samba-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Samba configurations are occasionally used. The following configuration method is suitable for temporary file sharing. Security issues have not been carefully considered.

First, share level, share/home/usr/share
Vi/etc/smb. conf
[Global] Section
Change security = share
Add a shared segment
[Share]
Path =/home/user/share
Public = yes
Browseable = yes
Netconf
Set Host Name

Service smb restart.

Second, user-level sharing:
[Global] Section
Change security = user
Cancel encrypt passwords = yes
Smb passwd file =/etc/smbpasswd
Annotations

Cat/etc/passwd | mksmbpasswd. sh>/etc/smbpasswd
Import the system account to the Samba account Library

Smbpasswd-U root
Set the password of the root user in smbuser, which is equivalent to the admin and administrator users.

Service smb restart.
Then, on a windows Device, follow the \ IP address \ share sharing steps. Use admin or administrator as the user name, and use the password you just set.

Of course, you can also set the root account to an empty password:
Procedure
Add null passwords = yes in [global]
Then execute smbpasswd-U root-n # Set the root password to null

The above considerations are applicable to temporary file sharing.

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.