2015年5月25日 星期一

網樂通[wheezy] 建立samba

1.更新source.list , /etc/apt/source.list link

#/etc/apt/sources.list
deb [arch=all] http://debian.csie.nctu.edu.tw/debian/ wheezy main contrib non-free
deb-src http://debian.csie.nctu.edu.tw/debian/ wheezy main contrib non-free

deb [arch=all] http://debian.csie.ntu.edu.tw/debian/ wheezy main contrib non-free
deb-src http://debian.csie.ntu.edu.tw/debian/ wheezy main contrib non-free

deb [arch=sh4] http://download.si-linux.co.jp/debian-sh/wheezy-sh4/ wheezy main contrib non-free
deb-src http://download.si-linux.co.jp/debian-sh/wheezy-sh4/ wheezy main contrib non-free

deb http://ftp.yzu.edu.tw/Linux/debian-sh4-for-nextvod/ wheezy all




2.apt-get update

3.apt-get upgrade

4.裝入隨身碟

5.nano /etc/samba/smb.conf

6.移到最下面,新增以下文字

[wheezy]
path = /media/sdb1
public = yes
writable = yes
guest ok = yes
guest account = root
force user = root

7.service samba restart

8.enjoy it

註: 以上方式沒有設密碼,一般使用者皆可登入,使用上要小心。




沒有留言:

張貼留言