Gentoo Linuxでsambaサーバを構成してLinuxをWindowsと共有
2247 ワード
ホスト:Gentoo 11.2 with linux kernel 3.0.6
オリジナル作品、転載は出典http://blog.csdn.net/yming0221/article/details/7207846を明記してください
1、Sambaサーバーのインストール
デフォルトのUSEタグを使用してコマンドを直接実行
まずコピー/etc/samba/smb.conf.defaultそれから自分の必要に応じて修正します
修正後のsmb.confファイルは以下の通りです.
3、フォルダの作成
4、sambaサービスの再起動
5、Windowsの下で共有フォルダを読み書きできる
win 7の下のスクリーンショット
オリジナル作品、転載は出典http://blog.csdn.net/yming0221/article/details/7207846を明記してください
1、Sambaサーバーのインストール
デフォルトのUSEタグを使用してコマンドを直接実行
emerge samba
、構成/etc/samba/smb.conf まずコピー/etc/samba/smb.conf.defaultそれから自分の必要に応じて修正します
修正後のsmb.confファイルは以下の通りです.
#======================= Global Settings =====================================
[global]
guest account = nobody
netbios name = yan-laptop
workgroup = WORKGROUP
server string = Samba Server
security = share
load printers = no
log file = /var/log/samba/log.%m
max log size = 50
wins support = yes
dns proxy = no
create mode = 0777
force create mode = 0777
directory mode = 0777
force directory mode = 0777
[Share]
path = /home/samba
browseable = yes
guest ok = yes
writeable = yes
3、フォルダの作成
sudo mkdir /home/samba
chmod 777 /home/samba
4、sambaサービスの再起動
sudo /etc/init.d/samba restart

5、Windowsの下で共有フォルダを読み書きできる
win 7の下のスクリーンショット

