SMB shared file server in LINUX (movie)

Source: Internet
Author: User
SMB shared file server (movie) in LINUX-Linux Enterprise Application-Linux server application information. For details, see the following. After installing Red Hat9.0

Cd/go to the root directory

Create a folder D

Run mkdir d.

Create user

Useradd gowl

Make D files belong to gowl and can be viewed with ls-l

Chown-R gowl: gowl d

Edit smb script

Back up the original script

Cd/etc/samba/

Cp smb. conf smb. confbak
.
Rm smb. conf Delete the original

Create a vi smb. conf file

Put the script in !!!
SMB script:

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

Workgroup = MOVIE
Server string = Samba Server
Security = share
Encrypt passwords = yes
Smb passwd file =/etc/samba/smbpasswd
Socket options = TCP_NODELAY SO_RCVBUF = 32768 SO_SNDBUF = 32768
OS level = 30
Read size = 775
Null passwords = yes
Protocol = NT1
Bind interfaces only = yes
Host msdfs = yes
Directory mode = 775
Map to guest = Bad Password
Stat cache size = 128
Getwd cache = yes

; Hosts allow = 192.168.1. 192.168.2. 127
; Wins support = yes
; Wins server = w. x. y. z
; Wins proxy = yes
#============================ Share Definitions ========== ==================================
; [Homes]
; Comment = Home Directories
; Browseable = no
; Writable = yes
; Valid users = % S
; Create method = 0664
; Directory mode = 0775
[Files]
Path =/d/movie
Msdfs root = yes
Read list = nobody
Valid users = nobody, @ nobody
Writeable = yes
Public = yes
Write list = gowl

[Newmov]
Path =/d
Read list = gowl
Valid users = gowl, @ gowl
Writeable = yes
Public = no
Write list = gowl
# [Guest]
# Path =/d/guest
# Read list = nobody
# Valid users = gowl, @ gowl
# Writeable = yes
# Public = no
# Write list = gowl


Back to cd/d

Create a folder named mkdir movie

Change the permission to chown-R gowl: gowl movie.
Restart service smb restart

Modify smb User Password smbpasswd-a gowl

Restart the service smb restart

Then set the startup smb in setup.
This completes the production of an SMB movie server, which is simple, convenient, and easy to use !!!!!!
Run \ movie directly during access. A super user logs in with the gowl user created by me.

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.