Misc/Sambaサーバー構築

2017-06-14 (水) 06:49:17 (1114d)

インストール

# apt-get install samba

ユーザー追加

# /usr/bin/smbpasswd -a ユーザー名

または

# pdbedit -a -u ユーザー名

設定ファイル作成

  • /etc/samba/smb.conf
[global]

   unix charset = eucJP-ms
   dos charset = cp932
   display charset = eucJP-ms

   workgroup = JP_WG
   server string = Samba %v on %h

   hosts allow = 192.168.1. 127.

   log file = /var/log/samba/%m.log
   max log size = 50

   security = user
   encrypt passwords = Yes
   username map = /etc/samba/smbusers
   # smbpasswdによるUNIXパスワードとsambaパスワードの同期
   unix password sync = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*password* %n\n *ReType*new*password* %n\n 
   *passwd:*all*authentication*tokens*updated*successfully *
   #改行されているが上二行は一行

   # Windows側の仕様で遅くなるのを防ぐためのパラメータ設定
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

   dns proxy = No

[homes]
   comment = %U's Home Directory
   read only = No
   browseable = No
   force create mode = 744
   force directory mode =744

[storage]
   path = /home/storage
   read only = No
   browseable = Yes
   force user = storage
   force group = storage
   force create mode = 744
   force directory mode =744
  • /etc/samba/smbusers
# Unix_name = SMB_name1 SMB_name2 ...
#root = administrator admin
#nobody = guest pcguest smbguest
UNIXユーザー名=Windowsログイン名

日本語ユーザー名の場合EUCで保存すること

# nkf -e smbusers > smbusers.euc
# mv smbusers.euc smbusers

Samba再起動

# /etc/init.d/smb restart

自動起動設定

# cd /etc/rc3.d
# ln -s ../init.d/smb S85smb
# cd /etc/rc5.d
# ln -s ../init.d/smb S85smb

参考サイト


URL:
コメント:

*1 , http://www.recessioncrusher.com/profiles/blogs/iron-man-download-movie-hd IRON MAN Trailer Mp4 Download, 3173, http://www.recessioncrusher.com/profiles/blogs/avatar-download-movie-hd Pre Buy AVATAR Movie, =
*2 , <a href="http://pulse.yahoo.com/_5YUQUYZ3NXIAUGLVD5C7X5KLMI/blog/articles/200872">ERECTALIS Wholesale Prices</a>, [url="http://pulse.yahoo.com/_5YUQUYZ3NXIAUGLVD5C7X5KLMI/blog/articles/200872"]ERECTALIS Wholesale Prices[/url], http://pulse.yahoo.com/_5YUQUYZ3NXIAUGLVD5C7X5KLMI/blog/articles/200872 ERECTALIS Wholesale Prices, mwlitb, <a href="http://pulse.yahoo.com/_PDHBKHACPHR3UC6HELZKIMRYJI/blog/articles/196305">Compare Dosage SILAGRA And</a>, [url="http://pulse.yahoo.com/_PDHBKHACPHR3UC6HELZKIMRYJI/blog/articles/196305"]Compare Dosage SILAGRA And[/url], http://pulse.yahoo.com/_PDHBKHACPHR3UC6HELZKIMRYJI/blog/articles/196305 Compare Dosage SILAGRA And, bhwzmj, <a href="http://pulse.yahoo.com/_TURRX2526LYT6UKD7ZON6YR4H4/blog/articles/193792">Buy Brand Name VIGORA</a>, [url="http://pulse.yahoo.com/_TURRX2526LYT6UKD7ZON6YR4H4/blog/articles/193792"]Buy Brand Name VIGORA[/url], http://pulse.yahoo.com/_TURRX2526LYT6UKD7ZON6YR4H4/blog/articles/193792 Buy Brand Name VIGORA, 1772, <a href="http://pulse.yahoo.com/_5YUQUYZ3NXIAUGLVD5C7X5KLMI/blog/articles/200868">Where To Buy CAVERTA</a>, [url="http://pulse.yahoo.com/_5YUQUYZ3NXIAUGLVD5C7X5KLMI/blog/articles/200868"]Where To Buy CAVERTA[/url], http://pulse.yahoo.com/_5YUQUYZ3NXIAUGLVD5C7X5KLMI/blog/articles/200868 Where To Buy CAVERTA, >:-
*3 <a href=" http://www.recycledart.com/classifieds/user/1363252015 ">preteen lolitas photos</a> 0213 <a href=" http://www.recycledart.com/classifieds/user/1896991469 ">lolita love galleries</a> 142 <a href=" http://www.recycledart.com/classifieds/user/1240252554 ">nymphets small lolita</a> %-]] <a href=" http://www.recycledart.com/classifieds/user/857728992 ">lollita toons</a> :-
*4 ( <a href=" http://www.recycledart.com/classifieds/user/1627406215 ">nude preteen lola foto</a> xgpcq <a href=" http://www.recycledart.com/classifieds/user/1254010024 ">loli image portals</a> :OOO <a href=" http://www.recycledart.com/classifieds/user/299338262 ">young angels loli</a> smnf <a href=" http://www.recycledart.com/classifieds/user/21211304