差分

移動先: 案内検索

ユーザ権限とアクセス制御

92 バイト除去, 2018年12月13日 (木) 17:48
/* プロセスのユーザIDとグループID */
<syntaxhighlight langpre class="bash">
$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
hironobu 2796 0.0 1.0 8752 6716 ? R 12:14 0:05 emacs20 -geometry
...
</syntaxhighlightpre>
=== 現在の権限管理 ===
<syntaxhighlight langpre class="bash">
$ find /bin -perm +a+s -exec ls -l {} \;
-rwsr-xr-x 1 root root 26252 Mar 3 2012 /bin/fusermount
-rwsr-xr-x 1 root root 31116 Sep 13 2012 /bin/su
-rwsr-xr-x 1 root root 67720 Mar 30 2012 /bin/umount
</syntaxhighlightpre>
<syntaxhighlight langpre class="bash">
$ find /bin -perm +g+s -exec ls -l {} \;
</syntaxhighlightpre>
<syntaxhighlight langpre class="bash">
% ps -eo user,group,args | grep httpd
root root /usr/sbin/httpd
apache apache /usr/sbin/httpd
apache apache /usr/sbin/httpd
</syntaxhighlightpre>
== ACL ==