I've just set up LAMP and all seems to be working okay. I am trying to get phpMyAdmin to work. I keep getting a 403 error. I think it is because httpd user does not have access to the appropriate directory. My questions is a reasonably simple one. What command line command do i use to check the permissions for another user? Ie i am logged in as root and want to see what the file permissions are for user httpd.
Thanks for you help.
ls -ld /path
用目录的绝对路径替换'path'
ls -l
will list you all files along with the persmissions
a sample entry would be
d __rwxr-xr-x__ 2 user 4096 Apr 18 00:05 css
This highlighted part represents permission
First 3 letters -> Owner
Next 3 letters -> Group
Last 3 letters -> Others
r -> Readable, w -> writable, x -> Executable.
In this particular example, owner can read, write and execute, group members and others can only read and execute,
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.