274
1.877.877.2269
BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.877.2269
CHAPTER 15: CONFIGURATION FROM THE COMMAND LINE
15.1.15 ADMINISTRATION
To change the administration settings to:
TABLE 15-12. ADMINISTRATION SETTINGS
SYSTEM SETTING
VALUE
System name
og.example.com
System password (root account password)
A-simple-little-secret-for-2.
Description
Device in office 2
Run the following commands:
# config -s config.system.name=og.example.com:
# config -P config.users.user1.password
# config -s "config.system.location="Device in office 2"
The second command has an interactive aspect. The -P parameter will prompt the user for a password. Enter the desired string and
press Return: config will accept and encrypt the string.
NOTE: Any config element value can be encrypted using the -P parameter. Only encrypted user passwords and system passwords are
supported, however. If any other element value is encrypted, the value becomes inaccessible and will have to be re-set.
An alternative to the second command above is:
# /etc/scripts/user-mod -P root
The following command will synchronize the live system with the new configuration:
# config -r auth
15.1.16 IP SETTINGS
To configure the primary network interface with the following static settings:
TABLE 15-13. IP SETTINGS
NETWORK INTERFACE SETTING
VALUE
IP address
192.168.0.23
Netmask
255.255.255.0
Default gateway
192.168.0.1
DNS server 1
192.168.0.1
DNS server 2
192.168.0.2