The SAMBA service is successfully configured in Fedora8.

Source: Internet
Author: User
Recently, FedoraCore8 has been completely installed. Although we have cute rz/sz commands available, file sharing like Windows is more convenient, and we have to admire Windows. At the same time, I also need to share my files with my colleagues, so I decided to use SAMBA to configure my shared service. 1. Use the yum command to install or update your SAMBA package. Modify the configuration file of yuminstallsamba2 and samba in the following/etc/samba/smb. conf file.

Recently, Fedora Core8 has been installed completely. Although we have the cute rz/sz command available, file sharing like Windows is more convenient, and we have to admire Windows. At the same time, I also need to share my files with my colleagues, so I decided to use SAMBA to configure my shared service.

1. Use the yum command to install or update your SAMBA package.
Yum install samba
2. the samba configuration file is as follows:
/Etc/samba/smb. conf
Modify the configuration as follows:

#====================================== Global Settings ==================== ======================================
[Global]

# ----------------------- Netwrok Related Options -------------------------
#
# Workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# Server string is the equivalent of the NT Description field
#
# Netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# You want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# Specifiy it as a per share option as well
#
Workgroup = robin
Server string = MYSERVER

Netbios name = MYSERVER

; Hosts allow = 127. 192.168.

# --------------------------- Logging Options -----------------------------
#
# Log File let you specify where to put logs and how to split them up.
#
# Max Log Size let you specify the max size log files shocould reach

# Logs split per machine
Log file =/var/log/samba/log. % m
# Max 50KB per log file, then rotate
Max log size = 50

# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share (deprecated) or server (deprecated)
#
# Backend to store user information in. New installations shold
# Use either tdbsam or ldapsam. smbpasswd is available for backwards
# Compatibility. tdbsam requires no further configuration.

Security = share
; Encrypt passwords = yes
Guest OK = yes
Guest account = root

 


#============================ Share Definitions ========== ==================================

[Homes]
Comment = Home Directories
Browseable = no
Writable = yes
; Valid users = % S
; Valid users = MYDOMAIN \ % S

[Printers]
Comment = All Printers
Path =/var/spool/samba
Browseable = no
; Guest OK = no
; Writable = No
Printable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [Netlogon]
; Comment = Network Logon Service
; Path =/var/lib/samba/netlogon
; Guest OK = yes
; Writable = no
; Share modes = no


# Un-comment the following to provide a specific roving profile share
# The default is to use the user's home directory
; [Profiles]
; Path =/var/lib/samba/profiles
; Browseable = no
; Guest OK = yes


# A publicly accessible directory, but read only, cannot t for people in
# The "staff" group
; [Public]
; Comment = Public Stuff
; Path =/home/samba
; Public = yes
; Writable = yes
; Printable = no
; Write list = + staff

[Temp]
Path =/root/temp
Writeable = yes
; Browseable = yes
Guest OK = yes


3. Restart the SAMBA service.
/Etc/init. d/smb restart

4. Enjoy

PS: Fedora Core is pre-installed with SELinux from V2. If this parameter is not configured, disable SELinux first. The method to disable SELinux is as follows:

Modify selinux = "" in the/etc/SELINUX/config file to disabled, and then restart FC.

Author: Robin from: http://www.blogjava.net/fastzch/

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.