If, when viewing a file in the browser, an error message appears that says the page cannot be viewed or it is only ‘writable’, then the file or its parent folder has a permission problem.
Solve the problem
Use the following method to change the directory/folder and/or file permissions on the ONID web server using a terminal application and Unix commands.
Launch a Terminal Application
- Search for and launch the Terminal App on your Mac computer. For Windows, search for PuTTY. You may need to download and install it first.
- File → New Terminal.
Type Unix Commands into the Terminal
- Type
ssh -l ** shell.onid.oregonstate.edu
Replace ** with your ONID user name. - Enter your ONID password.
- Type a
1
to indicate that you accept the Duo push to your phone or other Duo 2-factor authentication device. - Type
ls
to list all of the ONID folders. - Type
cd public_html
to change to the public directory and typels
to view its folder and file list. - If you transferred your file already but got the error message, then type
chmod 755 about/index.php
Terminal chmod file permissions change - If you want all recursive files and folders to have the same permissions, then type
chmod 755 -R about
. Replace the about folder name with any other folder name that needs Recursive permissions.
Test
From a browser, view the folder/file you changed to ensure the permissions were changed on the server.