Samba service for Linux Learning

Source: Internet
Author: User
The samba service for Linux learning-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Samba in linux is like sharing files and printers in windows, but samba is very secure, thanks to the linux User management mechanism. Let's not talk about it. Here is the learning diary:

1. Installation
Rpm-q samba # Check whether samba is installed

If it is not installed, add it to the second disc.

Mount/dev/cdrom # attach the optical drive

Rpm-ivh/media/cdrom/Fedora/RPMS/samba-3.0.xx-xx.i386.rpm # samba installed on the disc rpms, samba has a long file name, remember to use
Tab key

2. Shared Folders
For example, set the share directory. Its local path is/home/share.
Create users and passwords that can access Shared Folders for linux
Useradd wawa # Add User wawa
Passwd wawa # Set the password of the xxx user
Groupadd share # create a share group
Usermod-G share wawa # Add wawa to the share group
Mkdir/home/share # create a share directory
Chown: share/home/share # Set the share directory group to share
Chmod-c g + wxr/home/share # Set the share group to have read/write and execute permissions on the directory.
Smbpasswd-a wawa # Set smb User wawa (same as before)
Vi/etc/samba/smb. conf # edit smb. conf
Add the following content at the end of smb. conf, and then save and launch
[Share]
Comment = wawa's home
Write list = @ share
Path =/home/share

3. Start the samba service.
/Etc/rc. d/init. d/smb start

OK, so that the samba server is successfully set up!

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.