hwy用戶在/root/shell目錄下:sh test.sh啓動時,需要該用戶在shell/有x權限
假設hwy用戶在/目錄下:sh /root/shell/test.sh,需要用戶在root有x權限
==> 用戶需要對文件(絕對路徑or相對路徑)的父目錄有操作權限!
hwy用戶在/root/shell目錄下:sh test.sh啓動時,需要該用戶在shell/有x權限
假設hwy用戶在/目錄下:sh /root/shell/test.sh,需要用戶在root有x權限
==> 用戶需要對文件(絕對路徑or相對路徑)的父目錄有操作權限!