Debian :: Sudo No Tty Present And No Askpass Program Specified?
Apr 28, 2011
I am running an Ubuntu Server 10.10. I have installed Apache2, I put my perl script in /var/lib/cgi-bin. When I run this perl script from the terminal it works fine. When go to a web browser it doesn't. When I look at Apache's error log, I see this line :"sudo no tty present and no askpass program specified"I tried editing the sudoers file, with the user www-data ALL=(ALL) NOPASSWD:/path_to_my_script. But nothing changed. What am I doing wrong?
View 5 Replies
ADVERTISEMENT
Dec 9, 2010
In Ubuntu Customization Kit I get this error: sudo: no tty present and no askpass program specified So, I read up and found I could try oem-config-remaster which I installed through the USC (Ubuntu Software Center). I couldn't find the software in any menu so I tried to open it through the terminal. Here's the intel:
[Code]..
View 3 Replies
View Related
Mar 22, 2010
I have a problem with Opennebula that I have been trying t o solve for weeks, I have tried many options and have got nowhere. I have two HP ML115 servers configured to act as opennebula cluster nodes named opennebula01 and opennebula02. I have also installed the Front-end opennebula management deamon on node opennebula01. To use opennebula I have created a paswordless oneadmin user which seems to be ok because I can ssh to localhost and both nodes without a password. Using the onehost command I have created two hosts both tehse hosts are running correctly.
See Example1.
Periodically the opennebula monitoring system will fail, the problem I am having is that the logs keep showing the message:
"sudo: no tty present and no askpass program specified"
See example2
I have used the visudo command to change the sudoers Defaults visiblepw option but I just get a "root's password:root's password:sudo: pam_authenticate: Conversation error" error.
See Example 3 and Example 4.
Example1
========
oneadmin@opennebula01:/srv/cloud/images/ttylinux> onehost list
ID NAME RVM TCPU FCPU ACPU TMEM FMEM STAT
0 opennebula01 0 0 0 100 0 0 on
1 opennebula02 0 0 0 100 0 0 on
Example 2
=========
Tue Mar 16 23:16:10 GMT 2010
linux@opennebula01:~/Desktop> su oneadmin
Password:
oneadmin@opennebula01:/home/linux/Desktop> tail -f $ONE_LOCATION/var/oned.log
tail: /srv/cloud/one/var/oned.log: file truncated
Tue Mar 16 23:29:44 2010 [VMM][I]: Loading Virtual Machine Manager drivers.....
Example 3
=========
sudoers
# Comment out the preceding line and uncomment the following one if you need to use special input methods. This may allow users to compromise the root account if they are allowed to run commands without authentication.
#Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
#Defaults visiblepw
# In the default (unconfigured) configuration, sudo asks for the root password.
# This allows use of an ordinary user account for administration of a freshly installed system. When configuring sudo, delete the two following lines:
Defaults targetpw # ask for the password of the target user i.e. root
ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
# Added for opennebula to allow oneadmin to execute xen commands
%xen ALL=(ALL) NOPASSWD: /usr/sbin/xm *
%xen ALL=(ALL) NOPASSWD: /usr/sbin/xentop *
Example 4
=========
Tue Mar 16 23:49:20 2010 [InM][I]: Monitoring host opennebula01 (0)
Tue Mar 16 23:49:20 2010 [InM][I]: Monitoring host opennebula02 (1) .....
Conversation error
Tue Mar 16 23:50:22 2010 [InM][I]: /tmp/one-im//one_im-0ed949a4bd6f9d3a8e845559ac44e11f:70: undefined method `-' for nil:NilClass (NoMethodError)
Tue Mar 16 23:50:22 2010 [InM][I]: ExitCode: 1
Example 5
=========
oneadmin@opennebula01:/home/linux/Desktop> cd /tmp/one-im/
oneadmin@opennebula01:/tmp/one-im> ls -l
total 16
-rwxr-xr-x 1 oneadmin cloud 3121 2010-03-16 23:56 one_im-0ed949a4bd6f9d3a8e845559ac44e11f
-rwxr-xr-x 1 oneadmin cloud 170 2010-03-16 23:56 one_im-2b966ff3406441e176e9c1d82d536763
-rwxr-xr-x 1 oneadmin cloud 38 2010-03-16 23:56 one_im-34d4a5b5a67817fa9d403fa4be5a8493
-rwxr-xr-x 1 oneadmin cloud 32 2010-03-16 23:56 one_im-91090fd8b53b1cf7ce51f3e4215506e3
Example 6
=========
oneadmin@opennebula01:/tmp/one-im> cat one_im-0ed949a4bd6f9d3a8e845559ac44e11f
#!/usr/bin/env ruby .....
View 2 Replies
View Related
Nov 9, 2010
how do I make ssh-add use ssh-askpass-gnome instead of default ssh-askpass? System is OpenSuSe 11.3, both packages installed.
View 2 Replies
View Related
Nov 8, 2015
I'm looking to allow sudo for openvpn for a user.
I cannot find the openvpn program path though, i try a 'which openvpn' command and it returns nothing! :S
What is the path? or how to allow a normal user account to run openvpn with sudo?
Solution found:
Working directories for openvpn on debian 8 are:
/etc/openvpn
/usr/sbin/openvpn
To add sudo capability to a guest account, run this with your admin account:
Code: Select allsudo visudo
then add the line, with your guest username substituted:
Code: Select allusername  ALL=/etc/openvpn, /usr/sbin/openvpn
tada! guest account now runs only openvpn.
View 3 Replies
View Related
Jul 2, 2011
I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password
View 8 Replies
View Related
Jan 13, 2010
I have 9.10 at work and at home. At home it was installed from scratch. At work it's upgraded from 8.10->9.06(?)->9.10
- At work, when I do something over ssh, like subversion, and I have a key for that host, i am presented with a nice dialog box for my ssh key. and that's it. for the rest of my uptime, i can ssh to places without any hassle.
- At home, I'm presented with the key input prompt on the terminal. Even If I manually start ssh-agent, it still happens.
What package am I missing? I have the ssh-askpass-gnome on both.
View 4 Replies
View Related
Jun 7, 2010
Certain commands like:
fdisk -l
nmap -sT 192.168.0.1/24
iftop
require administrator privileges to run. A while ago i read a post(forgot where i read it) about being able to let a user run these commands in a script (that contains the desired command) created by the administrator/root without the user having to do a sudo and entering a password. Does anyone know how i can go about doing this?
View 3 Replies
View Related
Jan 6, 2011
I need to add a program to my startup menu (webserver which needs sudo for port80). I follow their directions, but it breaks the program and no pages are served. I will not be home to guide wife and kids every time they boot the machine to sudo start the program. How do you start a program at boot, as root or sudo start.
View 2 Replies
View Related
Feb 2, 2010
I cannot figure how to make a program start-up when Ubuntu boots. I want the "sudo firestarter" command to run so the firestarter icon appears in the panel.
View 7 Replies
View Related
Dec 5, 2010
I would like to mount several partitions into my dd of my /dev/sa, normally I do this with gdisk... however the gpt gdisk debian is not there into the leeny testing repositories... any ideas if it has moved into another packages
View 1 Replies
View Related
May 12, 2011
I originally installed Debian and configured it the way I want it without any problems. It was working perfectly and I was happy. I then tried openSuse. I did not like it and re-installed Debian five hours later. Now I have a strange problem. This is the third re-install. With the first two, after installing a few fonts the system says the fonts are present, but they cannot be displayed. I only get empty rectangles. The fonts are not available in office and there is no text at all on the internet. Only photographs and a few icons. This forum for example, only has lines separating the posts.
I do not know why there is a problem, because I am configuring the system the same as the first time; install scim and add a few fonts. The founts are not in packages, but I need them for some of the work I do in office. Since Debian uses this strange permissions system where the user is not considered the owner of his or her computer, I use gksu nautilus. I makes no difference if I leave the permissions of the fount folder as root or change it to me. I am completely at a loss. As I mentioned, I am doing the same thing I did the first time, so there should not be any problems.
View 12 Replies
View Related
Mar 1, 2010
I have an X11 GTK program, let's name it "foo".I would like to start it from command line, either from a text console, or from an ssh log-in. I want to run foo with Administrator privileges and in higher priority, and I need redirect standard output and standard error. Standard errors must go to syslog, except "libglade Warning" messages and empty line messages. Standard output is redirected to a file.I wrote a script, called "foo-start". The "foo" program must run continously, so the "foo-start" script should not wait for "foo"'s termination.The scrip actually looks likelike this:
cd "FOO'S DIR"
(sudo nice --10 ./foo --display=localhost:0 &) 3>&1 1>foo-output.log 2>&3 | grep . | grep -v lobglade-WARNING | loggerr -p local7.err -t foo &
[code]....
View 1 Replies
View Related
Jun 10, 2010
explain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?
Code:
sudo ifconfig eth0 down
sudo /etc/init.d/networking stop
View 3 Replies
View Related
Jan 2, 2011
I have a problem when I want to use su I get this error:Code:su: pam_start: error 26I have googled it so I found this topic (http://www.linuxquestions.org/questi...r-26-a-615024/) but it didn't really help me. There was a reply on that topic and his question was what the output of this was:
Code:
ldd /usr/bin/passwd
and
[code]....
View 4 Replies
View Related
Jun 6, 2010
I want to remove sudo so may existing user can only use su.But sudo is associated with dependence`s gnome and many more.How to remove damned thing Can i just remove sudo and then reinstall those 14 package`s, will this work ?
[18:21:47]madone~ $ sudo aptitude purge sudo gksu
Reading package lists... Done
Building dependency tree
[code]....
View 8 Replies
View Related
Sep 16, 2010
A day ago I finally got around to upgrading the PackageKit installation that had been sitting for a week and a half, so I found a new upgrade for sudo available - the one that gives the sudoreplay command, I forget which version number it is exactly. When I try to use the sudo command I get this notice in my terminal:Code:Can't open /var/db/sudo/me/1: Permission deniedI didn't get it before. What do I have to do to make it open? I'm using SELinux in enforcing mode if that helps.
View 1 Replies
View Related
Jan 6, 2011
Kernel 2.6.21.5, Slackware 12.0
Code:
Code:
On the other hand
Code:
So, I do not understand why the notification "sudo: cd: command not found", considering cd is a bash built-in command.
View 3 Replies
View Related
Mar 29, 2011
I installed Debian6 but sudo does not work, says: bash: sudo: command not found. and when I run the command: sudo apt-get install, I say E: Unable to locate package sudo.
View 9 Replies
View Related
May 23, 2015
[URL] .... On ubuntu sudo command works out of the box. Is above how you make sudo command work on debian 8?
View 6 Replies
View Related
Sep 27, 2015
I am trying to use sudo but it prompts that the password is wrong.
When I try to use gksudo everything is fine. I also can use su - without a problem.
I tried to add my user to sudoers and it seemed to work as you can see here:
Code: Select allronel : sudo root adm cdrom floppy audio dip video plugdev users netdev lpadmin
but it did not change the situation.
View 3 Replies
View Related
Jan 11, 2016
receive bash notice: "jim is not in the sudoers file."Just finished my first Debian install several hours ago, my first go around w/Debian. Installed 8.2 DVD ISO on USB. Had this issue from my first use in BASH, not a forgotten password problem. So 2 questions:
1) I'll be installing Debian again, and want to avoid this in future. There were 2 inputs on setup for name (my full name) and user (installer offered my first name which I accepted). 2 inputs for Password as well: I used the same password both times (have done this w/Mint & Ubuntu w/out issue).
2) How to fix this? Tried this: URL...however, neither keystroke got me to "rescue" prompt as article suggests. Several other articles presume an admin with privileges has sudo access to modify sudoers file.
I have multi-boot setup in BING environment (MBR, not EFI). I am booting from a GRUB2 ISO using grub commands as I still need GRUB installed in my boot partition until I can get cmd line access. I'm able to get a session on boot with the same password I used in setup.
View 14 Replies
View Related
Oct 1, 2010
I finally got my path to save so apachectl is in my path. I can execute apachectl start as a regular user, although the server wont start because there is some sort of lock. When I sudo apachectl start , I get sudo: apachectl:command not found. My visudo file looks like this:Defaults env_keep += "PATH"
User_AliasOWnER=blake
root All=(ALL) ALL
OWNER ALL= NOPASSWD:ALL
View 14 Replies
View Related
Mar 5, 2010
I've just installed Debian on my old iMac G3. The install seemed to go ok but failed to load to the GUI. Thats ok I'll just enter some lines into the xorg.conf and it will be fine, or so I thought. Now at the shell prompt when I type in any sudo command it says: "sudo command not found" Is there an alternate command I can use in this situation.
View 3 Replies
View Related
Jul 23, 2010
I'm having trouble signing in using the sudo in the terminal.
I enter in the line: sudo abc (username = abc)
I get the line returned: [sudo] password for abc:
If I enter my normal login pw i get the message:
abc is not in the sudoers file. This incident will be reported.
If I enter the root pw I get the message: Sorry, try again.
I've just set up the debian OS and am trying to learn the linux way but it's a bit frustrating. so when I set up the system originally It had me make two passwords one for root and one for my user acct. So how do I get the sudo terminal to work?
View 2 Replies
View Related
Sep 21, 2010
what is the easiest way to add single command to startup? (has to be run as root)
View 1 Replies
View Related
Jun 10, 2011
When I use sudo, command does not auto-complete with 'tab'. Perhaps its some sort of security measure? I'd like to turn it off, because its just annoying. Older versions of debian didn't have such problem. Using debian_testing_amd64.
View 4 Replies
View Related
Oct 26, 2010
As seen in this thread: viewtopic.php?f=20&t=50703xmessage is queuing a shutdown/reboot command, but if pressed, nothing happens. How do I get xmessage to send a textinput value to sudo?odify my execIsuma code to suit if you can, would make things much simpler.
View 8 Replies
View Related
Sep 21, 2015
Seems like this is a running issue. also, sudo returns "The value user is not in the sudoers file. This incident will be reported" kdeusu just makes a noise and returns nothing.. In the past i had a workaround of using nautilus, but, nautilus seems to be missing from jessie repo (same for gnome files).
[URL] ... ssoo... this happened and it seems to be going somewhere, but, i can't really make sense of it, and there was no solution..
Also found this [URL] .... and the pathnames should be fine but i don't want to go around arbitrarly entering commands
There was also [URL] .... which only mentions using kdesu which... doesn't really 'exist' anymore.
View 4 Replies
View Related
Jul 24, 2010
i would like to prevent all users other than the user "parker" on my system from using the su or sudo commands. I have not attempted to modify the sudoers file so it just contains the standard root ALL = (ALL) ALL.
View 5 Replies
View Related