The following users are initially available for admin tasks: # : “root” user, created upon RHEL 9 installation $ : NEM security administrator, defined during FOXMAN‑UN installation Note: Some commands can only be performed as “root” user. | |
To open a Terminal Window on Gnome Desktop | Applications > Utilities > Terminal |
To switch user: e.g., an administrator user to “root” user: “root” to an administrator user: | $ su – root # su – nemsecadm |
To change the password of a user, including “root” | passwd <username> |
To check the redhat-release | cat /etc/redhat-release |
To obtain system ID | Run the <systemid> script available from the FOXMAN‑UN installation DVD. <dvd_mount_point>/systemid If FOXMAN‑UN is already installed: /opt/nem/bin/private/systemid If the Ethernet interface is not recognized make sure an entry lic_if enp0s25 or similar exists in the /opt/nem/etc/nem.conf file |
To shut down and restart the server | shutdown -r now |
To remove FOXMAN‑UN software Note: You need to close the NEM Client before uninstalling FOXMAN‑UN. | /opt/nem/share/uninstall/rmnem |
Basic Networking: | |
To show the IP address(es) and status of the Ethernet interfaces | nmcli |
To check network connectivity | ping <IPaddress or DNSname> |
To activate the configured network interfaces | systemctl restart NetworkManager.service |
Remote connection via ssh | ssh -X root@<host> ssh -X nemsecadm@<host> |
Disk Space Management: | |
To show system’s disk space usage in “human-readable” form | df –h |
To view the system’s partitions and disk space usage in graphical format | gnome-system-monitor Click the Filesystem menu |
To show the total disk usage of a directory | du -hs |
To show the disk usage of each subdirectory | du –h * |
FOXMAN‑UN Basic Operation: | |
To stop the FOXMAN‑UN components | nemstop |
To restart the FOXMAN‑UN components | nemstart |
Check if the FOXMAN‑UN components are active | lsnem |
View FOXMAN‑UN system information | nemsysinfo |
File Management: | |
To search for a file | e.g to find pg_hba files: find / -name *pg_hba* |
To view/edit file content | vi </path/<filename>> e.g.: vi /opt/nem/etc/nem.conf To enter edit mode, press “i” Alternatively, use gedit, e.g. gedit /opt/nem/etc/nem.conf |
To leave vi edit mode | press “Esc” key |
To save changes and exit vi mode | :wq! |
To just save changes in vi mode | :w! |
To exit vi mode without saving the changes: | :q! |
To securely copy one or more files to or from a remote system | sftp user@remote-host (also allows usage of “heredocs” which are useful for redirecting multiple commands) |
To create other FOXMAN‑UN user account | /opt/nem/bin/nemuser –a –u <login name> |
Create access right for the user (only for users with sufficient permissions) | NEM Desktop > NEM Configurator > Role Based Access Control |