お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2016-04-22 15:03:45

light
メンバ
登録日: 2009-07-25

sambaが起動しなくなりました。

いつもご助言ありがとうございます。

Ubuntu 14.04にてSambaを使用しホームサーバーとして利用していました。
先日VPNをインストールしようとして試行錯誤してからSambaに接続できなくなり、どうやらsmbdが動いていない様子です。

以下に自分なりに調べてみた結果を記述します。
ufwを切る→変化なし
SSH接続可

コード:

$ sudo /etc/init.d/samba status 
 * nmbd is running
 * smbd is not running

→sudo /etc/init.d/samba restartするも同じ結果

コード:

ps -ax | grep smbd
26572 pts/8    S+     0:00 grep --color=auto smbd

コード:

cat /var/log/samba/log.smbd
[2016/04/17 07:43:04.751560,  0] ../source3/param/loadparm.c:3067(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/17 07:43:04.751841,  0] ../source3/param/loadparm.c:1324(lp_bool)
  lp_bool(no#書き込み許可): value is not boolean!
[2016/04/17 07:43:04.751920,  0] ../source3/param/loadparm.c:1324(lp_bool)
  lp_bool(no#ゲストユーザー不可): value is not boolean!
[2016/04/17 07:43:04.751975,  0] ../source3/param/loadparm.c:3188(lp_do_parameter)
  Global parameter map to guest found in service section!
[2016/04/17 07:43:04.752059,  0] ../source3/param/loadparm.c:3155(lp_do_parameter)
  Ignoring unknown parameter "share modes"
[2016/04/17 07:43:04.752113,  0] ../source3/param/loadparm.c:3188(lp_do_parameter)
  Global parameter security found in service section!
[2016/04/17 07:43:04.752165,  0] ../source3/param/loadparm.c:3188(lp_do_parameter)
  Global parameter unix password sync found in service section!
[2016/04/18 07:54:08.049471,  0] ../source3/param/loadparm.c:3067(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/18 07:54:08.064613,  0] ../source3/param/loadparm.c:1324(lp_bool)
  lp_bool(no#書き込み許可): value is not boolean!
[2016/04/18 07:54:08.064663,  0] ../source3/param/loadparm.c:1324(lp_bool)
  lp_bool(no#ゲストユーザー不可): value is not boolean!
[2016/04/18 07:54:08.064702,  0] ../source3/param/loadparm.c:3188(lp_do_parameter)
  Global parameter map to guest found in service section!
[2016/04/18 07:54:08.064762,  0] ../source3/param/loadparm.c:3155(lp_do_parameter)
  Ignoring unknown parameter "share modes"
[2016/04/18 07:54:08.064800,  0] ../source3/param/loadparm.c:3188(lp_do_parameter)
  Global parameter security found in service section!
[2016/04/18 07:54:08.064837,  0] ../source3/param/loadparm.c:3188(lp_do_parameter)
  Global parameter unix password sync found in service section!
[2016/04/19 07:53:02.536756,  0] ../lib/util/pidfile.c:153(pidfile_unlink)
  Failed to delete pidfile /var/run/samba/smbd.pid. Error was No such file or directory
[2016/04/19 07:53:29.014997,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.056256,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.137563,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.186367,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.214526,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.242494,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.277054,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.310609,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.342809,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.374081,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 07:53:29.406371,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:57.348669,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.175784,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.202944,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.230479,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.317988,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.345367,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.372670,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.399949,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.428148,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.455420,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 15:56:58.483264,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.458278,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.663780,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.691404,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.718830,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.746485,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.774532,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.802387,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.830640,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.866629,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.894814,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:11:00.922996,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.542536,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.736883,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.763919,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.790971,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.818150,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.846199,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.873863,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.901493,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.929236,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.956501,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:44:18.983859,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.208676,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.252376,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.293680,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.344569,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.380042,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.416466,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.452870,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.489158,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.521807,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.559593,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 18:52:32.599379,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:22.164221,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:22.814859,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:22.910753,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:22.938325,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:22.966042,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:22.993841,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:23.022018,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:23.049595,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:23.110412,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:23.137543,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'
[2016/04/19 19:05:23.164125,  0] ../lib/param/loadparm.c:1071(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'bsd#user' for parameter 'printing'

/etc/samba/smb.conf

コード:

[global]
#yuji
unix charset = UTF-8
dos charset = CP932
unix extensions = no
#/yuji
## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
    server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
#   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller". 
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
   server role = standalone server

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<[email protected]> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########

#
# The following settings only takes effect if 'server role = primary
# classic domain controller', 'server role = backup domain controller'
# or 'domain logons' is set 
#

# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the 
# SAMR RPC pipe.  
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.  
; add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
;   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
printing = bsd#yuji
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

#Data-Disk
[Data-Disk]
path = /home/yuji/Data-Disk
read only = no#書き込み許可
guest ok = no#ゲストユーザー不可
map to guest = Never#ゲストユーザーのアクセスを拒否
create mode = 0700#user only フルアクセスでファイル作成
directory mode = 0700#user only フルアクセスでフォルダ作成
share modes = yes#同じファイルに複数ユーザーがアクセスした場合に警告
security = user#ユーザー認証を利用する
unix password sync = yes#LinuxシステムのパスワードとSambaのパスワードを同期

smbdが起動しない理由は何でしょうか?どうすれば起動するようになるでしょうか?

オフライン

 

Board footer

Powered by FluxBB