# PATH=/usr/local/samba/bin:$PATH
# cd source
# ./setup/provision --realm=OSSTECH1.CO.JP --domain=OSSTECH1 --adminpass=secret
/usr/local/samba/etc/smb.confの作成
[global]
netbios name = SAMBA4
workgroup = OSSTECH
realm = OSSTECH.CO.JP
server role = pdc
[test]
path = /opt/test1
read only = no
testparmによるパラメータ確認
# /usr/local/samba/bin/testparm
smbdの起動
# /usr/local/samba/sbin/smbd
ユーザの追加
# PATH=/usr/local/samba/bin:$PATH
# cd source/setup
# ./newuser --username yasuma --password secret
smbclientによる確認
$ /usr/bin/smbclient //localhost/test -Uyasuma
0 件のコメント:
コメントを投稿