RHEL Subscriptions

To be able to use YUM on an RHEL server you need to register it with the RedHat servers. NB: You can do this with a Developer account, which is free! First register the system # subscription-manager register Next attach a subscription # subscription-manager list –available | awk ‘/Pool/ { system (“subscription-manager attach –pool=”$3) }’ […]

Shell Redirect

Discard the output Sometimes you will need to execute a command, but you don’t want the output displayed on the screen. In such cases, you can discard the output by redirecting it to the file /dev/null − $ command > /dev/null Here command is the name of the command you want to execute. The file […]


When set on a directory, Setting the setgid permission on a directory (e.g. “chmod g+s”) it causes new files and subdirectories created within it to inherit its group ID, rather than the primary group ID of the user who created the file (the owner ID is never affected, only the group ID).

SELinux and Ports

Here is an example of how ports are controlled by SELinux. Say that the port that apache uses was changed to 1000 when you start apache you get these errors [root@server01 conf]# systemctl status httpd httpd.service – The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/httpd.service.d └─php-fpm.conf Active: failed (Result: exit-code) […]

SELinux and file contexts

apache root document folder was changed from normal folder to /repos folder attempting to get index.html resutls in an error [root@server01 repos]# curl localhost/index.html Forbidden You don’t have permission to access /index.html on this server. set the correct context on the new folder [root@server01 repos]# semanage fcontext -a -t httpd_sys_content_t “/repos(/.*)?” check the context [root@server01 […]

How to manually update Plex in a FreeNAS jail

1) change to the plexmeduaserver directory root@plex:/ # cd/usr/local/share/plexmediaserver 2) stop the plexmediaserver service root@plex:/usr/local/share/plexmediaserver # service plexmediaserver stop Stopping plexmediaserver. Cleaning up leftover child processes. 3) Copy the plex update to the current directory 3) Unzip the Plex update (the exact name of the update will be slightly different to what is shown) root@plex:/usr/local/share/plexmediaserver […]

Ability Checks

To make an ability check, roll a d20 and add the relevant ability modifier. As with other d20 rolls, apply bonuses and penalties, and compare the total to the DC. If the total equals or exceeds the DC, the ability check is a success—the creature overcomes the Challenge at hand. Otherwise, it’s a failure, which […]

Next Page »