※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

編集 Top > samba3
samba3.0.25a
# cd /usr/ports/net/samba3
# make install clean
# vi /usr/local/etc/smb.conf
[global]
workgroup = workgroup
security = user
display charset = utf-8
unix charset = utf-8
dos charset = cp932
veto files = /.AppleDB/.AppleDesktop/.AppleDouble/.DS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/TheFindByContentFolder/.Trashes/._.Trashes/resource.frk/.snap/:2eDS_Store/.TemporaryItems/.recycle/
delete veto files = yes
map to guest = Bad User
[filebox]
path = /filebox
browseable = yes
writable = yes
guest ok = yes
create mask = 0777
directory mask = 0777
public = Yes
read only = No
writable = Yes

# mkdir /usr/filebox
# chmod 777 /usr/filebox
# ln -s /usr/filebox /filebox
# vi /etc/rc.conf
samba_enable="YES"

ドメイン
security = user
logon drive = h:
local master = yes
domain master = yes
domain logons = yes
preferred master = yes
admin users = administrator
logon home =
logon path =
logon script =
[homes]
comment = Home Directories
browseable = no
writable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
# adduser
PC名$
# smbpasswd -a -m PC名
# adduser
administrator
# smbpasswd -a administrator

システムのプロパティでプロファイルを弄る
若しくはregedit HLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\で
メールパスワード多分必要
win上でドメイン\adminをグループadministratorsに入れる。
DaSのパーミッションの確認

移動プロファイル
logon script = %m.bat
logon script = %U.bat
logon path = \\%L\Profiles\%U
[Profiles]
path = /usr/local/samba/profiles
browseable = no
guest ok = yes

shareとprivateの共存
[global]
security = user
map to guest = Bad User
[share]
browseable = yes
writable = yes
path = /share
guest ok = yes
[private]
browseable = yes
writable = yes
path = /private
valid users = user1,user2
そしてadduser・smbpasswd -a user1する
記憶したPWを消す
マイコンピュータ右クリックネットワークドライブの切断ドライブ名なしを切断}