Ubuntu1604 Samba 安裝

8 五月

root@ubuntu1604:~# apt-get install samba
正在讀取套件清單… 完成
正在重建相依關係
正在讀取狀態資料… 完成
The following additional packages will be installed:
attr libaio1 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libfile-copy-recursive-perl libldb1 libpython-stdlib libpython2.7 libpython2.7-minimal
libpython2.7-stdlib libtalloc2 libtdb1 libtevent0 libwbclient0 python python-crypto python-dnspython python-ldb python-minimal python-samba python-talloc python-tdb python2.7
python2.7-minimal samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools update-inetd
建議套件:
cups-common python-doc python-tk python-crypto-dbg python-crypto-doc python2.7-doc binutils binfmt-support bind9 bind9utils ctdb ldb-tools ntp smbldap-tools winbind
heimdal-clients
下列【新】套件將會被安裝:
attr libaio1 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libfile-copy-recursive-perl libldb1 libpython-stdlib libpython2.7 libpython2.7-minimal
libpython2.7-stdlib libtalloc2 libtdb1 libtevent0 libwbclient0 python python-crypto python-dnspython python-ldb python-minimal python-samba python-talloc python-tdb python2.7
python2.7-minimal samba samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools update-inetd
升級 0 個,新安裝 34 個,移除 0 個,有 3 個未被升級。
需要下載 14.1 MB 的套件檔。
此操作完成之後,會多佔用 70.4 MB 的磁碟空間。
Do you want to continue? [Y/n]

 

vi /etc/samba/smb.conf
在最後加入

[share]
comment= My Ubuntu Files Server
path= /srv/samba/share
browsable= yes
guest ok= yes
read only= no
create mask= 0700

 

mkdir -p /srv/samba/share
chown nobody.nogroup /srv/samba/share/

service smbd restart

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *