【发布时间】:2019-02-26 13:43:47
【问题描述】:
我发现当前用户没有/var/log的访问权限。
什么权限最适合它?
如何显示当前用户对文件夹/文件的访问权限?
user:bin soul$ ls -la /var/ | grep log
drwxr-xr-x 56 root wheel 1904 2 26 21:14 log
user:bin soul$ ./searchd -c ../etc/sphinx.conf
Sphinx 3.1.1 (commit 612d99f)
Copyright (c) 2001-2018, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '../etc/sphinx.conf'...
FATAL: failed to open log file '/var/log/searchd.log': Permission denied
shutdown complete
user:bin soul$
user:bin soul$ whoami
soul
user:bin soul$
【问题讨论】:
标签: macos permissions