Linux – How do I set the default ‘chmod’ in the Linux terminal?

How do I set the default ‘chmod’ in the Linux terminal?… here is a solution to the problem.

How do I set the default ‘chmod’ in the Linux terminal?

The previous question was just to understand what I was doing: How to change permissions for a folder and its subfolders/files in one step

So if I change chmod to 755 for chmod 75/

opt/lampp/htdocs and restart the system, I want the file to be at chmod 755.

Solution

Once set, Linux file system permissions are not affected by rebooting the system, unless you run some non-standard software at startup that returns to change them to default.

Related Problems and Solutions