Novell LINUX ENTERPRISE DESKTOP 10 SP2 - DEPLOYMENT GUIDE 08-05-2008 Deployment Manual page 194

Table of Contents

Advertisement

Example 8.3 Removing Multiple Users
#!/bin/bash
#
# the home will be not deleted
# to delete homes, use option delete_home
#
for i in `cat /tmp/users.txt`;
do
yast users delete username=$i
done
8.13.2 Configuring the Network and Firewall
Network and firewall configuration commands are often wanted in scripts. Use yast
lan for network configuration and yast firewall.
To display the YaST network card configuration options, enter yast lan help. To
display the YaST firewall card configuration options, enter yast firewall help.
The network and firewall configurations with YaST are persistent. After reboot, it is
not necessary to execute scripts again.
To display a configuration summary for the network, use yast lan list. The first
item in the output of
is a device ID. To get more information about the configuration of the device, use yast
lan show id=<number>. In this example, the correct command is yast lan
show id=0.
Example 8.4 Sample Output of yast lan list
0
The command line interface of the YaST firewall configuration is a fast and easy way
to enable or disable services, ports, or protocols. To display allowed services, ports,
and protocols, use yast firewall services show. For examples of how to
enable a service or port, use yast firewall services help. To enable mas-
querading, enter yast firewall masquerade enable.
178
Deployment Guide
Example 8.4, "Sample Output of yast lan list"
Digital DECchip 21142/43, DHCP
(page 178)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents