Merge lp:~nacc/serverguide/samba into lp:serverguide

Proposed by Nish Aravamudan on 2016-04-29
Status: Merged
Approved by: Doug Smythies on 2016-05-13
Approved revision: 290
Merged at revision: 290
Proposed branch: lp:~nacc/serverguide/samba
Merge into: lp:serverguide
Diff against target: 129 lines (+16/-17)
2 files modified
serverguide/C/network-auth.xml (+6/-7)
serverguide/C/samba.xml (+10/-10)
To merge this branch: bzr merge lp:~nacc/serverguide/samba
Reviewer Review Type Date Requested Status
Doug Smythies 2016-04-29 Approve on 2016-05-13
Review via email: mp+293442@code.launchpad.net

Description of the Change

Note that I am unable to test much of the configuration, due to not having a Windows environment, but I verified at least the package naming/availability in 16.04.

To post a comment you must log in.
Doug Smythies (dsmythies) wrote :

Nish, thanks very much for this.

I see that when the entire serverguide was updated for "sudo systemctl restart/start/stop/..." two were missed in the Samba chapter. ( I see 4 also were missed in file-server.xml )

However, the entire serverguide uses the "sudo systemctl restart bla.service" method not the shortened version, "sudo systemctl restart bla". It would be preferable to be consistent over the whole document.

So, evidently all my troubles in January and February were because I didn't know to load the "libpam-winbind" package. I'll try that as soon as I can, however I am running low on time before I will be away from internet for a week.

lp:~nacc/serverguide/samba updated on 2016-04-29
290. By Nish Aravamudan on 2016-04-29

  Update for Samba4
   - Use libpam-winbind instead of libpam-smbpass
   - Use cifs-utils instead of smbfs
   - Be consistent in use of `systemctl restart smbd.service nmbd.service`

Nish Aravamudan (nacc) wrote :

Hi Doug,

Thanks for the quick response!

I've updated the systemctl references in the branch.

I would expect your troubles with Xenial are primarily with the lack of smbpass, but I really don't know :) It would be great for you to test and see if it does fix it for you -- I also noticed in this process that we weren't seeding libpam-winbind as part of the 'samba-server' seed, so that's a bugfix I've sent in for Xenial (won't help until .1 probably) and Yak.

Doug Smythies (dsmythies) wrote :

Nish, thanks for your update.

Back in February, I did manage to get Samba working again, but could only do so by adding the samba users and samba password file, which I had never had to do before. I'll try again with this new information. However, I am really running short of time, so If I can't get to it tonight, it might have to wait for a week.

Doug Smythies (dsmythies) wrote :

O.K. Thanks very much.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'serverguide/C/network-auth.xml'
2--- serverguide/C/network-auth.xml 2016-03-19 02:00:31 +0000
3+++ serverguide/C/network-auth.xml 2016-04-29 23:07:33 +0000
4@@ -2218,8 +2218,8 @@
5 <title>Software Installation</title>
6
7 <para>
8- There are three packages needed when integrating Samba with LDAP: <application>samba</application>, <application>samba-doc</application>,
9- and <application>smbldap-tools</application> packages.
10+ There are two packages needed when integrating Samba with LDAP: <application>samba</application>
11+ and <application>smbldap-tools</application>.
12 </para>
13
14 <para>
15@@ -2232,7 +2232,7 @@
16 </para>
17
18 <screen>
19-<command>sudo apt install samba samba-doc smbldap-tools</command>
20+<command>sudo apt install samba smbldap-tools</command>
21 </screen>
22
23 </sect2>
24@@ -2278,12 +2278,12 @@
25
26 <step>
27 <para>
28- The schema is found in the now-installed <application>samba-doc</application> package. It needs to be unzipped and copied to
29+ The schema is found in the now-installed <application>samba</application> package. It needs to be unzipped and copied to
30 the <filename>/etc/ldap/schema</filename> directory:
31 </para>
32
33 <screen>
34-<command>sudo cp /usr/share/doc/samba-doc/examples/LDAP/samba.schema.gz /etc/ldap/schema</command>
35+<command>sudo cp /usr/share/doc/samba/examples/LDAP/samba.schema.gz /etc/ldap/schema</command>
36 <command>sudo gzip -d /etc/ldap/schema/samba.schema.gz</command>
37 </screen>
38
39@@ -2529,8 +2529,7 @@
40 </para>
41
42 <screen>
43-<command>sudo restart smbd</command>
44-<command>sudo restart nmbd</command>
45+<command>sudo systemctl restart smbd.service nmbd.service</command>
46 </screen>
47
48 <para>
49
50=== modified file 'serverguide/C/samba.xml'
51--- serverguide/C/samba.xml 2016-03-19 02:00:31 +0000
52+++ serverguide/C/samba.xml 2016-04-29 23:07:33 +0000
53@@ -74,7 +74,7 @@
54
55 <para>
56 The server will be configured to share files with any client on the network without prompting for a password. If
57- your environment requires stricter Access Controls see <xref linkend="samba-fileprint-security"/>
58+ your environment requires stricter Access Controls see <xref linkend="samba-fileprint-security"/>.
59 </para>
60
61 <sect2 id="samba-fileserver-installation" status="review">
62@@ -394,7 +394,7 @@
63 <listitem>
64 <para>
65 <emphasis>security = user:</emphasis> requires clients to supply a username and password to connect to shares.
66- Samba user accounts are separate from system accounts, but the <application>libpam-smbpass</application>
67+ Samba user accounts are separate from system accounts, but the <application>libpam-winbind</application>
68 package will sync system users and passwords with the Samba user database.
69 </para>
70 </listitem>
71@@ -441,17 +441,17 @@
72 </para>
73
74 <para>
75- First, install the <application>libpam-smbpass</application> package which will sync the system users to the Samba
76+ First, install the <application>libpam-winbind</application> package which will sync the system users to the Samba
77 user database:
78 </para>
79
80 <screen>
81-<command>sudo apt install libpam-smbpass</command>
82+<command>sudo apt install libpam-winbind</command>
83 </screen>
84
85 <note>
86 <para>
87- If you chose the <emphasis>Samba Server</emphasis> task during installation <application>libpam-smbpass</application>
88+ If you chose the <emphasis>Samba Server</emphasis> task during installation <application>libpam-winbind</application>
89 is already installed.
90 </para>
91 </note>
92@@ -760,12 +760,12 @@
93 <step>
94
95 <para>
96- First, install Samba, and <application>libpam-smbpass</application> to sync the user accounts,
97+ First, install Samba, and <application>libpam-winbind</application> to sync the user accounts,
98 by entering the following in a terminal prompt:
99 </para>
100
101 <screen>
102-<command>sudo apt install samba libpam-smbpass</command>
103+<command>sudo apt install samba libpam-winbind</command>
104 </screen>
105
106 </step>
107@@ -1001,11 +1001,11 @@
108 <step>
109
110 <para>
111- First, install <application>samba</application> and <application>libpam-smbpass</application>. From a terminal enter:
112+ First, install <application>samba</application> and <application>libpam-winbind</application>. From a terminal enter:
113 </para>
114
115 <screen>
116-<command>sudo apt install samba libpam-smbpass</command>
117+<command>sudo apt install samba libpam-winbind</command>
118 </screen>
119
120 </step>
121@@ -1155,7 +1155,7 @@
122 </para>
123
124 <screen>
125-<command>sudo apt install samba smbfs smbclient</command>
126+<command>sudo apt install samba cifs-utils smbclient</command>
127 </screen>
128
129 <para>

Subscribers

People subscribed via source and target branches