Memo/Linux/Fedora core 5/samba3.0
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#contents
* samba 3.0 [#w5c6fff4]
**Unable to find the Domain Master Browser name [#j609c1fc]
# tail -f /var/log/messages
----
Unable to find the Domain Master Browser name ワークグル...
Unable to sync browse lists in this workgroup.
----
-ドメインマスターが見つからないと言っている模様。
# vi /etc/samba/smb.conf
----
local master = yes
domain master = yes
preferred master = auto
wins support = yes
os level = 20
----
# service smb restart
**Unable to connect to CUPS server [#n718053e]
-CUPSに依存しているようなので、共有プリンタを使用しなくて...
# tail -f /var/log/messages
----
Jun 27 20:24:25 tech-fsv smbd[7812]: [2007/06/27 20:24:2...
Jun 27 20:24:25 tech-fsv smbd[7812]: Unable to connect...
....
----
-CUPSの起動とsmbdの再起動
# chkconfig cups on
# service cups start
# service smb restart
**HDD増設 [#rc5c5e4a]
-300GBをSAMBA用 (内蔵3.5 IDE HDD)
-60GBをバックアップ用 (リムーバブルケース入り 3.5 IDE HDD)~
+現在の情報表示
# fdisk -l
Disk /dev/hda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/hda1 * 1 13 104391 83 ...
/dev/hda2 14 14946 119949322+ 8e ...
...
Disk /dev/hdb: 300.0 GB, 300090728448 bytes
...
Disk /dev/hdd: 61.4 GB, 61492838400 bytes
+領域確保
# fdisk /dev/hdb
# fdisk /dev/hdd
+フォーマット
# mkfs.ext3 /dev/hdb1
# mkfs.ext3 /dev/hdd1
+マウント
# mkdir /mnt/samba
# mkdir /mnt/backup
# mount -t ext3 /dev/hdb1 /mnt/samba
# mount -t ext3 /dev/hdd1 /mnt/backup
+fstabに追加
# vi /etc/fstab
---------------------
/dev/hdb1 /mnt/samba ext3 ...
/dev/hdd1 /mnt/backup ext3 ...
---------------------
**samba設定 [#k2d108cd]
-example-fsvはワークグループが設定してあるのみ。NTドメイ...
-example-fsvにアカウントがあるユーザのみ使用可能とする。\n
アカウントの統合。管理が楽。
-ユーザのhomeディレクトリは自動作成される
-publicフォルダで他のメンバのファイルが読み込める
-ゴミ箱機能
-WindowsはNetBIOSで名前解決をするので、NetBIOS名とIPアド...
# vi /etc/samba/lmhosts
--------------------------------------------
127.0.0.1 tech-fsv
192.168.0.9 example-fsv
--------------------------------------------
-設定ファイル(デフォルトからの変更点のみ記述)
# vi /etc/samba/smb.conf
--------------------------------------------
[global]
dos charset = CP932
unix charset = EUCJP-MS
display charset = EUCJP-MS
vfs objects = recycle
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=...
workgroup = example
server string =
security = server
load printers = no
disable spoolss = yes
password server = example-fsv
encrypt passwords = yes
local master = yes
wins support = yes
dns proxy = no
add user script = /usr/sbin/useradd -d /mnt/samba/home...
delete user script = /usr/sbin/userdel %u
[homes]
comment = Home Directories
browseable = no
writable = yes
recycle:repository = .recycle
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:maxsize = 0
recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~??
recycle:exclude_dir = /tmp|/cache
# recycle:noversions = *.doc *.xls *.ppt
[public]
comment = Public Stuff
path = /mnt/samba/home
writable = yes
printable = no
recycle:repository = .recycle/%u
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:maxsize = 0
recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~??
recycle:exclude_dir = /tmp|/cache
; recycle:noversions = *.doc *.xls *.ppt
; public = yes
; write list = @staff
--------------------------------------------
-共有用ごみ箱作成
# mkdir /mnt/samba/home/.recycle
# chmod 777 /mnt/samba/home/.recycle
-再起動
# chkconfig smb on
# service smb restart
**ごみ箱の中身を定期的に削除 [#de0374ed]
-1週間アクセスがなかったら、毎週日曜日の午前4時22分に自動...
-[[Samba 3.0のごみ箱の中身を定期的に削除するには>http://w...
# vi /etc/cron.weekly/samba_recyclewatch
------------------------------------
#!/bin/bash
samba_home="/mnt/samba/home"
delete_hours=168
for user in `/bin/ls $samba_home`
do
if [ -d "$samba_home/$user/.recycle" ]
then
/usr/sbin/tmpwatch -a -f $delete_hours "$samba_home/...
for D in `find "$samba_home/$user/.recycle" -type d ...
fi
done
/usr/sbin/tmpwatch -a -f $delete_hours "$samba_home/.rec...
for D in `find "$samba_home/.recycle" -type d | sort -r ...
------------------------------------
# chmod 755 /etc/cron.weekly/samba_recyclewatch
**Error writing 4 bytes to client. -1. [#i179f985]
~転送終了時に以下のエラーが/var/log/messageに記録されてい...
Error writing 4 bytes to client. -1.
-[[[samba-jp:15755] ログに記録されるエラーについて>http:/...
**リンク [#mc4bc412]
-[[Sambaの設定>http://www.rfs.jp/server/samba/01/03.html]]
-[[Samba が動作する Linux マシンを Windows ドメインに参加...
-[[Sambaの認証をWindowsに統合する>http://www.monyo.com/te...
終了行:
#contents
* samba 3.0 [#w5c6fff4]
**Unable to find the Domain Master Browser name [#j609c1fc]
# tail -f /var/log/messages
----
Unable to find the Domain Master Browser name ワークグル...
Unable to sync browse lists in this workgroup.
----
-ドメインマスターが見つからないと言っている模様。
# vi /etc/samba/smb.conf
----
local master = yes
domain master = yes
preferred master = auto
wins support = yes
os level = 20
----
# service smb restart
**Unable to connect to CUPS server [#n718053e]
-CUPSに依存しているようなので、共有プリンタを使用しなくて...
# tail -f /var/log/messages
----
Jun 27 20:24:25 tech-fsv smbd[7812]: [2007/06/27 20:24:2...
Jun 27 20:24:25 tech-fsv smbd[7812]: Unable to connect...
....
----
-CUPSの起動とsmbdの再起動
# chkconfig cups on
# service cups start
# service smb restart
**HDD増設 [#rc5c5e4a]
-300GBをSAMBA用 (内蔵3.5 IDE HDD)
-60GBをバックアップ用 (リムーバブルケース入り 3.5 IDE HDD)~
+現在の情報表示
# fdisk -l
Disk /dev/hda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/hda1 * 1 13 104391 83 ...
/dev/hda2 14 14946 119949322+ 8e ...
...
Disk /dev/hdb: 300.0 GB, 300090728448 bytes
...
Disk /dev/hdd: 61.4 GB, 61492838400 bytes
+領域確保
# fdisk /dev/hdb
# fdisk /dev/hdd
+フォーマット
# mkfs.ext3 /dev/hdb1
# mkfs.ext3 /dev/hdd1
+マウント
# mkdir /mnt/samba
# mkdir /mnt/backup
# mount -t ext3 /dev/hdb1 /mnt/samba
# mount -t ext3 /dev/hdd1 /mnt/backup
+fstabに追加
# vi /etc/fstab
---------------------
/dev/hdb1 /mnt/samba ext3 ...
/dev/hdd1 /mnt/backup ext3 ...
---------------------
**samba設定 [#k2d108cd]
-example-fsvはワークグループが設定してあるのみ。NTドメイ...
-example-fsvにアカウントがあるユーザのみ使用可能とする。\n
アカウントの統合。管理が楽。
-ユーザのhomeディレクトリは自動作成される
-publicフォルダで他のメンバのファイルが読み込める
-ゴミ箱機能
-WindowsはNetBIOSで名前解決をするので、NetBIOS名とIPアド...
# vi /etc/samba/lmhosts
--------------------------------------------
127.0.0.1 tech-fsv
192.168.0.9 example-fsv
--------------------------------------------
-設定ファイル(デフォルトからの変更点のみ記述)
# vi /etc/samba/smb.conf
--------------------------------------------
[global]
dos charset = CP932
unix charset = EUCJP-MS
display charset = EUCJP-MS
vfs objects = recycle
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=...
workgroup = example
server string =
security = server
load printers = no
disable spoolss = yes
password server = example-fsv
encrypt passwords = yes
local master = yes
wins support = yes
dns proxy = no
add user script = /usr/sbin/useradd -d /mnt/samba/home...
delete user script = /usr/sbin/userdel %u
[homes]
comment = Home Directories
browseable = no
writable = yes
recycle:repository = .recycle
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:maxsize = 0
recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~??
recycle:exclude_dir = /tmp|/cache
# recycle:noversions = *.doc *.xls *.ppt
[public]
comment = Public Stuff
path = /mnt/samba/home
writable = yes
printable = no
recycle:repository = .recycle/%u
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:maxsize = 0
recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~??
recycle:exclude_dir = /tmp|/cache
; recycle:noversions = *.doc *.xls *.ppt
; public = yes
; write list = @staff
--------------------------------------------
-共有用ごみ箱作成
# mkdir /mnt/samba/home/.recycle
# chmod 777 /mnt/samba/home/.recycle
-再起動
# chkconfig smb on
# service smb restart
**ごみ箱の中身を定期的に削除 [#de0374ed]
-1週間アクセスがなかったら、毎週日曜日の午前4時22分に自動...
-[[Samba 3.0のごみ箱の中身を定期的に削除するには>http://w...
# vi /etc/cron.weekly/samba_recyclewatch
------------------------------------
#!/bin/bash
samba_home="/mnt/samba/home"
delete_hours=168
for user in `/bin/ls $samba_home`
do
if [ -d "$samba_home/$user/.recycle" ]
then
/usr/sbin/tmpwatch -a -f $delete_hours "$samba_home/...
for D in `find "$samba_home/$user/.recycle" -type d ...
fi
done
/usr/sbin/tmpwatch -a -f $delete_hours "$samba_home/.rec...
for D in `find "$samba_home/.recycle" -type d | sort -r ...
------------------------------------
# chmod 755 /etc/cron.weekly/samba_recyclewatch
**Error writing 4 bytes to client. -1. [#i179f985]
~転送終了時に以下のエラーが/var/log/messageに記録されてい...
Error writing 4 bytes to client. -1.
-[[[samba-jp:15755] ログに記録されるエラーについて>http:/...
**リンク [#mc4bc412]
-[[Sambaの設定>http://www.rfs.jp/server/samba/01/03.html]]
-[[Samba が動作する Linux マシンを Windows ドメインに参加...
-[[Sambaの認証をWindowsに統合する>http://www.monyo.com/te...
ページ名: