User:Tom/RHCE EX300-2
< User:Tom
Jump to navigation
Jump to search
35 MariaDB
install mariadb mariadb-server mariadb test systemctl start mariadb systemctl enable mariadb
firewall-cmd --add-service mysql --permanent
mysql_secure_installation /usr/libexec/mysqld --help --verbose Information about all the settings show databases; use databases; create database dbname; create tsble tablename (name varchar(40),place varchar(40)); describe tablename; delete from tablename where field = value; update tablename set field = value where field2 = value; insert into tablename (field1,field2) values(value1,value2); where clause = <> > >= < >= BETWEEN LIKE IN
create user username@'localhost' identified by password; drop user 'username'@'localhost'; grant select,update,delete,insert on *.* to username@'localhost'; grant all priviliges on ...
36 NFS
37 Samba
man mount.cifs credentials= option
38 SMTP Server
39 Configure SSH
semanage port, man sshd_config, ssh-agent, ssh-add, ssh tunnel.
40 Time synchronisation
Chronyd daemon, chronyc command. ntp port 123. start, enable, firewall-cmd --add-service
List commands
getsebool -a List all selinux booleans
seinfo SELinux policy query tool
--all
-r List all roles
-t List all types (*-t)
-u List all users
semanage boolean --list List SELinux booleans with comments
semanage fcontext -l List all current rules