100% found this document useful (3 votes)
18 views

Full Download Using And Administering Linux: Volume 2 Zero To SysAdmin: Advanced Topics (2nd ed.) 2nd Edition David Both PDF DOCX

Using

Uploaded by

lipkekeelyn20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
18 views

Full Download Using And Administering Linux: Volume 2 Zero To SysAdmin: Advanced Topics (2nd ed.) 2nd Edition David Both PDF DOCX

Using

Uploaded by

lipkekeelyn20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 57

Download the full version of the ebook at

https://ebookmass.com

Using And Administering Linux: Volume 2 Zero


To SysAdmin: Advanced Topics (2nd ed.) 2nd
Edition David Both

https://ebookmass.com/product/using-and-
administering-linux-volume-2-zero-to-sysadmin-
advanced-topics-2nd-ed-2nd-edition-david-both/

Explore and download more ebook at https://ebookmass.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Using And Administering Linux: Volume 3 Zero To SysAdmin:


Network Services (2nd ed.) 2nd Edition David Both

https://ebookmass.com/product/using-and-administering-linux-
volume-3-zero-to-sysadmin-network-services-2nd-ed-2nd-edition-david-
both/
testbankdeal.com

Using And Administering Linux: Volume 1 Zero To SysAdmin:


Getting Started 2nd Edition David Both

https://ebookmass.com/product/using-and-administering-linux-
volume-1-zero-to-sysadmin-getting-started-2nd-edition-david-both/

testbankdeal.com

Using and Administering Linux: Volume 1: Zero to SysAdmin:


Getting Started, 2nd Edition David Both

https://ebookmass.com/product/using-and-administering-linux-
volume-1-zero-to-sysadmin-getting-started-2nd-edition-david-both-2/

testbankdeal.com

The Software Developer's Guide to Linux: A practical, no-


nonsense guide to using the Linux command line and
utilities as a software developer David Cohen
https://ebookmass.com/product/the-software-developers-guide-to-linux-
a-practical-no-nonsense-guide-to-using-the-linux-command-line-and-
utilities-as-a-software-developer-david-cohen/
testbankdeal.com
The Software Developer's Guide to Linux: A practical, no-
nonsense guide to using the Linux command line and
utilities as a software developer David Cohen
https://ebookmass.com/product/the-software-developers-guide-to-linux-
a-practical-no-nonsense-guide-to-using-the-linux-command-line-and-
utilities-as-a-software-developer-david-cohen-2/
testbankdeal.com

Ubuntu Linux Bible 10th Edition David Clinton

https://ebookmass.com/product/ubuntu-linux-bible-10th-edition-david-
clinton/

testbankdeal.com

Advanced Fermentation and Cell Technology, 2 Volume Set


Byong H. Lee

https://ebookmass.com/product/advanced-fermentation-and-cell-
technology-2-volume-set-byong-h-lee/

testbankdeal.com

Linux Security Fundamentals 1st Edition Edition David


Clinton

https://ebookmass.com/product/linux-security-fundamentals-1st-edition-
edition-david-clinton/

testbankdeal.com

Ubuntu Linux Bible 10th Edition Edition David Clinton

https://ebookmass.com/product/ubuntu-linux-bible-10th-edition-edition-
david-clinton/

testbankdeal.com
Using and
Administering
Linux: Volume 2
Zero to SysAdmin: Advanced Topics

Second Edition

David Both
Using and Administering
Linux: Volume 2
Zero to SysAdmin: Advanced Topics
Second Edition

David Both
Using and Administering Linux: Volume 2: Zero to SysAdmin: Advanced Topics

David Both
Raleigh, NC, USA

ISBN-13 (pbk): 978-1-4842-9614-1 ISBN-13 (electronic): 978-1-4842-9615-8


https://doi.org/10.1007/978-1-4842-9615-8

Copyright © 2023 by David Both


