openwrt:install-samba
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
openwrt:install-samba [2013/03/23 16:32] – [アクセスするユーザの追加] admin | openwrt:install-samba [2013/11/21 15:04] (現在) – [起動] admin | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Samba のインストール ====== | ====== Samba のインストール ====== | ||
- | * OpenWrt: ATTITUDE ADJUSTMENT (12.09-rc1, r34185) | + | * OpenWrt: ATTITUDE ADJUSTMENT (12.09, |
- [[http:// | - [[http:// | ||
- | |||
===== パッケージをインストール ===== | ===== パッケージをインストール ===== | ||
行 16: | 行 15: | ||
# opkg update | # opkg update | ||
# opkg list | grep samba | # opkg list | grep samba | ||
- | luci-app-samba - 0.11+svn9425-1 - Network Shares - Samba SMB/CIFS module | + | luci-app-samba - 0.11.1-1 - Network Shares - Samba SMB/CIFS module |
- | samba36-client - 3.6.5-2 - Samba 3.6 SMB/CIFS client | + | samba36-client - 3.6.5-3 - Samba 3.6 SMB/CIFS client |
- | samba36-server - 3.6.5-2 - The Samba software suite is a collection of programs that implements the | + | samba36-server - 3.6.5-3 - The Samba software suite is a collection of programs that implements the SMB protocol for UNIX systems, allowing you to serve files and printers to Windows, NT, OS/2 and DOS clients. This protocol is sometimes also referred to as the LanManager or Netbios protocol. |
</ | </ | ||
行 25: | 行 24: | ||
< | < | ||
# opkg install samba36-server luci-app-samba | # opkg install samba36-server luci-app-samba | ||
- | Installing samba36-server (3.6.5-2) to root... | + | Installing samba36-server (3.6.5-3) to root... |
- | Downloading http:// | + | Downloading http:// |
- | Installing luci-app-samba (0.11+svn9425-1) to root... | + | Installing luci-app-samba (0.11.1-1) to root... |
- | Downloading http:// | + | Downloading http:// |
Configuring samba36-server. | Configuring samba36-server. | ||
Configuring luci-app-samba. | Configuring luci-app-samba. | ||
+ | </ | ||
+ | |||
+ | Samba を起動時に自動起動するように設定。 | ||
+ | |||
+ | < | ||
+ | # / | ||
+ | </ | ||
+ | |||
+ | Samba を起動。 | ||
+ | |||
+ | < | ||
+ | # / | ||
</ | </ | ||
行 46: | 行 57: | ||
< | < | ||
- | username: | + | username: |
</ | </ | ||
行 52: | 行 63: | ||
^ * | ' | ^ * | ' | ||
^ 1000 | ユーザーID。1000 以上の既に使用されていない数値を選ぶ。 | | ^ 1000 | ユーザーID。1000 以上の既に使用されていない数値を選ぶ。 | | ||
- | ^ 65534 | グループID。ログインしないので、nobody と同じグループ | + | ^ 100 | グループID。users グループに所属させる。 | |
^ SambaUser | コメント。氏名や部署名等。| | ^ SambaUser | コメント。氏名や部署名等。| | ||
^ /var | ホームディレクトリを指定。ログインしないので、 /var を指定。 | | ^ /var | ホームディレクトリを指定。ログインしないので、 /var を指定。 | | ||
^ /bin/false | ユーザーのログインシェル。ログインしないので、 /bin/false を指定。 | | ^ /bin/false | ユーザーのログインシェル。ログインしないので、 /bin/false を指定。 | | ||
+ | |||
+ | |||
+ | users グループに追加する。 | ||
+ | |||
+ | < | ||
+ | # vi / | ||
+ | </ | ||
+ | < | ||
+ | root:x:0: | ||
+ | daemon:x:1: | ||
+ | adm:x:4: | ||
+ | mail:x:8: | ||
+ | audio:x:29: | ||
+ | www-data: | ||
+ | ftp:x:55: | ||
+ | users: | ||
+ | network: | ||
+ | nogroup: | ||
+ | </ | ||
行 62: | 行 92: | ||
< | < | ||
# smbpasswd -a username | # smbpasswd -a username | ||
- | Failed to open / | + | New SMB password: |
+ | Retype SMB password: | ||
</ | </ | ||
- | あれ〜?エラーが出る。パスワードファイルが無いみたいだけど、一回も起動したことがないから? | ||
- | |||
- | ではとりあえず一回起動してみるか。 | ||
- | とりえあず | + | 次は |
< | < | ||
行 92: | 行 120: | ||
- | Samba 起動。 | + | Samba に設定ファイルを再読み込みさせる。 |
< | < | ||
- | # / | + | # / |
</ | </ | ||
- | < | ||
- | # smbpasswd -a username | ||
- | New SMB password: | ||
- | Retype SMB password: | ||
- | </ | ||
- | 今度はパスワードの設定ができた。 | + | |
===== 設定 ===== | ===== 設定 ===== | ||
openwrt/install-samba.1364023951.txt.gz · 最終更新: 2013/03/23 16:32 by admin