I wanted to access files php5 folder on \var\lib\php5, but I got permission denied. I use Ubuntu 14.04 LTS. Is it Ubuntu lock the permission for the folder and need root access? Your help and information is great appreciated,
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
As you can see, command
namei -mo /var/lib/php5 output is:
drwxr-xr-x root root / drwxr-xr-x root root var drwxr-xr-x root root lib drwx-wx-wt root root php5
php5 folder permission
drwxthis is a directory and the owner (root) has read, write and execute permission
-wxusers in root group have write and execute permission, they can't read
-wtother users have write and execute permission, but can't read.
talso tell that this folder can be removed only by the owner
If you want to read this folder you need
root privilege, so try this command:
sudo ls /var/lib/php5
According to sudo manual:
sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.
Be careful to use
sudo command, because gaining root permissions, you can do anything and if you mess up, you can compromise the system.
namei -mo /var/lib/php5command output?