Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 08-05-2008 Installation Manual page 208

Hide thumbs Also See for LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 08-05-2008:
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.
190
Installation and Administration
Example 8.4, "Sample Output of yast lan list"
Digital DECchip 21142/43, DHCP
(page 190)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents