How to quickly configure samba In debian

Source: Internet
Author: User
How to quickly configure samba-Linux Release Technology-debian information In Debian is as follows. 1. mkdir "share fold name"
2. groupadd "group name". I create "pd1 and pd2" groups respectively.
3. adduser "username" to create a samba user
4. vim/etc/samba/smb. conf
Bytes ---------------------------------------------------------------------------------------------------
[Global]
Workgroup = WORKGROUP
Map to guest = Bad User
Username map =/etc/samba/smbusers
Log file =/var/log/samba/% m. log
Name resolve order = bcast host lmhosts wins
Max log size = 0
Time server = Yes
Deadtime = 5
Socket options = TCP_NODELAY SO_RCVBUF = 8192 SO_SNDBUF = 8192
Printcap name = cups
Logon drive = P:
OS level = 0
Domain master = No
Wins server = eth0: 192.168.5.99, eth0: 192.168.200.4
Read only = No
Create mask = 0770
Directory mask = 0775
Cups options = raw
Include =/etc/samba/dhcp. conf

[Homes]
Comment = Home Directories
Valid users = % S, % D % w % S
Inherit acls = Yes
Browseable = No

[Pd1]
Comment = pd1
Path =/pd1
Create mask = 0775

[Pd2]
Comment = pd2
Path =/pd2
Create mask = 0775
[Software]
Comment = software
Path =/software
Create mask = 0777

5. chmod g + w pd1
6. chmod g + w pd2
7. smbpasswd-a pd1 (set a password for samba Users)
8./etc/init. d/samba restart (restart the samba Service)
Related Article

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.