diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-08-11 07:11:32 +0900 |
---|---|---|
committer | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-08-11 07:11:32 +0900 |
commit | 8958c08a0309b22a58d7559217516f13a26e2036 (patch) | |
tree | 1132dbfabec98fdad6e5eb5a1c11aa0405889cbc /docs | |
parent | 41c309ff3d87b4916b6b9f2328309630780a6452 (diff) |
fix requiretty check, use 'sudo -l'
A normal user doesn't have a right to read /etc/sudoers, so current
script won't work if executed by non-root users.
This patch replacing the check by geeting config from 'sudo -l'
command.
Change-Id: I608edabb73761cea0f6199045f1cde2217a34bf3
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions