【发布时间】:2017-01-06 02:04:53
【问题描述】:
lameta01dev:/tmp/test> ls -ltra
total 20
drwxrwxrwt 14 root root 12288 2016-08-29 14:21 ..
-rw-r--r-- 1 root root 19 2016-08-29 14:24 a.sh
drwxr-xr-x 2 root root 4096 2016-08-29 14:24 .
lameta01dev:/tmp/test> whoami
apgimage
lameta01dev:/tmp/test> sh a.sh
hello world
问题:如果我以 apgimage 身份登录,当文件所有者为 root 时,我如何使用“sh a.sh”命令提取 a.sh?
【问题讨论】:
标签: shell ubuntu terminal permissions