The reason for this is an update along the way with sudo locked it down further by adding the below line to /etc/sudoers configuration file.
1 Defaults requiretty
To allow a remote script to login and run a command via sudo simply comment out that line as shown below.
1 # Commented out so remote script can login and run a command without a tty
2 # Defaults requiretty
If requiretty is set, sudo will only run when the user is logged in to a real tty. This will disallow things like 'rsh somehost sudo ls' since rsh does not allocate a tty; because it is not possible to turn off echo when there is no tty present.
Комментариев нет:
Отправить комментарий