Hi
I am trying to automate the deployment of a tar ball onto a set of remote servers and am getting this error from the ssh -
Code:
sudo: no tty present and no askpass program specified
What I have done is add some code into the user's ssh key that does a few things like delete the existing directory structure and untar the new one and so on.
I keep getting this error and have tried several ways discussed online to fix this and none are working for me.
When I create new Ubuntu 12.10 instances, I typically bootstrap them by manually SSHing onto the machine and editing the sudoers to put a NOPASSWD on the default user (e.g., ec2-user, azureuser, etc.). Then my install scripts can sudo various commands without having to provide a password.
I don't have anything against passwords.
Hi,
I am new to scripting. I am trying to write a script to ssh one remote machine and run a sudo command.
ssh <hostname> sudo -S <command> < ~/pass.txt
I am stored my password in pass.txt.
I am getting error sudo: no tty present and no askpass program specified
Please suggest me how can i do this
Smb4K
Version 0.10.4
Using KDE 4.3.5 (KDE 4.3.5)
I seem to keep getting this error when I try and mount a folder from the file server. I never seem to have a issue before till a update not long ago.
sudo: no tty present and no askpass program specified
Hi
I have an Oracle DBA that is trying to install an RPM from Stratavia which is a web based portal and it executes the following:
Code:
Instance Wrapper=sudo -u oracle /opt/datapalette/jython/jython
Server Wrapper=sudo -u root /opt/datapalette/jython/jython
I've compared the /etc/sudoers file with another sudoers of a server where this was done successfully, but both file are identical
I'm configuring sudo module in puppet according to this code
class sudo {
package { sudo:
ensure => present,
}
if $operatingsystem == "Ubuntu" {
package { "sudo-ldap":
ensure => present,
require => Package["sudo"],
}
}
file { "/etc/sudoers":
owner => "root",
group => "root",
mode => 0440,
source => "puppet://$puppetserver/modules/sudo/
Right... after having far too many problems with other brown-coloured distros, I moved my MythTV box to SuSE (what all the other machines here use).
Everything is working, EXCEPT for one thing: automatic idle shutdown.
I cannot get MythWelcome to shut down the machine automatically (choosing shutdown now from it's menu does work). The log shows
sudo does not work.
I have installed Arch onto a USB key, using BTRFS.
The output of "sudo" is:
$ sudo
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
$ ls -l /etc/sudoers
-r--r----- 1 root root 2849 May 18 15:00 /etc/sudoers
$ lsattr /etc/sudoers
--------------- /etc/sudoers
$ strace -u ross sudo true