ABHIONLINUX
Site useful for linux administration and web hosting

2009/12/16

Check file and directory permissions under present working directory

Below commands can be used to check file and diretcory permissions under the present working diretcory (pwd)

* Check files with permission 755

root@master [~]# find $x -type f -perm 755

* Check files with permission 777

root@master [~]# find $x -type f -perm 777

* Check diretcory with permissions 777

root@master [~]# find $x -type d -perm 777

* Check diretcory with permissions 000

root@master [~]# find $x -type d -perm 000

You can change the permissions to the value you you want to search.

SoftException in Application.cpp:303 UID of script is small than min_uid

If you see the below error in your logs then that means that the script is owned by a user (generally root) instead of the actual user.

SoftException in Application.cpp:303: UID of script “/location/path/.php” is smaller than min_uid

You can receive similar error when you have a wrong group name, in this case instead of UID, you will have GID in the error.

To fix this issue, make sure you have correct user and group ownership for the file that you are trying to access. Ownership can be changed using the below:

chown usernmame:groupname filename.php