LoginSignup
0
1

More than 5 years have passed since last update.

debian8のsamba4でport445をlistenしない場合

Last updated at Posted at 2017-01-24
  • proxmox 4.4 + samba 4.2.14+dfsg-0+deb8u2 にて確認。
apt install -y samba

OS起動直後はport445をlistenする。
service samba restartservice smbd restartをするとlistenしない。
エラー出力されていない?testparmもエラー無し

sudo /usr/sbin/smbdを実行したらport 445をlistenしました。
一応やりたいことはできた。

サンプル設定

/etc/samba/smb.conf
[global]
    server role = standalone server
    map to guest = Bad User
    obey pam restrictions = Yes
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    unix password sync = Yes
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    dns proxy = No
    usershare allow guests = Yes
    panic action = /usr/share/samba/panic-action %d
    idmap config * : backend = tdb


[homes]
    comment = Home Directories
    valid users = %S
    create mask = 0700
    directory mask = 0700
    browseable = No


[mnt]
    path = /mnt/
    guest ok = Yes
    writable = Yes
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1