<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Comic Sans MS">sudo service smbd stop didn't work. For
now I'm giving up on it. I already have ssh installed on one
machine. I'll install it on the other and use sftp to move data
between them.<br>
<br>
Thanks for the input.<br>
<br>
</font>
<div class="moz-cite-prefix">On 09/06/2014 07:36 AM,
<a class="moz-txt-link-abbreviated" href="mailto:techlists@phpcoderusa.com">techlists@phpcoderusa.com</a> wrote:<br>
</div>
<blockquote
cite="mid:26d8fd397e0eea4cc70200f2d80ddeba@phpcoderusa.com"
type="cite">
<br>
I am by no means an expert. I was looking at your command :
"sudo /etc/init.d/samba stop" and was wondering if you should be
using samba.
<br>
<br>
Have you tried : sudo service smbd stop ?
<br>
<br>
<br>
<br>
On 2014-09-06 05:01, Derek Trotter wrote:
<br>
<blockquote type="cite">A few days ago I was given a computer. I
decided to try using samba
<br>
to move data from one to the other. I installed samba but
couldn't
<br>
get it to work. I've googled this and found many people having
<br>
problems with samba, but none with the problem I'm having.
Please
<br>
help and thanks to anyone who can.
<br>
<br>
This machine is running Kubuntu 14.04.1 LTS Amd64 version
<br>
<br>
I tried connecting to the shared folder from the other
computer. It
<br>
couldn't see there was anything being shared on this one. I
tried
<br>
using smb4k on this one, but nothing showed as being shared.
<br>
<br>
Then I tried the following:
<br>
delboy@ladmo:~$ sudo /etc/init.d/samba start
<br>
[sudo] password for delboy:
<br>
delboy@ladmo:~$
<br>
<br>
I gave it the password and it returned nothing. Then I tried to
stop
<br>
it. Again nothing.
<br>
<br>
delboy@ladmo:~$ sudo /etc/init.d/samba stop
<br>
delboy@ladmo:~$
<br>
<br>
The stop option doesn't appear to work
<br>
delboy@ladmo:~$ sudo /etc/init.d/samba status
<br>
* nmbd is running
<br>
* smbd is running
<br>
delboy@ladmo:~$
<br>
<br>
the force-reload option didn't work, just like the stop option
didn't.
<br>
delboy@ladmo:~$ sudo /etc/init.d/samba force-reload
<br>
delboy@ladmo:~$
<br>
<br>
The reload option seems to work.
<br>
delboy@ladmo:~$ sudo /etc/init.d/samba reload
<br>
* Reloading /etc/samba/smb.conf smbd [ OK ]
<br>
delboy@ladmo:~$
<br>
<br>
Testparm returned the following:
<br>
delboy@ladmo:~$ testparm
<br>
Load smb config files from /etc/samba/smb.conf
<br>
rlimit_max: increasing rlimit_max (1024) to minimum Windows
limit (16384)
<br>
Processing section "[homes]"
<br>
Processing section "[music]"
<br>
Processing section "[printers]"
<br>
Processing section "[print$]"
<br>
Loaded services file OK.
<br>
Server role: ROLE_STANDALONE
<br>
<br>
Thanks to to anyone that can help.
<br>
<br>
Here's my /etc/smb.conf
<br>
<br>
#======================= Global Settings =======================
<br>
<br>
[global]
<br>
<br>
## Browsing/Identification ###
<br>
<br>
# Change this to the workgroup/NT-domain name your Samba server
will part of
<br>
workgroup = WORKGROUP
<br>
<br>
# server string is the equivalent of the NT Description field
<br>
server string = %h server (Samba, Ubuntu)
<br>
<br>
# Windows Internet Name Serving Support Section:
<br>
# WINS Support - Tells the NMBD component of Samba to enable its
WINS Server
<br>
# wins support = no
<br>
<br>
# WINS Server - Tells the NMBD components of Samba to be a WINS
Client
<br>
# Note: Samba can be either a WINS Server, or a WINS Client, but
NOT both
<br>
; wins server = w.x.y.z
<br>
<br>
# This will prevent nmbd to search for NetBIOS names through
DNS.
<br>
dns proxy = no
<br>
<br>
#### Networking ####
<br>
<br>
# The specific set of interfaces / networks to bind to
<br>
# This can be either the interface name or an IP
address/netmask;
<br>
# interface names are normally preferred
<br>
interfaces = 127.0.0.0/8 eth0
<br>
<br>
# Only bind to the named interfaces and/or networks; you must
use the
<br>
# 'interfaces' option above to use this.
<br>
# It is recommended that you enable this feature if your Samba
machine is
<br>
# not protected by a firewall or is a firewall itself. However,
this
<br>
# option cannot handle dynamic or non-broadcast interfaces
correctly.
<br>
bind interfaces only = yes
<br>
<br>
<br>
<br>
#### Debugging/Accounting ####
<br>
<br>
# This tells Samba to use a separate log file for each machine
<br>
# that connects
<br>
log file = /var/log/samba/log.%m
<br>
<br>
# Cap the size of the individual log files (in KiB).
<br>
max log size = 1000
<br>
<br>
# If you want Samba to only log through syslog then set the
following
<br>
# parameter to 'yes'.
<br>
# syslog only = no
<br>
<br>
# We want Samba to log a minimum amount of information to
syslog. Everything
<br>
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you
want to log
<br>
# through syslog you should set the following parameter to
something higher.
<br>
syslog = 0
<br>
<br>
# Do something sensible when Samba crashes: mail the admin a
backtrace
<br>
panic action = /usr/share/samba/panic-action %d
<br>
<br>
<br>
####### Authentication #######
<br>
<br>
# Server role. Defines in which mode Samba will operate.
Possible
<br>
# values are "standalone server", "member server", "classic
primary
<br>
# domain controller", "classic backup domain controller",
"active
<br>
# directory domain controller".
<br>
#
<br>
# Most people will want "standalone sever" or "member server".
<br>
# Running as "active directory domain controller" will require
first
<br>
# running "samba-tool domain provision" to wipe databases and
create a
<br>
# new domain.
<br>
server role = standalone server
<br>
<br>
# If you are using encrypted passwords, Samba will need to know
what
<br>
# password database type you are using.
<br>
passdb backend = tdbsam
<br>
<br>
obey pam restrictions = yes
<br>
<br>
# This boolean parameter controls whether Samba attempts to sync
the Unix
<br>
# password with the SMB password when the encrypted SMB password
in the
<br>
# passdb is changed.
<br>
unix password sync = yes
<br>
<br>
# For Unix password sync to work on a Debian GNU/Linux system,
the following
<br>
# parameters must be set (thanks to Ian Kahan
<br>
<<a class="moz-txt-link-rfc2396E" href="mailto:kahan@informatik.tu-muenchen.de"><kahan@informatik.tu-muenchen.de></a> for
<br>
# sending the correct chat script for the passwd program in
Debian Sarge).
<br>
passwd program = /usr/bin/passwd %u
<br>
passwd chat = *Enter\snew\s*\spassword:* %n\n
<br>
*Retype\snew\s*\spassword:* %n\n
*password\supdated\ssuccessfully* .
<br>
<br>
# This boolean controls whether PAM will be used for password
changes
<br>
# when requested by an SMB client instead of the program listed
in
<br>
# 'passwd program'. The default is 'no'.
<br>
pam password change = yes
<br>
<br>
# This option controls how unsuccessful authentication attempts
are mapped
<br>
# to anonymous connections
<br>
map to guest = bad user
<br>
<br>
########## Domains ###########
<br>
<br>
#
<br>
# The following settings only takes effect if 'server role =
primary
<br>
# classic domain controller', 'server role = backup domain
controller'
<br>
# or 'domain logons' is set
<br>
#
<br>
<br>
# It specifies the location of the user's
<br>
# profile directory from the client point of view) The following
<br>
# required a [profiles] share to be setup on the samba server
(see
<br>
# below)
<br>
; logon path = \\%N\profiles\%U
<br>
# Another common choice is storing the profile in the user's
home directory
<br>
# (this is Samba's default)
<br>
# logon path = \\%N\%U\profile
<br>
<br>
# The following setting only takes effect if 'domain logons' is
set
<br>
# It specifies the location of a user's home directory (from the
client
<br>
# point of view)
<br>
; logon drive = H:
<br>
# logon home = \\%N\%U
<br>
<br>
# The following setting only takes effect if 'domain logons' is
set
<br>
# It specifies the script to run during logon. The script must
be stored
<br>
# in the [netlogon] share
<br>
# NOTE: Must be store in 'DOS' file format convention
<br>
; logon script = logon.cmd
<br>
<br>
# This allows Unix users to be created on the domain controller
via the SAMR
<br>
# RPC pipe. The example command creates a user account with a
disabled Unix
<br>
# password; please adapt to your needs
<br>
; add user script = /usr/sbin/adduser --quiet
--disabled-password --gecos "" %u
<br>
<br>
# This allows machine accounts to be created on the domain
controller via the
<br>
# SAMR RPC pipe.
<br>
# The following assumes a "machines" group exists on the system
<br>
; add machine script = /usr/sbin/useradd -g machines -c "%u
machine
<br>
account" -d /var/lib/samba -s /bin/false %u
<br>
<br>
# This allows Unix groups to be created on the domain controller
via the SAMR
<br>
# RPC pipe.
<br>
; add group script = /usr/sbin/addgroup --force-badname %g
<br>
<br>
############ Misc ############
<br>
<br>
# Using the following line enables you to customise your
configuration
<br>
# on a per machine basis. The %m gets replaced with the netbios
name
<br>
# of the machine that is connecting
<br>
; include = /home/samba/etc/smb.conf.%m
<br>
<br>
# Some defaults for winbind (make sure you're not using the
ranges
<br>
# for something else.)
<br>
; idmap uid = 10000-20000
<br>
; idmap gid = 10000-20000
<br>
; template shell = /bin/bash
<br>
<br>
# Setup usershare options to enable non-root users to share
folders
<br>
# with the net usershare command.
<br>
<br>
# Maximum number of usershare. 0 (default) means that usershare
is disabled.
<br>
; usershare max shares = 100
<br>
<br>
# Allow users who've been granted usershare privileges to create
<br>
# public shares, not just authenticated ones
<br>
usershare allow guests = yes
<br>
<br>
#======================= Share Definitions
=======================
<br>
<br>
# Un-comment the following (and tweak the other settings below
to suit)
<br>
# to enable the default home directory shares. This will share
each
<br>
# user's home directory as \\server\username
<br>
[homes]
<br>
comment = Home Directories
<br>
browseable = no
<br>
writable = yes
<br>
<br>
<br>
[music]
<br>
comment = music
<br>
path = /home/delboy/music
<br>
public = yes
<br>
writable = no
<br>
<br>
<br>
# By default, the home directories are exported read-only.
Change the
<br>
# next parameter to 'no' if you want to be able to write to
them.
<br>
; read only = yes
<br>
<br>
# File creation mask is set to 0700 for security reasons. If you
want to
<br>
# create files with group=rw permissions, set next parameter to
0775.
<br>
; create mask = 0700
<br>
<br>
# Directory creation mask is set to 0700 for security reasons.
If you want to
<br>
# create dirs. with group=rw permissions, set next parameter to
0775.
<br>
; directory mask = 0700
<br>
<br>
# By default, \\server\username shares can be connected to by
anyone
<br>
# with access to the samba server.
<br>
# Un-comment the following parameter to make sure that only
"username"
<br>
# can connect to \\server\username
<br>
# This might need tweaking when using external authentication
schemes
<br>
; valid users = %S
<br>
<br>
# Un-comment the following and create the netlogon directory for
Domain Logons
<br>
# (you need to configure Samba to act as a domain controller
too.)
<br>
;[netlogon]
<br>
; comment = Network Logon Service
<br>
; path = /home/samba/netlogon
<br>
; guest ok = yes
<br>
; read only = yes
<br>
<br>
# Un-comment the following and create the profiles directory to
store
<br>
# users profiles (see the "logon path" option above)
<br>
# (you need to configure Samba to act as a domain controller
too.)
<br>
# The path below should be writable by all users so that their
<br>
# profile directory may be created the first time they log on
<br>
;[profiles]
<br>
; comment = Users profiles
<br>
; path = /home/samba/profiles
<br>
; guest ok = no
<br>
; browseable = no
<br>
; create mask = 0600
<br>
; directory mask = 0700
<br>
<br>
[printers]
<br>
comment = All Printers
<br>
browseable = no
<br>
path = /var/spool/samba
<br>
printable = yes
<br>
guest ok = no
<br>
read only = yes
<br>
create mask = 0700
<br>
<br>
# Windows clients look for this share name as a source of
downloadable
<br>
# printer drivers
<br>
[print$]
<br>
comment = Printer Drivers
<br>
path = /var/lib/samba/printers
<br>
browseable = yes
<br>
read only = yes
<br>
guest ok = no
<br>
# Uncomment to allow remote administration of Windows print
drivers.
<br>
# You may need to replace 'lpadmin' with the name of the group
your
<br>
# admin users are members of.
<br>
# Please note that you also need to set appropriate Unix
permissions
<br>
# to the drivers directory for these users to have write rights
in it
<br>
; write list = root, @lpadmin
<br>
</blockquote>
---------------------------------------------------
<br>
PLUG-discuss mailing list - <a class="moz-txt-link-abbreviated" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a>
<br>
To subscribe, unsubscribe, or to change your mail settings:
<br>
<a class="moz-txt-link-freetext" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a>
<br>
.
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
"I get my copy of the daily paper, look at the obituaries page, and if I’m not there, I carry on as usual."
Patrick Moore</pre>
</body>
</html>