Reading Time: 6 minutes
What Are Linux File Permissions?
Setuid, Setgid and Sticky Bits are special types of Unix/Linux file permission sets that permit certain users to run specific programs with elevated privileges. Ultimately the permissions that are set on a file determine what users can read, write or execute the file. Linux provides more advanced file permissions that allow you to do more specific things with a file, or directory. Typically, these file permissions are used to allow a user to do certain tasks with elevated privileges (allow them to do things they normally are not permitted to do). This is accomplished with three distinct permission settings. They are setuid, setgid, and the sticky bit.
Continue reading “How Do I Set Up Setuid, Setgid, and Sticky Bits on Linux?”
Reading Time: < 1 minute
Tutorial: cPanel File Manager
This tutorial assumes you’ve already logged in to cPanel’s File Manager
- To change the permissions of a file, select it first. Single click on “testfile.html”.
- Click on Change Permissions.
You will see a popup window with some checkboxes. Let’s understand this window first.
There are three type of owners of the file.
- User – means you.
- Group – the users from your website, who have access to these files.
- World – end users who access your site via a web browser.
These are read, write and execute options. Each row give access to read, write and execute files.
In this case, User will have access to read and write this file.
Group will have only read access.
And World will have Read access only.
Please note that unless any particular script needs special permissions, a file should always have 644 permissions, and a Folder should always have 755 permissions.
- To set 755 permissions, just check the boxes appropriately.
- Now click on Change Permissions to apply these changes.
Reading Time: 3 minutesUnderstanding file permissions is key to running a web server. Permissions control which users can read a file, make changes to a file, or execute a file/script/etc.
Continue reading “New User Tutorial: Basic File Permissions”