Tag: Linux

  • 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 –auto-attach that enter your username and password. or add –username=<username> –password=<password> onto the end of the above…

  • Yum groups

    # yum groups list # yum groups info “Development Tools” # yum groups install “Server with GUI”

  • Setgid

    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).

  • Setting up SSH to use key pairs

    If you SSH to the same server a lot and don’t want to type the password each time you can configure SSH so you don’t have to. First login to your terminal as normal and run $ ssh-keygen This will ask you the name of the key pair file you want to use. It will…

  • 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…

  • Connecting to Your Linux Instance Using SSH – Amazon Elastic Compute Cloud

    http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

  • Can’t access web server on AWS EC2 instance

    Go to Network & Security, then security groups. Select the Security Group for the server. Select the Inbound tab. Make sure both SSH and HTTP and selected. I had to add a rule for HTTP

  • Configure Solaris 10 to listen for X forwarding

    I think you will also need to enable the x11-server listener as well. $ svccfg -s x11-server listprop options/tcp_listen options/tcp_listen boolean false $ pfexec svccfg -s x11-server setprop options/tcp_listen = true $ svccfg -s x11-server listprop options/tcp_listen options/tcp_listen boolean true