Access denied – Call ‘chmod’, May be ?
Have you ever experienced a message saying politely that you have no privileges to perform an action? I am pretty much sure that all of you may have that experience. Like for an example, suddenly your DB server stopped you have to restart the server to continue your work, but the remote user which you are using has not the right access which Oracle ( DB user ) has ( Yes, We had faced a related situation recently! )
Since we are dealing with servers & most servers are Linux based machines, we need to figure a way to handle permission related things on Linux. So then our speaker, ‘chmod’ comes to action.
There are few things you needed to know before you proceed,
- r – Read permission
- w – Write permission
- x – Execute permission
- + – Adding permission
- – – Revoking permission
You can check the revised access permission by simply type,
ls -la <file_name>
In this case, It should be, ls -la test1
Likewise you can revoke access permission by following below command,
chmod u-rx <file_name>