IT运维工程师、律师 IT相关技术支持、法律咨询
分类: LINUX
2008-07-18 10:24:16
[root@chang samba]# groupadd vip
[root@chang samba]# groupadd pub
[root@chang samba]# groupadd admin
[root@chang samba]# useradd vip -g vip
[root@chang samba]# useradd pub -g pub
[root@chang samba]# useradd admin -g admin
[root@chang samba]# mkdir -p /home/share/vip
[root@chang samba]# mkdir -p /home/share/pub
[root@chang samba]# mkdir -p /home/share/admin
[root@chang samba]# chmod 777 -R /home/share
[root@chang samba]# smbpasswd -a vip
New SMB password:
Retype new SMB password:
Added user vip.
[root@chang samba]# smbpasswd -a admin
New SMB password:
Retype new SMB password:
Added user admin.
[root@chang samba]# smbpasswd -a pub
New SMB password:
Retype new SMB password:
Added user pub.
smb.conf
---------------------
[vip]
comment = vip directory
path = /home/share/vip
public = no
write list = @vip,@admin
valid users = @vip,@admin
[public]
comment = public directory
path = /home/share/pub
public = no
write list = @pub,@admin
valid users = @pub,@admin
[admin]
comment = share admin directory
path = /home/share
public = no
write list = @admin
valid users = @admin
---------------------