This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information
storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with
every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the
trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not
identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to
proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication,
neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or
omissions that may be made. The publisher makes no warranty, express or implied, with respect to the
material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: James Robinson-Prior
Development Editor: Jim Markham
Editorial Assistant: Gryffin Winkler
Cover image designed by the author
Distributed to the book trade worldwide by Springer Science+Business Media New York, 1 New York Plaza,
1 FDR Dr, New York, NY 10004. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.
com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner)
is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware
corporation.
For information on translations, please e-mail [email protected]; for reprint,
paperback, or audio rights, please e-mail [email protected].
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and
licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales
web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to
readers on GitHub (https://github.com/Apress). For more detailed information, please visit
https://www.apress.com/gp/services/source-code.
Paper in this product is recyclable.
This book is dedicated to all
Linux and open source developers, system administrators,
course developers, and trainers.

:(){ :|:& };:


Table of Contents
About the Author����������������������������������������������������������������������������������������������������xxi

About the Technical Reviewers����������������������������������������������������������������������������xxiii


Acknowledgments�������������������������������������������������������������������������������������������������xxv

Introduction���������������������������������������������������������������������������������������������������������xxvii

Chapter 20: Logical Volume Management (LVM)������������������������������������������������������ 1


Objectives������������������������������������������������������������������������������������������������������������������������������������� 1
The Need for Logical Volume Management���������������������������������������������������������������������������������� 1
Running Out of Disk Space in VirtualBox��������������������������������������������������������������������������������� 2
Recovery���������������������������������������������������������������������������������������������������������������������������������� 2
LVM Structure������������������������������������������������������������������������������������������������������������������������������� 3
Extending a Logical Volume���������������������������������������������������������������������������������������������������������� 4
Creating and Extending Volume Groups���������������������������������������������������������������������������������������� 8
Create a New Volume Group���������������������������������������������������������������������������������������������������� 8
Extend an Existing Volume Group������������������������������������������������������������������������������������������ 12
Tips��������������������������������������������������������������������������������������������������������������������������������������������� 14
Advanced Capabilities����������������������������������������������������������������������������������������������������������������� 14
Chapter Summary����������������������������������������������������������������������������������������������������������������������� 15
Exercises������������������������������������������������������������������������������������������������������������������������������������� 15

Chapter 21: File Managers������������������������������������������������������������������������������������� 17


Objectives����������������������������������������������������������������������������������������������������������������������������������� 17
Introduction��������������������������������������������������������������������������������������������������������������������������������� 17
Text-Mode Interface�������������������������������������������������������������������������������������������������������������� 18
Graphical Interface���������������������������������������������������������������������������������������������������������������� 18

v
Table of Contents

Default File Manager������������������������������������������������������������������������������������������������������������������� 18


Text-Mode File Managers������������������������������������������������������������������������������������������������������������ 20
Midnight Commander������������������������������������������������������������������������������������������������������������ 20
Other Text-Mode File Managers�������������������������������������������������������������������������������������������������� 32
Vifm��������������������������������������������������������������������������������������������������������������������������������������� 32
nnn���������������������������������������������������������������������������������������������������������������������������������������� 33
Graphical File Managers������������������������������������������������������������������������������������������������������������� 34
Krusader�������������������������������������������������������������������������������������������������������������������������������� 35
Thunar����������������������������������������������������������������������������������������������������������������������������������� 38
Dolphin���������������������������������������������������������������������������������������������������������������������������������� 40
XFE���������������������������������������������������������������������������������������������������������������������������������������� 41
Other File Managers�������������������������������������������������������������������������������������������������������������������� 42
Chapter Summary����������������������������������������������������������������������������������������������������������������������� 43
Exercises������������������������������������������������������������������������������������������������������������������������������������� 44

Chapter 22: Everything Is a File����������������������������������������������������������������������������� 45


Objectives����������������������������������������������������������������������������������������������������������������������������������� 45
What Is a File?���������������������������������������������������������������������������������������������������������������������������� 46
Device Files��������������������������������������������������������������������������������������������������������������������������������� 47
Device File Creation��������������������������������������������������������������������������������������������������������������� 47
udev Simplification��������������������������������������������������������������������������������������������������������������������� 47
Naming Rules������������������������������������������������������������������������������������������������������������������������ 48
Rule Change Blues���������������������������������������������������������������������������������������������������������������� 48
Device Data Flow������������������������������������������������������������������������������������������������������������������������ 49
Device File Classification������������������������������������������������������������������������������������������������������������ 51
Fun with Device Files������������������������������������������������������������������������������������������������������������������ 53
Randomness, Zero, and More����������������������������������������������������������������������������������������������������� 57
Back Up the Master Boot Record������������������������������������������������������������������������������������������������ 60
Implications of Everything Is a File��������������������������������������������������������������������������������������������� 67
Chapter Summary����������������������������������������������������������������������������������������������������������������������� 68
Exercises������������������������������������������������������������������������������������������������������������������������������������� 68

vi
Table of Contents

Chapter 23: Managing Processes��������������������������������������������������������������������������� 69


Objectives����������������������������������������������������������������������������������������������������������������������������������� 69
Processes������������������������������������������������������������������������������������������������������������������������������������ 69
Process Scheduling in the Kernel������������������������������������������������������������������������������������������ 70
Tools�������������������������������������������������������������������������������������������������������������������������������������������� 71
top����������������������������������������������������������������������������������������������������������������������������������������� 71
More About Load Averages …����������������������������������������������������������������������������������������������� 77
…and Signals������������������������������������������������������������������������������������������������������������������������ 78
CPU Hogs������������������������������������������������������������������������������������������������������������������������������������ 79
Process Scheduling�������������������������������������������������������������������������������������������������������������������� 81
Nice Numbers������������������������������������������������������������������������������������������������������������������������ 81
Killing Processes������������������������������������������������������������������������������������������������������������������������� 84
Other Interactive Tools���������������������������������������������������������������������������������������������������������������� 85
atop��������������������������������������������������������������������������������������������������������������������������������������� 85
htop��������������������������������������������������������������������������������������������������������������������������������������� 88
Glances���������������������������������������������������������������������������������������������������������������������������������� 95
Other Tools����������������������������������������������������������������������������������������������������������������������������� 99
The Impact of Measurement����������������������������������������������������������������������������������������������������� 104
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 104
Exercises����������������������������������������������������������������������������������������������������������������������������������� 105

Chapter 24: Special Filesystems�������������������������������������������������������������������������� 107


Objectives��������������������������������������������������������������������������������������������������������������������������������� 107
Introduction������������������������������������������������������������������������������������������������������������������������������� 107
The /proc Filesystem����������������������������������������������������������������������������������������������������������������� 108
The /sys Filesystem������������������������������������������������������������������������������������������������������������������ 119
Storage-Based Swap Space����������������������������������������������������������������������������������������������������� 123
Types of Linux Swap������������������������������������������������������������������������������������������������������������ 125
Thrashing����������������������������������������������������������������������������������������������������������������������������� 125
What Is the Right Amount of Storage-Based Swap Space?������������������������������������������������ 126

vii
Table of Contents

Adding More Swap Space on a Non-LVM Disk Partition������������������������������������������������������ 130


Adding Swap to an LVM Disk Environment�������������������������������������������������������������������������� 135
Other Swap Options with LVM��������������������������������������������������������������������������������������������� 139
Using Zram for Swap Space������������������������������������������������������������������������������������������������������ 139
But Why?����������������������������������������������������������������������������������������������������������������������������� 140
How Much Swap?���������������������������������������������������������������������������������������������������������������� 140
Managing Zram Swap��������������������������������������������������������������������������������������������������������� 142
Creating Zram Swap������������������������������������������������������������������������������������������������������������ 143
Augmenting Zram Swap������������������������������������������������������������������������������������������������������ 144
Tuning Swap����������������������������������������������������������������������������������������������������������������������������� 145
Swap Size Recommendations��������������������������������������������������������������������������������������������� 145
Removing Traditional Swap Partitions and Files������������������������������������������������������������������ 146
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 148
Exercises����������������������������������������������������������������������������������������������������������������������������������� 148

Chapter 25: Regular Expressions������������������������������������������������������������������������� 151


Objectives��������������������������������������������������������������������������������������������������������������������������������� 151
Introducing Regular Expressions���������������������������������������������������������������������������������������������� 151
Getting Started�������������������������������������������������������������������������������������������������������������������������� 153
The Mailing List������������������������������������������������������������������������������������������������������������������� 153
grep������������������������������������������������������������������������������������������������������������������������������������������� 161
Data Flow���������������������������������������������������������������������������������������������������������������������������� 161
REGEX Building Blocks�������������������������������������������������������������������������������������������������������� 162
Repetition���������������������������������������������������������������������������������������������������������������������������� 165
Other Metacharacters���������������������������������������������������������������������������������������������������������� 167
sed�������������������������������������������������������������������������������������������������������������������������������������������� 170
Other Tools That Implement Regular Expressions��������������������������������������������������������������������� 171
Resources��������������������������������������������������������������������������������������������������������������������������������� 172
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 172
Exercises����������������������������������������������������������������������������������������������������������������������������������� 173

viii
Table of Contents

Chapter 26: Printing��������������������������������������������������������������������������������������������� 175


Objectives��������������������������������������������������������������������������������������������������������������������������������� 175
Introduction������������������������������������������������������������������������������������������������������������������������������� 176
About Printers��������������������������������������������������������������������������������������������������������������������������� 176
Print Languages������������������������������������������������������������������������������������������������������������������ 177
Printers and Linux��������������������������������������������������������������������������������������������������������������� 177
CUPS������������������������������������������������������������������������������������������������������������������������������������ 180
Creating the Print Queue����������������������������������������������������������������������������������������������������� 182
Printing to a PDF File���������������������������������������������������������������������������������������������������������������� 189
File Conversion Tools���������������������������������������������������������������������������������������������������������������� 193
a2ps������������������������������������������������������������������������������������������������������������������������������������� 194
ps2pdf��������������������������������������������������������������������������������������������������������������������������������� 196
pr����������������������������������������������������������������������������������������������������������������������������������������� 197
ps2ascii������������������������������������������������������������������������������������������������������������������������������� 197
Operating System–Related Conversion Tools��������������������������������������������������������������������������� 199
unix2dos������������������������������������������������������������������������������������������������������������������������������ 200
dos2unix������������������������������������������������������������������������������������������������������������������������������ 202
unix2mac and mac2unix����������������������������������������������������������������������������������������������������� 203
Miscellaneous Tools������������������������������������������������������������������������������������������������������������������ 203
lpmove��������������������������������������������������������������������������������������������������������������������������������� 204
wvText and odt2txt�������������������������������������������������������������������������������������������������������������� 206
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 208
Exercises����������������������������������������������������������������������������������������������������������������������������������� 208

Chapter 27: Hardware Detection�������������������������������������������������������������������������� 211


Objectives��������������������������������������������������������������������������������������������������������������������������������� 211
Introduction������������������������������������������������������������������������������������������������������������������������������� 211
dmidecode�������������������������������������������������������������������������������������������������������������������������������� 213
lshw������������������������������������������������������������������������������������������������������������������������������������������ 219
lsusb����������������������������������������������������������������������������������������������������������������������������������������� 222
usb-devices������������������������������������������������������������������������������������������������������������������������������ 225

ix
Visit https://ebookmass.com
now to explore a rich
collection of eBooks and enjoy
exciting offers!
Table of Contents

lspci������������������������������������������������������������������������������������������������������������������������������������������ 226
Cleanup������������������������������������������������������������������������������������������������������������������������������������� 230
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 230
Exercises����������������������������������������������������������������������������������������������������������������������������������� 230

Chapter 28: Command-Line Programming����������������������������������������������������������� 233


Objectives��������������������������������������������������������������������������������������������������������������������������������� 233
Introduction������������������������������������������������������������������������������������������������������������������������������� 233
Definition of a Program������������������������������������������������������������������������������������������������������������� 234
Simple CLI Programs����������������������������������������������������������������������������������������������������������������� 235
Some Basic Syntax�������������������������������������������������������������������������������������������������������������� 235
Output to the Display����������������������������������������������������������������������������������������������������������� 237
Something About Variables�������������������������������������������������������������������������������������������������� 239
Control Operators���������������������������������������������������������������������������������������������������������������������� 241
Return Codes����������������������������������������������������������������������������������������������������������������������� 242
The Operators���������������������������������������������������������������������������������������������������������������������� 243
Program Flow Control��������������������������������������������������������������������������������������������������������������� 245
true and false���������������������������������������������������������������������������������������������������������������������� 246
Logical Operators���������������������������������������������������������������������������������������������������������������� 247
Miscellaneous Operators����������������������������������������������������������������������������������������������������� 258
Grouping Program Statements�������������������������������������������������������������������������������������������������� 259
Expansions�������������������������������������������������������������������������������������������������������������������������������� 264
Brace Expansion������������������������������������������������������������������������������������������������������������������ 264
Tilde Expansion������������������������������������������������������������������������������������������������������������������� 264
Pathname Expansion����������������������������������������������������������������������������������������������������������� 264
Command Substitution�������������������������������������������������������������������������������������������������������� 266
Arithmetic Expansion����������������������������������������������������������������������������������������������������������� 268
for Loops����������������������������������������������������������������������������������������������������������������������������������� 269
Other Loops������������������������������������������������������������������������������������������������������������������������������� 274
while������������������������������������������������������������������������������������������������������������������������������������ 274
until������������������������������������������������������������������������������������������������������������������������������������� 276

x
Table of Contents

Chapter Summary��������������������������������������������������������������������������������������������������������������������� 278


Exercises����������������������������������������������������������������������������������������������������������������������������������� 278

Chapter 29: Automation with Bash Scripts���������������������������������������������������������� 281


Objectives��������������������������������������������������������������������������������������������������������������������������������� 281
Introduction������������������������������������������������������������������������������������������������������������������������������� 282
Why I Use Shell Scripts������������������������������������������������������������������������������������������������������������� 282
Shell Scripts������������������������������������������������������������������������������������������������������������������������ 283
Scripts vs. Compiled Programs������������������������������������������������������������������������������������������� 284
Updates������������������������������������������������������������������������������������������������������������������������������������� 285
About Updates��������������������������������������������������������������������������������������������������������������������� 285
Create a List of Requirements��������������������������������������������������������������������������������������������� 286
The CLI Program������������������������������������������������������������������������������������������������������������������ 287
Security������������������������������������������������������������������������������������������������������������������������������� 287
Convert the CLI Program to a Script������������������������������������������������������������������������������������ 288
Add Some Logic������������������������������������������������������������������������������������������������������������������� 289
Limit to Root������������������������������������������������������������������������������������������������������������������������ 292
Add Command-Line Options������������������������������������������������������������������������������������������������ 293
Check for Updates��������������������������������������������������������������������������������������������������������������� 296
Is a Reboot Required?��������������������������������������������������������������������������������������������������������� 298
Adding a Help Function������������������������������������������������������������������������������������������������������� 301
Finishing the Script������������������������������������������������������������������������������������������������������������� 305
About Testing���������������������������������������������������������������������������������������������������������������������������� 307
Testing in Production����������������������������������������������������������������������������������������������������������� 307
Fuzzy Testing����������������������������������������������������������������������������������������������������������������������� 308
Testing the Script���������������������������������������������������������������������������������������������������������������� 309
Licensing����������������������������������������������������������������������������������������������������������������������������������� 312
Automated Testing�������������������������������������������������������������������������������������������������������������������� 316
Additional Levels of Automation������������������������������������������������������������������������������������������������ 316
Cleanup������������������������������������������������������������������������������������������������������������������������������������� 318
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 319
Exercises����������������������������������������������������������������������������������������������������������������������������������� 320

xi
Table of Contents

Chapter 30: Automation with Ansible������������������������������������������������������������������� 321


Objectives��������������������������������������������������������������������������������������������������������������������������������� 321
My First Day with Ansible��������������������������������������������������������������������������������������������������������� 321
The Ansible Strategy����������������������������������������������������������������������������������������������������������������� 322
My Problem������������������������������������������������������������������������������������������������������������������������������� 322
Getting Started�������������������������������������������������������������������������������������������������������������������������� 323
Installing Ansible����������������������������������������������������������������������������������������������������������������������� 323
Configuration���������������������������������������������������������������������������������������������������������������������������� 324
ansible.cfg��������������������������������������������������������������������������������������������������������������������������� 324
Preparing to Use Ansible����������������������������������������������������������������������������������������������������� 325
Ansible Facts����������������������������������������������������������������������������������������������������������������������� 330
The hosts File���������������������������������������������������������������������������������������������������������������������� 331
Creating the hosts File��������������������������������������������������������������������������������������������������������� 332
Modules������������������������������������������������������������������������������������������������������������������������������������ 332
Introduction to Playbooks��������������������������������������������������������������������������������������������������������� 333
Output���������������������������������������������������������������������������������������������������������������������������������� 335
Files������������������������������������������������������������������������������������������������������������������������������������� 336
Multiple Playbook Runs������������������������������������������������������������������������������������������������������� 337
How to Create an Ansible Playbook������������������������������������������������������������������������������������������ 338
What Is a Playbook?������������������������������������������������������������������������������������������������������������ 338
Updates Redux�������������������������������������������������������������������������������������������������������������������� 338
Defining the Requirements�������������������������������������������������������������������������������������������������� 339
Syntax���������������������������������������������������������������������������������������������������������������������������������� 340
Creating the Playbook��������������������������������������������������������������������������������������������������������� 341
Ansible for Many Systems�������������������������������������������������������������������������������������������������������� 350
The Second Play������������������������������������������������������������������������������������������������������������������ 350
Final Thoughts��������������������������������������������������������������������������������������������������������������������������� 354
Resources��������������������������������������������������������������������������������������������������������������������������������� 355
Exercises����������������������������������������������������������������������������������������������������������������������������������� 355

xii
Table of Contents

Chapter 31: Time and Automation������������������������������������������������������������������������ 357


Objectives��������������������������������������������������������������������������������������������������������������������������������� 357
Introduction������������������������������������������������������������������������������������������������������������������������������� 357
Keeping Time with Chrony�������������������������������������������������������������������������������������������������������� 358
The NTP Server Hierarchy��������������������������������������������������������������������������������������������������� 359
NTP Choices������������������������������������������������������������������������������������������������������������������������ 359
Chrony Structure����������������������������������������������������������������������������������������������������������������� 360
Client Configuration������������������������������������������������������������������������������������������������������������� 360
chronyc As an Interactive Tool��������������������������������������������������������������������������������������������� 364
Using cron for Timely Automation��������������������������������������������������������������������������������������������� 365
The cron Daemon (crond)���������������������������������������������������������������������������������������������������� 365
crontab�������������������������������������������������������������������������������������������������������������������������������� 366
cron Examples��������������������������������������������������������������������������������������������������������������������� 368
crontab Entries�������������������������������������������������������������������������������������������������������������������� 369
Creating the crontab File����������������������������������������������������������������������������������������������������� 370
Other Scheduling Options��������������������������������������������������������������������������������������������������������� 373
/etc/cron.hourly������������������������������������������������������������������������������������������������������������������� 373
anacron������������������������������������������������������������������������������������������������������������������������������� 374
Thoughts About cron����������������������������������������������������������������������������������������������������������������� 376
Scheduling Tips������������������������������������������������������������������������������������������������������������������� 376
Security������������������������������������������������������������������������������������������������������������������������������� 377
cron Resources�������������������������������������������������������������������������������������������������������������������� 378
at����������������������������������������������������������������������������������������������������������������������������������������������� 378
Syntax���������������������������������������������������������������������������������������������������������������������������������� 378
Time Specifications������������������������������������������������������������������������������������������������������������� 379
Security������������������������������������������������������������������������������������������������������������������������������� 384
Setting the Hardware Clock������������������������������������������������������������������������������������������������������ 384
About Time Zones��������������������������������������������������������������������������������������������������������������������� 385
Cleanup������������������������������������������������������������������������������������������������������������������������������������� 388
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 388
Exercises����������������������������������������������������������������������������������������������������������������������������������� 389

xiii
Table of Contents

Chapter 32: Networking���������������������������������������������������������������������������������������� 391


Objectives��������������������������������������������������������������������������������������������������������������������������������� 391
Introduction������������������������������������������������������������������������������������������������������������������������������� 391
About IPv6��������������������������������������������������������������������������������������������������������������������������� 392
Basic Networking Concepts������������������������������������������������������������������������������������������������������ 392
Definitions��������������������������������������������������������������������������������������������������������������������������� 392
MAC Address����������������������������������������������������������������������������������������������������������������������� 394
IP Address���������������������������������������������������������������������������������������������������������������������������� 398
IP Address Assignments������������������������������������������������������������������������������������������������������������ 401
TCP/IP��������������������������������������������������������������������������������������������������������������������������������������� 401
The TCP/IP Network Model�������������������������������������������������������������������������������������������������� 401
A Simple Example���������������������������������������������������������������������������������������������������������������� 403
CIDR: Network Notation and Configuration������������������������������������������������������������������������������� 405
Network Classes������������������������������������������������������������������������������������������������������������������ 405
Along Came CIDR����������������������������������������������������������������������������������������������������������������� 408
Variable Length Subnet Masking����������������������������������������������������������������������������������������� 411
DHCP Client Configuration�������������������������������������������������������������������������������������������������������� 415
NIC Naming Conventions���������������������������������������������������������������������������������������������������������� 416
How It Works, Sort Of����������������������������������������������������������������������������������������������������������� 416
Interface Configuration Files: Old Style������������������������������������������������������������������������������������� 418
When Is an Interface Configuration File Needed?��������������������������������������������������������������� 419
The Interface Configuration File������������������������������������������������������������������������������������������ 419
Name Services�������������������������������������������������������������������������������������������������������������������������� 422
How a Name Search Works������������������������������������������������������������������������������������������������� 423
Using the /etc/hosts File������������������������������������������������������������������������������������������������������ 425
Introduction to Network Routing����������������������������������������������������������������������������������������������� 429
The Routing Table���������������������������������������������������������������������������������������������������������������� 429
iptraf-ng������������������������������������������������������������������������������������������������������������������������������������ 435
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 440
Exercises����������������������������������������������������������������������������������������������������������������������������������� 440

xiv
Table of Contents

Chapter 33: NetworkManager������������������������������������������������������������������������������ 443


Introduction������������������������������������������������������������������������������������������������������������������������������� 443
Network Startup������������������������������������������������������������������������������������������������������������������������ 444
The NetworkManager Service��������������������������������������������������������������������������������������������� 444
What NetworkManager Replaces���������������������������������������������������������������������������������������� 445
What NetworkManager Does����������������������������������������������������������������������������������������������� 445
Viewing Interface Configuration������������������������������������������������������������������������������������������������ 447
Fixing the Found Problems�������������������������������������������������������������������������������������������������� 451
Activate and Deactivate Network Connections������������������������������������������������������������������������� 453
NetworkManager Keyfiles��������������������������������������������������������������������������������������������������������� 456
Why Should I Migrate My Files?������������������������������������������������������������������������������������������������ 457
Migration Experiments�������������������������������������������������������������������������������������������������������������� 458
What If I Don’t Have ifcfg Files?������������������������������������������������������������������������������������������������ 464
Reverting to DHCP��������������������������������������������������������������������������������������������������������������������� 464
Creating New Keyfiles��������������������������������������������������������������������������������������������������������������� 464
Text Editor���������������������������������������������������������������������������������������������������������������������������� 464
Using nmtui������������������������������������������������������������������������������������������������������������������������� 465
Using nmcli�������������������������������������������������������������������������������������������������������������������������� 467
Using the GUI NetworkManager Connection Editor������������������������������������������������������������� 468
How to Manage Wireless Networks Using the Command Line������������������������������������������������� 472
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 478

Chapter 34: BtrFS������������������������������������������������������������������������������������������������� 481


Objectives��������������������������������������������������������������������������������������������������������������������������������� 481
Introduction������������������������������������������������������������������������������������������������������������������������������� 482
BtrFS vs. EXT4��������������������������������������������������������������������������������������������������������������������������� 484
BtrFS Advantages���������������������������������������������������������������������������������������������������������������� 484
BtrFS and EXT4 Similarities������������������������������������������������������������������������������������������������� 485
EXT4 Advantages����������������������������������������������������������������������������������������������������������������� 486
Filesystem Structure with BtrFS����������������������������������������������������������������������������������������������� 486
How It Works����������������������������������������������������������������������������������������������������������������������������� 487

xv
Table of Contents

Creating BtrFS Filesystems������������������������������������������������������������������������������������������������������� 488


BtrFS RAID Structure����������������������������������������������������������������������������������������������������������� 491
Mounting BtrFS Filesystems����������������������������������������������������������������������������������������������������� 491
Exploring the BtrFS Volume������������������������������������������������������������������������������������������������������ 494
Notes on an Edge-Case BtrFS Failure��������������������������������������������������������������������������������� 496
Simplification���������������������������������������������������������������������������������������������������������������������������� 498
What Is a Subvolume?�������������������������������������������������������������������������������������������������������������� 501
Using BtrFS Subvolumes����������������������������������������������������������������������������������������������������������� 501
Converting from EXT to BtrFS��������������������������������������������������������������������������������������������������� 504
Using BtrFS as Swap����������������������������������������������������������������������������������������������������������������� 504
Cleanup������������������������������������������������������������������������������������������������������������������������������������� 504
OpenZFS: An Alternative������������������������������������������������������������������������������������������������������������ 504
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 505

Chapter 35: Getting Started with systemd����������������������������������������������������������� 507


Objectives��������������������������������������������������������������������������������������������������������������������������������� 507
Introduction������������������������������������������������������������������������������������������������������������������������������� 507
Learning to Love systemd��������������������������������������������������������������������������������������������������������� 508
Linux Boot���������������������������������������������������������������������������������������������������������������������������� 508
Controversy������������������������������������������������������������������������������������������������������������������������� 509
Why I Prefer SystemV���������������������������������������������������������������������������������������������������������� 510
Why I Prefer systemd���������������������������������������������������������������������������������������������������������� 510
The Real Issue��������������������������������������������������������������������������������������������������������������������� 511
Previous Work���������������������������������������������������������������������������������������������������������������������� 512
The systemd Plan to Take Over the World��������������������������������������������������������������������������������� 512
More Data for the Admin����������������������������������������������������������������������������������������������������� 514
systemd Standardizes Configuration����������������������������������������������������������������������������������� 516
Sometimes, the Pain������������������������������������������������������������������������������������������������������������ 516
systemd Tasks��������������������������������������������������������������������������������������������������������������������������� 517
Architecture������������������������������������������������������������������������������������������������������������������������� 518
Linux Startup with systemd������������������������������������������������������������������������������������������������� 519
systemd as PID 1����������������������������������������������������������������������������������������������������������������� 520
xvi
Table of Contents

Exploring Startup���������������������������������������������������������������������������������������������������������������������� 525


GRUB����������������������������������������������������������������������������������������������������������������������������������� 525
Targets��������������������������������������������������������������������������������������������������������������������������������� 529
About the Current Target����������������������������������������������������������������������������������������������������� 530
Using systemd Units����������������������������������������������������������������������������������������������������������������� 536
The systemd Suite��������������������������������������������������������������������������������������������������������������� 536
Unit Files������������������������������������������������������������������������������������������������������������������������������ 537
systemctl����������������������������������������������������������������������������������������������������������������������������� 539
Service Units����������������������������������������������������������������������������������������������������������������������� 544
Mounts the Old Way������������������������������������������������������������������������������������������������������������� 547
Creating a Mount Unit���������������������������������������������������������������������������������������������������������� 550
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 552
Exercises����������������������������������������������������������������������������������������������������������������������������������� 553

Chapter 36: Advanced systemd Functions����������������������������������������������������������� 555


Objectives��������������������������������������������������������������������������������������������������������������������������������� 555
systemd Calendar and Time Spans������������������������������������������������������������������������������������������� 555
Definitions��������������������������������������������������������������������������������������������������������������������������� 556
Calendar Event Expressions������������������������������������������������������������������������������������������������ 557
Exploring systemd Time Syntax������������������������������������������������������������������������������������������� 558
Using systemd Journals������������������������������������������������������������������������������������������������������������ 564
The Journal�������������������������������������������������������������������������������������������������������������������������� 565
The systemd Journal Service���������������������������������������������������������������������������������������������� 566
Configuration����������������������������������������������������������������������������������������������������������������������� 566
About That Binary Data Format…��������������������������������������������������������������������������������������� 567
Using journalctl������������������������������������������������������������������������������������������������������������������� 569
Journal Storage Usage�������������������������������������������������������������������������������������������������������� 582
Analyzing systemd Startup and Configuration�������������������������������������������������������������������������� 588
Startup Overview����������������������������������������������������������������������������������������������������������������� 588
Managing Startup with systemd����������������������������������������������������������������������������������������������� 600
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 615
Exercises����������������������������������������������������������������������������������������������������������������������������������� 616

xvii
Table of Contents

Chapter 37: systemd Finale���������������������������������������������������������������������������������� 617


Objectives��������������������������������������������������������������������������������������������������������������������������������� 617
Introduction������������������������������������������������������������������������������������������������������������������������������� 617
Calendar Event Expression Review������������������������������������������������������������������������������������������� 617
systemd Timers������������������������������������������������������������������������������������������������������������������������� 620
Creating a Timer������������������������������������������������������������������������������������������������������������������ 623
Timer Types������������������������������������������������������������������������������������������������������������������������� 632
Home Directory Security with systemd-homed������������������������������������������������������������������������ 634
What Is It?���������������������������������������������������������������������������������������������������������������������������� 634
Creating Controlled Users���������������������������������������������������������������������������������������������������� 635
The homectl Command������������������������������������������������������������������������������������������������������� 635
Limitations��������������������������������������������������������������������������������������������������������������������������� 636
But I Don’t Want It!�������������������������������������������������������������������������������������������������������������� 636
Resource Management with systemd��������������������������������������������������������������������������������������� 636
Using cgroups for Process Management����������������������������������������������������������������������������� 637
Exploring the cgroup Hierarchy������������������������������������������������������������������������������������������� 640
Managing cgroups with systemd���������������������������������������������������������������������������������������� 644
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 644
Exercises����������������������������������������������������������������������������������������������������������������������������������� 645

Chapter 38: D-Bus and udev��������������������������������������������������������������������������������� 647


Objectives��������������������������������������������������������������������������������������������������������������������������������� 647
/dev Chaos�������������������������������������������������������������������������������������������������������������������������������� 647
About D-Bus������������������������������������������������������������������������������������������������������������������������ 648
About udev�������������������������������������������������������������������������������������������������������������������������� 648
Naming Rules���������������������������������������������������������������������������������������������������������������������������� 651
Making udev Work�������������������������������������������������������������������������������������������������������������������� 652
A Basic Script���������������������������������������������������������������������������������������������������������������������� 652
Refining the Rule into Something Useful���������������������������������������������������������������������������������� 661
Security������������������������������������������������������������������������������������������������������������������������������������� 663
udev in the Real World�������������������������������������������������������������������������������������������������������������� 663

xviii
Visit https://ebookmass.com
now to explore a rich
collection of eBooks and enjoy
exciting offers!
Table of Contents

Chapter Summary��������������������������������������������������������������������������������������������������������������������� 664


Exercises����������������������������������������������������������������������������������������������������������������������������������� 664

Chapter 39: Using Traditional Logs����������������������������������������������������������������������� 665


Objectives��������������������������������������������������������������������������������������������������������������������������������� 665
About Traditional Logs��������������������������������������������������������������������������������������������������������������� 665
logrotate������������������������������������������������������������������������������������������������������������������������������������ 668
Log File Content������������������������������������������������������������������������������������������������������������������������ 671
messages���������������������������������������������������������������������������������������������������������������������������� 672
secure���������������������������������������������������������������������������������������������������������������������������������� 674
dmesg���������������������������������������������������������������������������������������������������������������������������������� 676
Following Log Files������������������������������������������������������������������������������������������������������������������� 678
logwatch����������������������������������������������������������������������������������������������������������������������������������� 680
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 690
Exercises����������������������������������������������������������������������������������������������������������������������������������� 691

Chapter 40: Managing Users�������������������������������������������������������������������������������� 693


Objectives��������������������������������������������������������������������������������������������������������������������������������� 693
Introduction������������������������������������������������������������������������������������������������������������������������������� 693
The Root Account���������������������������������������������������������������������������������������������������������������������� 694
Your User Account��������������������������������������������������������������������������������������������������������������������� 694
Your Home Directory����������������������������������������������������������������������������������������������������������������� 695
User Accounts and Groups�������������������������������������������������������������������������������������������������������� 695
The /etc/passwd File����������������������������������������������������������������������������������������������������������� 697
nologin Shells���������������������������������������������������������������������������������������������������������������������� 702
The /etc/shadow File����������������������������������������������������������������������������������������������������������� 702
The /etc/group File�������������������������������������������������������������������������������������������������������������� 708
The /etc/login.defs File�������������������������������������������������������������������������������������������������������� 708
Account Configuration Files������������������������������������������������������������������������������������������������� 709
Password Security�������������������������������������������������������������������������������������������������������������������� 709
Password Encryption����������������������������������������������������������������������������������������������������������� 710
Generating Good Passwords������������������������������������������������������������������������������������������������ 712

xix
Table of Contents

Password Quality����������������������������������������������������������������������������������������������������������������� 715


Managing User Accounts���������������������������������������������������������������������������������������������������������� 716
Creating New Accounts������������������������������������������������������������������������������������������������������� 716
Creating New Accounts by Editing the Files������������������������������������������������������������������������ 720
Locking a User Account������������������������������������������������������������������������������������������������������� 722
Deleting User Accounts������������������������������������������������������������������������������������������������������� 723
Forcing Account Logoff������������������������������������������������������������������������������������������������������������� 725
Setting Resource Limits������������������������������������������������������������������������������������������������������������ 726
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 731
Exercises����������������������������������������������������������������������������������������������������������������������������������� 731

Chapter 41: Managing the Firewall���������������������������������������������������������������������� 733


Objectives��������������������������������������������������������������������������������������������������������������������������������� 733
Introducing Firewalls���������������������������������������������������������������������������������������������������������������� 733
Ports������������������������������������������������������������������������������������������������������������������������������������ 734
Firewall Rules��������������������������������������������������������������������������������������������������������������������������� 736
Firewall Tools���������������������������������������������������������������������������������������������������������������������������� 737
Block (Almost) Everything��������������������������������������������������������������������������������������������������������� 738
Crunchy on the Outside������������������������������������������������������������������������������������������������������������� 739
firewalld������������������������������������������������������������������������������������������������������������������������������������ 739
firewalld Zones�������������������������������������������������������������������������������������������������������������������� 740
Using --reload���������������������������������������������������������������������������������������������������������������������� 759
Zone Files���������������������������������������������������������������������������������������������������������������������������� 760
Panic Mode�������������������������������������������������������������������������������������������������������������������������� 763
firewall-config GUI��������������������������������������������������������������������������������������������������������������� 764
nftables������������������������������������������������������������������������������������������������������������������������������������� 765
Outbound Blocking�������������������������������������������������������������������������������������������������������������������� 766
Fail2ban������������������������������������������������������������������������������������������������������������������������������������ 766
Chapter Summary��������������������������������������������������������������������������������������������������������������������� 770
Exercises����������������������������������������������������������������������������������������������������������������������������������� 771

Index��������������������������������������������������������������������������������������������������������������������� 773
xx
Random documents with unrelated
content Scribd suggests to you:
more than, those of the skilled foremen who supervised their work.
Rumor naturally exaggerated the real position, but there was plenty
of evidence available to justify many of the stories that were current
as to boys’ earnings.” It was noted that “boys do not seem to mind
monotonous work if they are well paid for it,” and rates for the older
boys were at times actually higher for unskilled and semi-skilled than
for skilled occupations. In one typical munitions district their wages
averaged somewhat as follows:[240]
Age Unskilled Semi-skilled Skilled
14 3-3½d. an Hr. 4-4½d. 4-4½d.
15 —— 4½d. 5-6d.
16 6d. 6d. 5d.
17 7d. 7d. 6d.

The rates fixed by the Ministry of Munitions for girls under


eighteen indicated the high level reached in their wages also. For
girls under sixteen they were roughly equivalent to the minima fixed
by the trade boards for adult women, and were somewhat higher for
girls between sixteen and eighteen. The increases granted up to the
end of the war made the standard weekly time rate on “men’s work”
23s. 9d. ($5.70) for girls under sixteen, 25s. 9d. ($6.18) for girls of
sixteen, and 27s. 9d. ($6.66) for those of seventeen. On piece work
30 per cent for girls under sixteen, 20 per cent at sixteen, and 10
per cent at seventeen was deducted from the rates of adult women.

Hours
Along with the relaxation of hour limitations on women’s work,
the similar restrictions on “protected persons” under eighteen were
modified. The result of the relaxation of standards was thus
described by the Health of Munition Workers Committee:
The weekly hours have frequently been extended to sixty-seven,
and in some instances even longer hours have been worked. The
daily hours of employment have been extended to 14, and
occasionally even to 15 hours; night work has been common;
Sunday work has also been allowed, though latterly it has been
largely discontinued.[241]
Working hours for boys under eighteen were given more
specifically in an “inquiry into the health of male munition workers,”
made for the committee between February and August, 1916. The
investigation followed the same lines as its companion study on the
health of female workers, including an examination of over 1,500
boys under eighteen and their working conditions. It was found that
“large numbers of boys,” many of them just over fourteen, were
“working a net average of sixty-eight and one-half hours per week.”
In some cases boys under fourteen had a forty-eight hour week,
“but in others boys of eighteen were found to be working an average
of over eighty hours per week and it was ascertained that they had
worked ninety and even a hundred hours per week.”[242] It is not
surprising that the investigator concluded that “hours tend to be too
long for the proper preservation of health and efficiency.”
In most cases the Home Office claimed that it had allowed
Sunday work only under rather strict conditions. “The Home Office,
as a rule, only authorizes Sunday work on condition that each boy or
girl employed on Sunday shall be given a day in the same week, or
as part of a system of 8 hour shifts in which provision is made for
weekly or fortnightly periods of rest. Apart from this, permission for
boys over 16 to be employed periodically on Sunday was on July 1
last [1916] only allowed in seven cases, and in three cases for boys
under 16. In only one instance are boys employed every Sunday, but
this is limited to boys over 16, and the total weekly hours are only
about 56. In only one case are girls employed periodically on
Sunday, and there the concession is confined to girls over 16.”[243]
The employment of girls under 16 at night had been permitted only
“in one or two cases ... through exceptional circumstances.” In
March, 1916, it was stated that the cases were “under review with
the object of arranging for the discontinuance of such employment
at the earliest possible moment.”
The recommendations of the Health of Munition Workers
Committee called for a considerable improvement in these
standards. “The hours prescribed by the factory act [sixty] are to be
regarded as the maximum ordinarily justifiable, and even exceed
materially what many experienced employers regard as the longest
period for which boys and girls can usefully be employed from the
point of view of either health or output.” Nevertheless, “in view of
the extent to which boys are employed to assist adult male workers
and of limitation of supply, the committee, though with great
hesitation, recommend that boys should be allowed to be employed
on overtime up to the maximum suggested for men, but every effort
should be made not to work boys under 16 more than sixty hours
per week. Where overtime is allowed substantial relief should be
insisted upon at the week ends, and should be so arranged as to
permit of some outdoor recreation on Saturday afternoon.” But for
girls “similar difficulties did not often arise,” and the committee
advised weekly hours of sixty or less and brought forward the claims
of the eight hour, three shift system. Under the exceptional
circumstances existing, the committee believed that overtime might
be continued on not more than three days a week for both boys and
girls, provided the specified weekly total of hours was not exceeded.
The absolute discontinuance of Sunday work was strongly
advised. “The arguments in favor of a weekly period of rest ... apply
with special force in the case of boys and girls; they are less fitted to
resist the strain of unrelieved toil, and are more quickly affected by
monotony of work.... It is greatly to be hoped that all Sunday work
will shortly be completely stopped.”
In regard to night work, an earlier report of the committee,[244]
published in January, 1916, held that girls under eighteen should not
be employed on a night shift “unless the need is urgent and the
supply of women workers is insufficient. In such cases the
employment should be restricted to girls over 16 years of age,
carefully selected for the work.” But for boys, “it does not seem
practical to suggest any change of system, but the committee hope
that care will be taken to watch the effect of night work on individual
boys and to limit it as far as possible to those over 16.” In the
subsequent memorandum on “Juvenile Employment,” the committee
“remained of the opinion that girls under eighteen and boys under
sixteen should only be employed at night if other labor can not be
obtained. Wherever possible it should be stopped.”
The interdepartmental committee on hours of labor, organized
late in 1915, which based its action on the recommendations of the
Health of Munition Workers Committee, was instrumental in securing
improved regulations for protected persons in munition factories as
well as for women. The general order of September 9, 1916, made
special arrangements for boys and girls over and under sixteen,
respectively. Sunday work was abolished for each of these classes of
workers. The maximum working week for girls was to be sixty hours,
as before the war. But girls between sixteen and eighteen, like adult
women, might work overtime on three days a week, provided the
weekly maximum was not exceeded. Boys over sixteen were
permitted to work as much as sixty-five hours a week, on three days
a week as long as twelve hours and a quarter, and twelve hours on
other week days. Under this scheme work on Saturday must stop
not later than 2 p.m. In “cases where the work was of a specially
urgent character,” the twelve hour day and sixty-five hour week, but
not the overtime, might be worked by boys of fourteen.[245] The
committee had already forbidden the employment of girls under
sixteen at night. The prohibition was extended by the general order
to boys under fourteen and girls under eighteen, and boys under
sixteen were allowed to do night work only in “urgent” cases.
Long as these hours seem according to American standards, they
undoubtedly represented a considerable reduction from the hours
worked by many munition plants during the early months of the war.
But it is doubtful if these standards were completely reached even in
the latter part of the struggle. An official report published shortly
after the armistice admits that “boys and girls of fourteen and fifteen
have been working for as much as twelve hours a day, sometimes
more, and have been employed for considerable periods on night
work.”[246] The Health of Munition Workers Committee, in its final
report dated April, 1918, was still obliged to recommend the
discontinuance of night work by girls between sixteen and eighteen
and urged that it was “undesirable” for boys under sixteen, though
in both cases it was decreasing. “Special concessions” allowing girls
under sixteen to work at night had by that time been withdrawn.

Safety, Health and Comfort


The action of the Ministry of Munitions looking to the betterment
of working conditions for women and girl munition workers, and the
“welfare” movement which followed in other industrial occupations
were described in the section on women workers.
The Ministry of Munitions urged the extension of “welfare
supervision,” on which it laid much stress, to boys as well as to
women and girls. Such action was among the recommendations of
the Health of Munition Workers Committee:
In the past the need for the welfare supervision
of boys has not been so widely recognized as in the
case of women and girls; present conditions have,
however, served to call attention to its urgency and
it is receiving the attention of an increasing number
of employers. Boys fresh from the discipline of a
well-ordered school need help and friendly
supervision in the unfamiliar turmoil of their new
surroundings. They are not men and can not be
treated as such. On the other hand, high wages and
the absence of the father have frequently tended to
relax home control. Long hours of work prevent
attendance at clubs; healthy and organized
recreation is seldom available. As might be
anticipated under these circumstances, complaint is
often made of boys leaving their work after a few
days or playing truant; this may be the result of
slackness and discontent, or the cause may be
found in fatigue, sickness or perhaps home troubles.
If smooth working is to be secured, the real causes
of such discontent and trouble must be ascertained
and appreciated. Experience, however, shows that
the problems involved are outside and distinct from
those of ordinary factory discipline, and they are
likely to remain unsolved unless someone is
specially deputed for the purpose.[247]
The Ministry’s instructions to the “investigating officers,” who
visited munition plants for the labor regulation department, also
drew attention to the need for “welfare supervision” of boys. “Since
it is recognized on all hands that there is a danger of deterioration in
the working boy between the ages of 14 and 18, it is of urgent
national importance that the boy should be brought under careful
supervision during these critical years of his life.” The duties of such
a supervisor as outlined in this and other official circulars, were
similar to those of the “welfare workers” for women and girls, with
perhaps more emphasis on training and advancement. A “welfare
supervisor of boys” or “boy visitor” should attend to their hiring,
discipline, and dismissal, and should watch their progress and
recommend for promotion, arrange opportunities for recreation,
technical education and saving, and take charge of the health
arrangements.
In its final report, in April, 1918, the Health of Munition Workers
Committee stated that about 150 supervisors had been appointed
during the previous year from a panel established by the Ministry of
Munitions. Most of them were wounded army officers who had been
discharged from active service. In many cases until they were
appointed proper use was not made of the health and comfort
facilities installed at the suggestion of the Ministry’s “Welfare
Section.”
Following the advice of these inspectors,
employers often installed canteens, washing
facilities, first aid arrangements and other
improvements in the factory. However, these usually
remained unused. Canteens were generally
deserted, since boys preferred to carry their food
from home; wash rooms were abused rather than
used, for crumpled towels made excellent footballs
and soap a convenient missile; while few boys
would bother going to the first aid kit for what they
regarded as a mere cut.
In spite, therefore, of the apparent opening for welfare
supervision of working boys, it developed but slowly. The lack of
suitable candidates, owing to the demands of military service, was a
serious handicap, though at the time of its report the committee
thought it had been “started on sound lines.”
The need for the welfare supervision of boys has
not been so readily appreciated as in the case of
women and girls, and time has been required for
obtaining the support of the foremen and the local
trades unions as well as of the employer. These
initial difficulties have, however, not been without
their advantages in preventing hasty or ill-
considered schemes.
Other indications of the growth of the movement were the
formation of a “Boys’ Welfare Association” by leading engineering
firms, and of a “Royal Ordnance Factories Trade Lads’ Association”
composed of the boys themselves, which drew its members
principally from Woolwich Arsenal. To coordinate the various clubs,
cadet corps and other organizations started by philanthropists, the
Home Office established a “Juvenile Organizations Committee” in the
latter part of 1916, to affiliate and coordinate all such clubs, and in
some cases to arrange financial aid. The committee took steps to
have local committees formed in all the larger cities. Some criticism
was made of the action by the Home Office on the ground that the
matter was within the province of the Board of Education. The latter
body issued a circular in December, 1916, inviting the local
authorities to allow the use of unoccupied schools in the evening for
recreation purposes. In August, 1917, it allowed grants for evening
play centers.

Effects of War Work


on Boys and Girls
Nevertheless, in spite of the various “welfare” efforts evidence
comes from many sources that war work had some most
unfortunate effects on both the health and the character of a
considerable number of boys and girls. “The view of those best
competent to judge is that in the generation which entered industry
between 1914 and 1918 vitality has been lowered, morale
undermined and training neglected,” said the Committee on Juvenile
Employment.
The high wages for unskilled work, absence of fathers in the
army and of mothers in munitions work, excessive hours of labor
and greater pressure of work, interruption of club and other
recreational and educational provisions, the darkened streets and
the general excitement of war time were among the principal factors
blamed for the change.
A vivid summary of the situation was made in March, 1917, in the
Final Report of the Departmental Committee on Juvenile Education
with Special Reference to Employment after the War, which gave a
depressing picture of the effect of the war on working boys and girls.
Upon this educational and industrial chaos has
come the war to aggravate conditions that could
hardly be made graver, and to emphasize a problem
that needed no emphasis. Many children have been
withdrawn at an even earlier age than usual from
day schools, and the attendances at those evening
schools which have not been closed show a
lamentable shrinkage. We are not prepared to say
that much of the work which is now being done by
juveniles in munition factories and elsewhere is in
itself inferior to the work which most of them would
have been doing in normal times, but there can be
no doubt that many of the tendencies adversely
affecting the development of character and
efficiency have incidentally been accentuated....
Parental control, so far as it formerly existed, has
been relaxed, largely through the absence of fathers
of families from their homes. Wages have been
exceptionally high, and although this has led to an
improved standard of living, it has also, in ill-
regulated households, induced habits of foolish and
mischievous extravagance. Even the ordinary
discipline of the workshop has in varying degrees
given way; while the withdrawal of influences
making for the social improvement of boys and girls
has in many districts been followed by noticeable
deterioration in behavior and morality. Gambling has
increased. Excessive hours of strenuous labor have
overtaxed the powers of young people; while many
have taken advantage of the extraordinary demand
for juvenile labor to change even more rapidly than
usual from one blind alley employment to another.
Among boy and girl munition workers evidences of a breakdown
in health were perhaps not general, but in a good many cases
children working at night or long hours were found to show signs of
exhaustion. In the 1915 report of the chief inspector of factories the
principal lady inspector stated:
Miss Constance Smith has been much impressed
by the marked difference in outward effect
produced by night employment on adult and
adolescent workers. “Very young girls show almost
immediately, in my experience, symptoms of
lassitude, exhaustion and impaired vitality under the
influence of employment at night.” A very strong
similar impression was made on me by the
appearance of large numbers of young boys who
had been working at munitions for a long time on
alternate day and night shifts.
The special investigator of the “health of male munition workers”
noted that 51 per cent of the 900 boys in one large factory
complained of sleepiness and weariness on the night shift. “It is
contrary to the laws of nature for young children—for such many of
these are—to be able to turn night into day without feeling an
effect.... On the night shifts, boys do not tolerate well long hours. It
has to be borne in mind that the average age of the boys examined
would certainly not exceed 15 years, and it makes one consider very
seriously the future of the rising generation.”
The same inquiry brought out the unfavorable effects of long
daily hours of work on young boys. While among all the 1,500 boys
examined “no very gross degree of ill health was prevalent,” 10.6 per
cent of those working more than 60 hours weekly, and only 6.7 per
cent of those working less than 60 hours, were not in “good”
physical condition. “This difference is a serious one.” In the heavy
trades “the effect upon the boys was commencing to show itself.
Many though little more than fourteen were working twelve hour
shifts and doing heavy work. The boys in these shops manipulate
heavy pieces of steel at a temperature of 900° F. They struck me as
being considerably overworked; they looked dull and spiritless, and
conversation with them gave the impression that they were languid.
In fact, all the boys in this group were working far too hard.”
The investigator contrasted with the poor condition of many boy
munition workers the “healthy and intelligent appearance” of the
boys in one factory where comparatively short hours, no night work
and free Saturday afternoons and Sundays gave them time for
outdoor play. “On the other hand, many of the boys I examined at
other factories are showing definite signs of the wear and tear to
which they are subjected. Pale, anemic, dull and expressionless,
their conditions would excite great commiseration. Conditions
outside the factory contribute their share and if the war is to
continue for a long time and these boys remain subject to conditions
such as described, the effect upon their general health will be
difficult to remedy.”
As with women, long periods spent in transit, insufficient sleep
and overcrowded homes, in addition to excessive hours of factory
work, often affected the health of working boys and girls. “While
engaged for twelve hours per day in the factory,” it was said of boy
munition makers, “they spend in a large number of cases from two
and one-half hours to four hours traveling to and from their
homes.... These hours, added to the working hours, leave very little
time for meals at home, recreation or sleep.”[248] Many boys and
girls failed to get enough sleep because of “the temptations of the
cinema and the amusements of the street.” In many cases, even
when wages were high, the Health of Munition Workers Committee
found that three persons occupied a single bed and four or five
shared a room. The following cases were given as typical. A boy of
fourteen, earning about 19s. ($4.56) weekly, slept in the same bed
with two young men, while two young girls occupied another bed in
the same room. A boy of sixteen, with wages averaging 22s. ($5.28)
a week shared a bed with another boy, while another boy and a girl
slept in the same room.
The deterioration in character among working boys was
apparently even more marked than the decline in health. According
to Mr. Leeson juvenile delinquency was 34 per cent greater during
the three months ending February, 1916, than for a similar period in
the previous year. In Manchester, the increase was 56 per cent; in
Edinburgh it was 46 per cent. The delinquency of boys twelve and
thirteen, the ages for which most of the school exemptions were
issued, had increased in greater proportion than that of any other
age group. In the London police district and ten large cities the
number of children convicted by Juvenile Courts increased from
11,176 in 1914 to 16,283 in 1917.
“When every allowance has been made for the inclination of each
generation to despair of the next,” said the special Committee on
Juvenile Employment during the War, “it is difficult to resist the
conclusion that a strain has been put upon the character of boys and
girls between fourteen and eighteen which might have corrupted the
integrity of Washington, and undermined the energy of Samuel
Smiles. The story of a boy who met his father’s attempt to assert
parental authority with the retort, ‘Wait to talk till you have earned
as much as I have,’ is hardly a caricature of the immense accession
both of earnings and of importance which has come, sometimes to
their misfortune, to lads of sixteen and seventeen.”
In feverish eagerness the boys spent their time
wandering from shop to shop, from work to works,
making short stays, frequently of only one or two
weeks, in search of the new El Dorado. Indentures
were thrown to the winds; places where useful
trades could be learned were left behind; entreaties
of employers were rejected; parents were often
treated with indifference. The persistence with
which the boys took up the trail to the great
machine shops and to the great national factories or
to any other place where the processes were
repetitive and the contracts ran into millions, can be
compared almost to the rush to the Klondyke....
Fearful that such large earnings would only be
temporary, they apparently determined to make hay
while the sun shone. They began to assume the
independence which their comparatively large
incomes seemed to justify. They sometimes became
reckless, spendthrift and extravagant. The gambling
instinct was kindled, the longing for adventure
became acute. The boys became restless and
unstable in the works. Avarice begat avarice, until,
in some cases, the boys set such a value on their
labor as to make them appear almost ridiculous.
[249]

Even certain labor organizations, which are


generally bitterly opposed to all such plans,
advocated attention to schemes of compulsory
saving or deferred payment, as a means of
preventing the waste of abnormally high wages.
[250]

Almost the only hopeful feature of the effect of the war on


working children is a changed point of view regarding their future
needs. The bad conditions, together with the losses of the great war,
roused greater interest in the conservation of childhood. The chapter
on “Peace and Reconstruction” will trace the growth of the
movement which, with respect to working children, recognizes that
many of them should be taken out of the labor market altogether,
that their opportunities for education should be improved, and that
their first years of work should be better supervised.
CHAPTER XIV
Effects of War Work on Women

The tremendous movement of women into industry and the shifting


from low paid to high paid occupations have given a foundation for a
permanent improvement in the economic status of women, and it is
hoped that their new independence and interest in public affairs will
survive postwar adjustments and remain as a permanent asset. The
physical endurance of many of the women doing war work was a matter
of constant comment. But the increase in the tuberculosis death rates
suggests that the final results of intensive and difficult work have not yet
been determined. However, certain definite effects of war work upon the
health, home life and personality of women and children should be
noted.

Health of Women War Workers


Definite investigations of the health of women workers were mainly
confined to the munitions industry and were made by the Health of
Munition Workers Committee. The general conclusion of the committee
that by the latter months of 1915 the health of the munition makers,
both men and women, had been injured through overwork, has been
much quoted in the United States:
Taking the country as a whole, the committee are
bound to record their impression that the munition
workers in general have been allowed to reach a state
of reduced efficiency and lowered health which might
have been avoided without reduction of output by
attention to the details of daily and weekly rests.
The committee’s statements about female workers alone were of
similar tenor:
The committee are satisfied that there is a
significant amount of physical disability among women
in factories which calls both for prevention and
treatment ... the lifting and carrying of heavy weights
and all sudden, violent, or physically unsuitable
movements in the operation of machines should, as far
as practicable, be avoided.... Prolonged standing should
be restricted to work from which it is inseparable.
Conditions of work are accepted without question
and without complaint which, immediately detrimental
to output, would, if continued, be ultimately disastrous
to health. It is for the nation to safeguard the devotion
of its workers by its foresight and watchfulness lest
irreparable harm be done body and mind both in this
generation and the next.
The committee desire to state that, in their opinion,
if the present long hours, the lack of helpful and
sympathetic oversight, the inability to obtain good,
wholesome food, and the great difficulties of traveling
are allowed to continue it will be impracticable to
secure or maintain for an extended period the high
maximum output of which women are undoubtedly
capable.[251]
The conclusions of the factory inspectors in 1915 as to the health of
women munition makers and the results of later investigation under the
auspices of the committee reiterate similar though perhaps slightly more
favorable conclusions. “Reports of inspectors from all parts of the
country” did not show that, as yet, the strain of long hours had caused
“any serious breakdown among the workers,” though there were
“indications of fatigue of a less serious kind.” “Individual workers confess
to feeling tired and to becoming ‘stale’; there are complaints of bad time
keeping, and there is a general tendency towards a reduction of
hours.”[252]
Two examinations of the health of large numbers of women munition
workers were made for the Health of Munition Workers Committee, the
first in 1915-1916 and the second in 1917. The first covered 1,326
women in eleven factories and the second 1,183 women in eight
factories. In both examinations nearly 60 per cent of the women were
pronounced “healthy,” about a third showed evidences of slight fatigue
and only the small remainder exhibited signs of “marked fatigue.”[253]
No. of Per Cent Per Cent
Date of No. of Per Cent
Women Slightly Markedly
Study Factories Healthy
Examined Fatigued Fatigued
1915-1916 1,326 11 57.5 34.0 8.5
1917 1,183 8 58.5 35.8 5.7

But these results were not believed to show the full burden of
overwork, since much was unrecognizable and since those worst affected
tended to drop out. The examination could only detect “definite and
obvious fatigue”, amounting almost to sickness. The physical defects
most frequently observed included indigestion, serious dental decay,
nervous irritability, headache, anemia and female disorders. These were
found in about a quarter of the women examined, but it is not stated
whether any of them were supposed to result from the employment.
In the manufacture of fuses, where fine processes involving close
attention were in use, some evidences of eye strain were found. In one
factory 64 per cent of the women in the fuse department had eye
defects, while only 19 per cent of those cutting shells by machine were
similarly affected.[254]
Another hazard to the overfatigued woman worker is suggested by
the increase in industrial accidents under the stress of long hours. With a
twelve hour day and seventy-five hour week, accidents to women were
two and a half times as frequent in one munition factory as when the
shifts were reduced to ten hours. At another shell factory, when the
working hours of men and women were equalized, lengthening the
women’s week nine and three quarters hours and reducing the men’s
nine and a quarter, the ratio of women’s to men’s accidents rose 19 per
cent for the day shift and 61 per cent for the night shift.
Factors likely to be injurious to health included the frequent twelve
hour shifts and the premium bonus system of payment. There were
numerous complaints of the strain of twelve hour shifts, which usually
entailed ten and a half hours of actual work. Particularly in the case of
married women with children the strain of these hours appeared to be
excessive. The factory inspectors stated in 1915 that especially at night
the twelve hour shift “for any length of time for women ... is undoubtedly
trying, and permissible only for war emergencies with careful make-
weights in the way of good food and welfare arrangements.”[255] The last
hours of the twelve hour night shift were often found to yield but little
additional output.
Such a judgment is not surprising when the nature of the work
frequently done by women munition makers is considered. To be sure,
such work as filling shells with explosive mixtures was easy and semi-
automatic; but other tasks, for example, examining and gauging,
although light, took much attention and exactness; and some work, such
as turning shells, was comparatively heavy. In lifting shells in and out of
the lathe women were obliged to stretch over the machine, which
involved a considerable strain on the arms with the heavier shells. For
shells over 40-50 pounds, special lifting apparatus was generally
provided, or a male laborer used to lift the shell, but women, in their
haste to proceed, sometimes failed to wait for help. A number of
compensation cases have arisen in which women were seriously injured
by heavy lifting. Yet a woman physician who had medical supervision of
several thousand workers from April, 1916, to November, 1918, decided
that if women were chosen with care they could perform without risk
operations formerly thought beyond their powers. The employes in
question were expected to lift shells up to sixty pounds without special
appliances, but women with pelvic or abdominal defects were not
allowed to enter this work.[256] Ten and a half hours, however, of the
heavier work might prove to be a serious strain.
Moreover, long train journeys were frequently necessary, adding two
or three hours to the time spent away from home. Out of seventy-five
women whose working hours began at 6 a.m. and ended at 8 p.m., none
had time for more than about seven and a half hours’ sleep, and many of
them less than seven hours. Only nineteen of these women were over
twenty years of age.
The premium bonus systems of payment, which became more and
more common, provided increased rates for increased output. In some
cases such systems were said to have proved “a strong temptation to
injurious overexertion.” One example was that of a woman who had “won
a ‘shift’ bonus by turning out 132 shells (nose-profiling) in one shift
where the normal output was 100 shells, and had as a result, to remain
in bed on the following day. When it was pointed out to her later that she
had acted foolishly, her reply was that she knew but she ‘wasn’t going to
be beat.’”[257]
As counteracting influences to these strains, several factors were
brought forward. Improved pay, and the more nourishing food, better
clothing and living conditions which women workers were often enabled
to secure were mentioned by a number of authorities, including the
Health of Munition Workers Committee, the factory inspectors, the
Association for the Advancement of Science, and the War Cabinet
Committee on women in industry. “The dietary was in most cases more
ample and suitable than the workers had been used to previously,” said
the investigators for the Health of Munition Workers Committee. It has
been observed that many well paid women gave up the supposedly
feminine habit of living on bread and tea for substantial meals of meat
and vegetables. The British Association for the Advancement of Science
noted a higher “physical and mental tone” due to the better standards
permitted by higher wages. The health of low paid workers frequently
improved after entering munitions work.[258] The improvements in
factory sanitation encouraged by the Ministry of Munitions were likewise
helpful in decreasing the risks to health, and the patriotic spirit of the
women also received mention as a partial preventive of fatigue. “The
excitement of doing ‘war work’ and making munitions added a zest and
interest to the work which tended to lessen the fatigue experienced,” said
the physicians who investigated the health of women munition workers
for the Health of Munition Workers Committee.

Effects of Night Work


It is generally believed that the wisdom of forbidding night work by
women has been clearly demonstrated by experience during the war.
Women, especially married women, did not stand night work as well as
men. The British Association for the Advancement of Science said, in
April, 1916:
It would be well if the experience of those industries
in which night work has become a temporary necessity
could be made widely known. The adverse effects on
output, not to mention the lowering of the health of the
workers, should be a sufficient safeguard against any
attempt permanently to remove the factory act
restriction.[259]
The earlier investigations of the Health of Munition Workers
Committee also confirmed the dangers of night work for women. In one
factory visited at night fatigue was found to prevent many of the women
from getting a meal at the rest period. In another “several women were
lying, during the meal hour, beside their piles of heaped-up work, while
others, later, were asleep beside their machines.”[260]
The night work in munition factories had once more emphasized, said
the committee, the “half forgotten facts” about its injurious effects on
women. “In a working class home the difficulty in obtaining rest by day is
great; quiet can not be easily secured; and the mother of a family can
not sleep while the claims of children and home are pressing upon her;
the younger unmarried women are tempted to take the daylight hours for
amusement or shopping; moreover, sleep is often interrupted in order
that the midday meal may be shared.”[261]
It must be acknowledged, however, that in its later interim report the
committee was somewhat less unfavorable to night work by women.
While it was found that continuous night work reduced output, a group of
women on alternate weeks of day and night work lost less time than
when on continuous day work. The committee did not, to be sure,
consider night work desirable, but inevitable during the war emergency
as long as production must be increased to its highest point. Because
they were especially likely to do housework during the day and to get
very little sleep, the physicians who examined women munition workers
believed night work to be “too heavy a burden for the average married
women.”
Aside from munitions work, the principal evidence as to health
conditions concerned women who were replacing men on outdoor work.
Observers generally expressed surprise at the improvement in health and
appetite which took place, even when the work was heavy. Fresh air,
better wages and better food were believed to account for the gains in
health. Some of the women who became railway porters found the work
too heavy, however, and the nervous strain often proved excessive for
women tram drivers.
A possible decline in health among women workers in general is
suggested by the fact of a 6 per cent increase in the death rate from
tuberculosis among women under forty-five which took place between
1914 and 1916. The Registrar General of Vital Statistics suggested that
this occurred because—
Many thousands of women are now for the first time
subjected to the workshop conditions which have
probably tended so much to maintain the mortality of
males at working ages in recent years. Young women
of the most susceptible ages have thus been subject to
risks of infection as well as of pulmonary disease
predisposing to tubercle which they would have
escaped in following their normal occupations; and both
from this cause and from the effect of workshop
conditions on women already infected a number of
women have probably died who would have survived
under peace conditions.
Special studies were made by the Health Insurance Medical Research
Committee to test this hypothesis, and they felt, that “further evidence
favoured its accuracy.”[262]
Summing up the none too comprehensive evidence on the effects of
four years’ war work on the health of women workers, the War Cabinet
Committee on women in industry did not feel that any extensive
breakdown in health had occurred. Higher real wages often led to better
nutrition and greater comfort, health supervision within the factory
diminished preventable sickness and the nature of the work frequently
stimulated the women’s interest and improved their health and physical
capacity. Yet “it is undoubted that a considerable amount of fatigue and
sickness has occurred.” The rise in the tuberculosis death rate was held
to be significant. The strain was believed greatest among married women
who had to carry the double burden of industrial work and domestic
responsibilities. But on the whole the war demonstrated that women
workers had a greater reserve of energy than they had been credited
with and might safely enter “more varied and arduous occupations” than
had been thought desirable before the war.

Effects of War Work


on Home Life
Unfortunately it seems probable that conditions of work in the
munition centers have been such as to have a disintegrating effect on
home life. Long working hours, frequent long train trips in addition to
those hours, overcrowded houses, the increased employment of married
women and of women at a distance from their homes have all
contributed to this result.
Two quotations, one from official, the other from labor sources,
illustrate the way in which home life was too often disrupted by
munitions work. According to the first:
While the urgent necessity for women’s work
remains, and while the mother’s time and the time of
the elder girls is largely given to the making of
munitions, the home and the younger children must
inevitably suffer. Where home conditions are bad, as
they frequently are, where a long working day is
aggravated by long hours of traveling and where, in
addition, housing accommodation is inadequate, family
life is defaced beyond recognition.... Often far from
offering a rest from the fatigue of the day, the home
conditions offer but fresh aggravation. A day begun at 4
or even 3.30 a.m. for work at 6 a.m., followed by 14
hours in the factory and another 2 or 2½ hours on the
journey back, may end at 10 or 10.30 p.m., in a home
or lodging where the prevailing degree of overcrowding
precludes all possibility of comfortable rest. In such
conditions of confusion, pressure and overcrowding,
home can have no existence.[263]
Beginning January, 1916, attention to the “welfare” of women
workers outside the factory by the Ministry of Munitions no doubt often
improved the conditions. But early in 1917 a committee of women labor
leaders still felt that home life had in many cases been disorganized.
The result of war conditions has naturally been very
marked in its effects on the health and well being of the
women and children at home. The demand for the work
of women ... has been such that a large number of
married women have been pressed into industrial
employment. This means, on the one hand, a certain
neglect of the duty of keeping their homes, and on the
other an extra and heavy burden on their strength in
order to fulfil, however inadequately, some part of
these necessary duties. The children, as well as the
women, have suffered from these results.[264]
To be sure, in the first months of the war the increase in family
income had often meant better food, but even this advantage tended to
disappear with the rapid rise in prices and the actual scarcity of certain
products which occurred from time to time.

Development of Personality
in Women War Workers
Nevertheless, surprising as it may seem in view of the harm which
war work appears often to have done to home life and sometimes to
health, the development of the woman industrial worker under it may
prove to be one of the most important changes wrought by the conflict.
An interesting article in The New Statesman[265] suggested that
“three years of war have been enough to effect an amazing
transformation,” in the average factory woman, especially in the munition
centers. They had gained an independence and an interest in impersonal
affairs seldom found before the war. “They appear more alert, more
critical of the conditions under which they work, more ready to make a
stand against injustice than their prewar selves or their prototypes. They
seem to have wider interests and more corporate feeling. They have a
keener appetite for experience and pleasure and a tendency quite new to
their class to protest against wrongs even before they become
intolerable.” It is “not that an entire class has been reborn, but that the
average factory woman is less helpless, and that the class is evolving its
own leaders.” The writer ascribed the change in the main to a wider
choice of employments, occasional gains in real wages, praise of the
women’s value in war service, and their discontent with the operation of
the munitions acts and other government measures:
Again, the brains of the girl worker have been
sharpened by the discontent of her family. She is living
in an atmosphere of discontent with almost all
established things. There is discontent because of the
high prices of milk and meat, because of the scarcity of
potatoes, sugar, butter or margarine, because of the
indigestible quality of the war bread, because of the
increased railway fares and the big profits of many
employers and contractors. There is discontent with the
discipline of the army, with the humiliating position of
brothers and husbands and sweethearts who are
privates, with the inadequacy of army pensions and the
delay in giving them. There is rage against the
munitions act, against munitions tribunals and military
tribunals. Every member of the family has his or her
grievance. The father perhaps is a skilled engineer and
is afraid that he is being robbed of the value of his skill
by the process of dilution. The eldest son is in the
army, and perhaps sends home tales of petty tyrannies,
and minor, avoidable irritations. Another son, with
incurable physical defects, is forced into the army and
falls dangerously ill. One daughter goes to another
town to work in a munitions factory, can not get a
leaving certificate, and barely earns enough to pay for
board and lodging. Thus the women of the family are
being brought more than ever before into contact with
questions of principles and rights. Questions of
government administration are forced upon their notice.
And in the factory the very men who used to tell them
that trade unionism was no concern of theirs are urging
them to organize for the protection of men workers as
well as of themselves.... The woman worker who was
formerly forbidden by her menfolk to interest herself in
public questions is now assured by politicians,
journalists, and the men who work at her side that her
labor is one of the most vital elements in the national
scheme of defence, and that after the war it is going to
be one of the most formidable problems of
reconstruction. Flattery and discontent have always
been the soundest schoolmasters. The factory woman
was a case of arrested development, and the war has
given her a brief opportunity which she is using to
come into line with men of her own class.
Though naturally more guarded in expression, the factory inspectors’
report for 1916 reflected a very similar opinion. The change was noted
principally among women substitutes for men. There, especially in heavy
work, “the acquisition of men’s rates of pay has had a peculiarly
enheartening and stimulating effect.” On the northeast coast in particular,
where prewar opportunities for women had been limited and their wages
very low, their replacement of men in shipbuilding, munitions, chemicals
and iron works had “revolutionized” the position of the woman worker.
“The national gain appears to me to be overwhelming,” it was stated
further, “as against all risks of loss or disturbance, in the new self-
confidence engendered in women by the very considerable proportion of
cases where they are efficiently doing men’s work at men’s rates of pay.
If this new valuation can be reflected on to their own special and often
highly skilled and nationally indispensable occupations a renaissance may
there be effected of far greater significance even than the immediate
widening of women’s opportunities, great as that is. Undervaluation there
in the past has been the bane of efficiency, and has meant a heavy loss
to the nation.”[266]
p The principal effects of the war on the woman worker were
strikingly reviewed by Dr. Marion Phillips, at a “conference of working
class organizations,” held at Bradford in March, 1917. Dr. Phillips held that
the roots of the change lay in the absence of millions of men from their
homes on military service and in the fact that for the first time the
demand for women workers was greater than the supply. As a result of
military demands, wives were deprived of their “dearest and most
intimate counsellors,” their husbands, and were obliged to form
independent judgments, but gained thereby a “new grasp of experience,
a widened outlook and greater confidence in their own judgment.”
The keen demand for women workers resulted in higher wages,
greater opportunities for promotion and more openings in the skilled
trades. Women learned their own value as workers and a growing desire
for equality with male workers was manifested. Higher wages enabled
women workers to obtain more food, and there was a general rise in
their standard of living.
On the other hand, Dr. Phillips notes as unfortunate results on women
workers, the increase in hours, night work and frequent entrance into
unsuitable occupations which overtaxed their strength. There had been a
great influx into industry of women with young children, and a “general
dispersion and scattering of home groups.” Many young women lived in
munition centers in hostels or lodgings away from the restraining
influence of family and friends. It was claimed that this system
encouraged too militaristic a discipline and unfortunate interferences with
the private life of the worker by employers and “welfare supervisors.” But
it is reassuring to see that Dr. Phillips, who is not likely to underestimate
the evils produced by the war, gives as her final judgment that “the good
effects were infinitely more important than the bad ones.”
CHAPTER XV
Peace and Reconstruction

To a far greater extent than in the United States, England, while


the war was still in progress, looked ahead to the problems which
would inevitably arise when the country shifted back to a peace
basis.
As early as the summer of 1916 discussion of methods of
adjustment from war to peace had begun. A “Ministry of
Reconstruction” was created in August, 1917, succeeding a
“Reconstruction Committee of the Cabinet,” which had been
appointed over a year earlier. It is noteworthy that as time went on
“the idea of reconstruction, of a simple return to prewar conditions,
was gradually supplanted by the larger and worthier ideal of a better
world after the war.”[267] The aim of the reconstruction movement
came to be not simply to tide over the transition from war to peace
but also to remedy the prewar evils which war experience had
disclosed.
Many conferences discussed “reconstruction,” and a multitude of
books and pamphlets kept the printing presses busy. The point of
view of labor was put forward in that remarkable document, “Labour
and the New Social Order,” later adopted as the platform of the
reorganized Labor party. A “Joint Committee on Labour Problems
after the War” representing the most important labor bodies also put
out a number of pamphlets on special subjects. The Ministry of
Reconstruction through numerous subcommittees dealt with a wide
variety of concrete problems, such as shipping, finance, the
allocation of raw materials, rural development, military
demobilization, health, housing and education. The “Civil War
Workers Committee,” the “Committee on Joint Standing Industrial
Councils,” and the “Women’s Advisory Committee on the Domestic
Service Problem,” were among those dealing with questions affecting
the woman worker. But when the armistice came many plans were
not complete, and in only a few cases had the machinery for putting
them into effect actually been created. So in spite of the really
remarkable extent of their attention to after war conditions the
English had after all to trust in large part to hastily improvised
schemes or to chance.
There were three principal problems affecting the woman worker
which pressed for attention during the reconstruction period. First,
the prevention of unemployment as the flood of war orders subsided
was alone sufficient to tax the resources of the best statesmanship.
[268] Second, there was the question of industrial opportunities for
the “dilutees,” who had taken up work formerly reserved for skilled
men under government pledges or unofficial agreements that pre-
existing conditions would be restored at the end of the war. Third,
equality of payment where men and women were doing similar work
had become a burning issue, responsible for no small share of the
labor unrest prevalent during the latter part of the war.
While unemployment prevention, though no small problem, was
merely a matter of industrial readjustment temporary in nature,
action on the other two questions promised to lead to an extensive
reconstruction of prewar conditions. In whatever was done it was
necessary to take into account the fact that the labor movement was
larger and more militant than before the war, with a definite program
which would not be satisfied even with the best of working
conditions, but which demanded a voice in the shaping of the whole
conduct of industry.

Postwar Unemployment among Women


It was generally anticipated that an unemployment crisis would
follow the cessation of war activities, in which, as at the beginning of
the struggle, women workers would suffer more than men, since so
large a proportion of them were working in war industries, taking the
places of men only for the duration of the war. Among munition
workers in the engineering trade “the great majority of male workers
will probably continue,” said the Civil War Workers Committee, “but
there can be little doubt that large numbers of women workers will
be definitely discharged.”[269] It estimated that 420,000 women
munition workers would lose their jobs at the end of the war. Public
attention was forcibly called to the danger by the sudden discharge
of several thousand women munition makers in the spring of 1917,
on account of a change in the kind of munitions needed. The women
were suddenly dismissed without the slightest provision for finding
them new positions—“turned off,” said one writer, “with as little
ceremony as one turns off the gas.” Although many women were
then needed in other branches of munition work there was, for a
time, much confusion and distress.
The official agency charged with developing a plan for the
prevention of unemployment among war workers was the “Civil War
Workers Committee” appointed by the Ministry of Reconstruction.
The committee was authorized to “consider and report upon the
arrangements which should be made for the demobilization of
workers engaged during the war in national factories, controlled
establishments, in other firms engaged in the production of
munitions of war and on government contracts, or in firms where
substitute labour has been employed for the duration of the war,”
and its six reports outline such plans in considerable detail. Most of
the recommendations applied to men and women alike. They
included the aid of the government principally through its
employment exchanges, in helping discharged war workers find
other employment, two weeks’ notice or two weeks’ wages to all
employes on government contracts, free railroad passes to those
who had left home to work on munitions and encouragement to
private employers, the government and foreign customers to place
postwar orders before the end of the conflict. As soon as there was
“a reasonable prospect of peace” the employment exchanges should
canvass employers for peace time openings and register available
employes. On the ground that it was impracticable to distinguish
between war workers and others and impossible to select with
assurance the trades most liable to unemployment during the
reconstruction period the committee advised a general extension of
the existing plan of unemployment insurance. On a scheme which
had received considerable comment in certain quarters, that of
granting every munition worker a month’s vacation with pay, the
committee reported adversely by a vote of twelve to seven.
In reviewing the probable position of women workers after the
war, the committee noted that outside the metal and chemical
industries, the bulk were in commercial and clerical occupations. It
recommended the establishment of still another committee to
“consider the conditions of women’s employment” in these lines. A
fairly comprehensive program for the “demobilization” of temporary
clerks in government departments was laid out. A special
employment exchange working with the Civil Service Commission,
the arrangement of training courses, special consideration to the
temporary clerks in making new appointments and determination of
the future position of women in government employment were
urged. But in behalf of clerical workers in private employment the
only recommendation was the provision, when necessary, of
advisory committees in connection with the employment exchanges.
Women farm workers were not believed to need help in adjusting
themselves and on the railways the future position of the women
could be settled only by agreement between the companies and the
unions.
Despite the protests of the workers and the efforts of official
committees, anticipations as to widespread unemployment were all
too accurately fulfilled. In the month before the armistice, October,
1918, the official Labour Gazette reported the state of employment
as “very good. Much overtime was worked in nearly all the principal
trades.” But by December there was “a marked decline in
employment, especially for women.” In the first week of the new
year, nearly 225,000 women were receiving the weekly “donations”
for unemployed war workers,[270] in contrast to 101,000 men. Four
months later, in May, of the 63,930 persons receiving reduced
donations after having been paid for thirteen weeks, nearly two-
thirds were women. The number of civilians in receipt of “donations”
rose each week until the first week in March, when it reached a total
of 494,000 women and 234,000 men. From that time on the number
of unemployed war workers gradually decreased, until on November
21, three days prior to discontinuance, there were only 34,271
female applicants for out-of-work donations.[271] Yet on the whole,
even though there was for a few months an alarming amount of
unemployment among women workers, officials held that British
industry adjusted itself to peace more quickly than it had to war. A
long list of factories which had changed from war to peace products,
for instance from airplanes to furniture and from fuses to electric
equipment, was given as early as February. Government control of
raw materials was used to aid the transition, and priority was given
to certain essentials in using the productive capacity set free from
war work.
The independence among women workers which had developed
during the war was reflected in their attitude during the period of
great unemployment. In the similar crisis at the beginning of the war
they had been inarticulate. But on February 15, 1919, their
organizations arranged a meeting in Albert Hall, London, attended
by women representing nearly every trade, at which women
speakers dwelt on the folly of unemployment while the country was
in need of all kinds of manufactured articles. Resolutions were
passed giving the three points of the “Women’s Charter”—“the right
to work, the right to live and the right to leisure.” It was held that all
workers by hand or brain should unite, and that work should be
provided for the unemployed. An adequate living wage, an eight
hour day and a forty hour week were advocated as standards for
working conditions. A deputation was organized to take the
resolutions to the Prime Minister, but apparently he did not reply to
them.[272]

You might also like