LINUX下的电影服务器

安装好Red Hat9.0之后
cd / 转到根目录
建立文件夹 D
输入命令:mkdir d
创建用户
useradd gowl
使D文件属于gowl 可用 用ls -l 查看
chown -R gowl:gowl d
编辑smb脚本
先备份原来脚本
cd /etc/samba/
cp smb.conf smb.confbak
.
rm smb.conf 删除原来的
vi smb.conf 新建一个
接着把脚本放进去!!!
SMB脚本:
#======================= 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 mode = 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
回到cd /d 下面
建立文件夹 mkdir movie
把权限一改 chown -R gowl:gowl movie
重新启动服务 service smb restart
修改smb用户密码 smbpasswd -a gowl
在重新启动服务 service smb restart
然后在setup里边设置开机启动smb
就这样完成了一个SMB电影服务器制作,简单方便,好用!!!!!!
访问时候直接运行\\\\movie就可以了,超级用户就是用我所创建的gowl用户登陆

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwwpgd.html