Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Fedora 18 Samba 超簡單入門設定實例

以下設定已在 Fedora 18 Desktop 上測試成功,步驟相當精簡,適合快速上手。

安裝與建立使用者

yum install samba*

useradd smbusr
passwd smbusr
smbpasswd -a smbusr

編輯設定檔 /etc/smb.conf

[global]
    workgroup = MYGROUP
    server string = Samba Server Version %v
    log file = /var/log/samba/log.%m
    max log size = 50
    load printers = No
    idmap config * : backend = tdb
    cups options = raw

[homes]
    comment = Home Directories
    read only = No
    browseable = No

[printers]
    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    print ok = Yes
    browseable = No

[public]
    comment = Public Stuff
    path = /plans
    write list = +smbusr
    read only = No
    guest ok = Yes

調整 SELinux 並重啟服務

sestatus
setenforce 0        # 設為 permissive

service smb restart

完成後即可透過 Samba 分享目錄,享受跨平台檔案共享的便利。

Copyright © Linux教程網 All Rights Reserved