SSH into Linux Terminal to Change Folder Permissions

Summary

This article explains how to access the Buffalo State Linux server and modify your folder permissions so you don't get the 404 access denied message upon viewing your site.

Body

This article applies to Computer Information Systems students who are required to create a website on the Linux server (bsuacad.buffalostate.edu). The first step is to change the permissions to your folder as explained below.

Instructions for Windows users

  1. Download the latest version of Putty from https://www.putty.org/
  2. When you open Putty you will need to configure the connection as follows (replacing "Username" with your Buffalo State username):

enter host

  1. When the PuTTY Security Alert appears, click Accept.

putty security alert

  1. A terminal window will appear like the one below. When it does, enter your Network password (the same one you use for Brightspace).

terminal window

Please Note: As you type in your password you won't see any stars (or any other indication). You are typing though.
  1. Press the Enter key when you have finished typing your password. You are now logged into your Linux share on the bsuacad.buffalostate.edu server.
  2. Copy and paste or write this into the terminal window:

chmod a+rxt -R . 

Note that period after the -R space

  1. Test to see if your website is reachable now: http://bsuacad.buffalostate.edu/~username/

Instructions for MacOS/OSX users

  1. Press Command + Spacebar and type "Terminal".

terminal window

  1. A terminal window will appear like the one below. When it does, enter ssh username@bsuacad.buffalostate.edu (replacing "Username" with your Buffalo State username).
  2. Enter your Network password (the same one you use for Brightspace).
Please Note: As you type in your password you won't see any stars (or any other indication). You are typing though.
  1. Press the Enter key when you have finished typing your password. You are now logged into your Linux share on the bsuacad.buffalostate.edu server.
  2. Copy and paste or write this into the terminal window:

chmod a+rxt -R .

Note that period after the -R space

  1. Test to see if your website is reachable now: http://bsuacad.buffalostate.edu/~username/ 

Instructions for Linux users

Same as MacOS with your terminal emulator of choice.

Details

Details

Article ID: 62191
Created
Wed 9/12/18 12:44 PM
Modified
Tue 9/10/24 12:52 PM