Debian :: Program Path For Openvpn And Allow Sudo For Guest

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:


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


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 View Related

General :: Sudo Sometimes Changes PATH And Not Others?

Jan 22, 2011

If I try "shutdown" as a normal user on Debian it give the "command not found" error. OK it's not in my PATH. But if I "sudo shutdown" it works. Somehow sudo seems to change my PATH.

Do the same in Slackware however and sudo makes no difference, I get "command not found" each time.

View 8 Replies View Related

General :: Passing PATH Through Sudo?

Jan 21, 2010

In short: how to make sudo not to flush PATH everytime?

I have some websites deployed on my server (Debian testing) written with Ruby on Rails. I use Mongrel+Nginx to host them, but there is one problem that comes when I need to restart Mongrel (e.g. after making some changes).

All sites are checked in VCS (git, but it is not important) and have owner and group set to my user, whereas Mongrel runs under the, huh, mongrel user that is severely restricted in it's rights. So Mongrel must be started under root (it can automatically change UID) or mongrel.

To manage mongrel I use mongrel_cluster gem because it allows starting or stopping any amount of Mongrel servers with just one command. But it needs the directory /var/lib/gems/1.8/bin to be in PATH: this is not enough to start it with absolute path.

Modifying PATH in root .bashrc changed nothing, tweaking sudo's env_reset and env_keep didn't either.

So the question: how to add a directory to PATH or keep user's PATH in sudo?

Update: some examples

$ env | grep PATH
$ sudo cat /etc/sudoers | egrep -v '^$|^#'
Defaults env_keep = "PATH"


View 4 Replies View Related

Ubuntu :: Sudo Not Picking Up Command In PATH?

Jan 20, 2010

On my Ubuntu server I'm running into an issue that I've never seen before even though I've been using Linux for many years. Basically sudo is not finding a command located in my path. Here is a transcript illustrating the problem.

prg ~: echo $PATH
prg ~: sudo echo $PATH


View 7 Replies View Related

Ubuntu :: Accidentally Broke Sudo's Path?

Apr 13, 2010

When I try to run almost any command with sudo, it returns sudo: command: command not found. When I run sudo echo $path, it returns a blank line. Is there a command to set its path back to the default?

View 2 Replies View Related

Ubuntu :: Sudo Does Not Preserve PATH As Expected?

Jun 11, 2010

I'm attempting to add a directory to PATH so it's available when I sudo. (I do not want to sudo -i), but it's not behaving as I expect.I've added a line to add the directory to PATH in all of these files:



View 4 Replies View Related

General :: Sudo Path Variable Error

May 28, 2010

I'm having a strange issue with the PATH variable when running the command 'sudo su'. When executing this command the PATH variable changes. No problems there, but it changes to:


Looking at this, there are two weird entries (//sbin and //bin) which should both start '/usr' instead. I'm not sure how I've managed to change this, or how a piece of software I'm using has done it (more likely it was me I expect), but could anyone suggest which file to look in to correct it? If it makes a difference the machine is running CentOS 5.

View 2 Replies View Related

Red Hat :: Setup User's PATH Env When Sudo Command In RHEL5 ?

Dec 16, 2008

In RHEL5, the PATH of root is /sbin and /usr/sbin...., the PATH of common user has not /sbin or /usr/sbin, how to give the /sbin and /usr/sbin to a common user when he run command which sudo?

View 3 Replies View Related

Software :: Adding Sth - To All Users PATH Variable - Sudo Included

Aug 3, 2010

I've installed rubygems on ubuntu, but it has a known issue that the rubygems' bin/ directory is not in the PATH. I know about exporting the PATH variable, and adding it to .bashrc, but I'd like to configure it so that every user has it on his PATH, even if he tries to run it with sudo. Where should I export the PATH variable then?

View 2 Replies View Related

Ubuntu Security :: Apparmor Profiles - Sudo Aa-logprof / Path To Firefox Allowed All When Asked

Jul 29, 2011

I am using FF ver 5.0.1 from here After reading [URL] I did Code: sudo aa-logprof /path to firefox Allowed all when asked. But when I try to start FF in enforce mode I get


View 9 Replies View Related

Ubuntu :: Make Sudo Act More Like The Debian Sudo?

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

OpenSUSE :: Putting A Program In Path?

Jun 12, 2011

I am not sure does the title make sense with regards to my query.I am using OS 11.4 gnome.I installed a program (PLINK v1.07) by compiling its source.i compiled the source code in the following folder using "make"

Which created an executable file plink.


View 2 Replies View Related

General :: Find Out Path Of Program?

May 20, 2011

On Unix I can call certain programs from everywhere, like sort, pwd or How can I find out, where on the system really resides?

View 2 Replies View Related

Ubuntu :: Program Path For Document Viewer?

Mar 19, 2010

I've been searching the site to find out what the program path is for Ubuntu programs, but can't find what I'm looking for. My search terms were :

- "program path" Ubuntu
- change "program path"
- "open with" "program path"

I came across a few articles but nothing really seemed to help me. Here's the problem; anytime I try to open a PDF file from my browser, I get either the "Open With..." option or the "Save to..." option.

If I select "Open With..." the default has been changed to Virus Scanner (ClamTK) which I recently installed. Admittedly, I was fooling around with virus scanners to see how they work in Ubuntu. But now my Document Viewer won't open up the PDF files. If I select "Save to..." and save the PDF file(s) to my desktop, and double-click the PDF file from my desktop, then Document Viewer will open up the file. What is the program path for me to change the default program back to Document Viewer???

View 6 Replies View Related

Ubuntu :: Make A Link To A Program That Needs A Certain Path?

Aug 10, 2010

in order to play "Gish" - I need to cd .gish./gish- otherwise it won't find it's files - it need the working path, how can I put that in a sigle line in my games menu ?

View 2 Replies View Related

Ubuntu :: The Program Optiping Is Missing Or Is Not In Path?

Jul 30, 2011

does anyone else have this error?im on an Alienware m9750in order for me to install ubuntu, i had to change the boot options with thenouvea.modeset=0and i was able to boot to ubuntu 11.04 and then install it from there, and i installed my correct drivers for the video

View 1 Replies View Related

Ubuntu Installation :: JDK - Set The Path - Unable To Run A Single Program

Jun 3, 2010

I have downloaded the jdk-6u20-linux-i586.bin from their website. I also read the instruction given to install jdk manually but i was not able to run a single program. Can someone give a step by step instruction to install jdk and also tell me how to set the path so i can easily execute the programs.

View 9 Replies View Related

Programming :: Get Path Of One Library To Link It Dynamically In Program?

Apr 28, 2010

I'd like to get path of one library to link it dynamically in my program. Probobly the best way would be to add macro to my file.

View 2 Replies View Related

Ubuntu Security :: Allow Program To Be Run As Administrator Without Sudo?

Jun 7, 2010

Certain commands like:
fdisk -l
nmap -sT

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

Ubuntu :: Sudo - Add A Program To Startup Menu

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

Ubuntu :: Terminal Program That AutoComplete Path And File Names

Mar 23, 2010

Atleast I think it's a terminal program. I remember several years ago while using Redhat 7 when working in the terminal it would automatically complete the pathnames and filenames for you. If I was typing in the terminal "cd downloads" but I only typed "cd do" it would automatically complete my command with "cd documents" but if I continued to type "cd dow" it would know that I don't mean the documents folder and it would know the only other folder path with a dow in it is downloads. I'm not sure if my description is 100% accurate but I think you get the idea. Ubuntu doesn't seem to have this by default and I'm curious if I can get it. Is it a terminal program/client I need to use, or just an option? I don't know what it's called so I've had a hard time googling for it!

View 9 Replies View Related

Ubuntu :: Installed A Program But Can't Find Its Path For Startup Manager?

Nov 15, 2010

I installed a new program called the "Android Notifier Desktop 0.2.1" and within the program it say to use the systems startup manager to start the program with every system boot.I have no idea where to begin looking for the programs file and main start up link.

View 9 Replies View Related

Ubuntu :: Making Program To Load With Sudo On Startup?

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

General :: Seeking Shortcut To Execute A Program With A Supplied Local Path?

Sep 14, 2011

A program requires local path property to perform correctly.I'm seeking shortcut command to execute a program with a supplied localPath For example, cd /usr/local/blogrmis/usr/local/blogrmis/remote & remote program requires local path @ /usr/local/blogrmis to there any shortcut which i can do it in 1 line?

View 2 Replies View Related

Ubuntu Networking :: Network-manager-openvpn And Static-key OpenVPN Connection In 9.10

Apr 5, 2010

i have some problems with configuring openvpn tunnel connection to my openvpn server. I'm using static-key tcp connection. Network manager always said to me that connection could not be established. Also, when i try to run openvpn from terminal, i got some strange permissions problem:


openvpn --config config.ovpn
Mon Apr 5 15:48:37 2010 OpenVPN 2.1_rc19 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Oct 13 2009
Mon Apr 5 15:48:37 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Mon Apr 5 15:48:37 2010 /usr/sbin/openvpn-vulnkey -q moj.key


View 1 Replies View Related

Fedora :: Openvpn Certificate \ Installed Openvpn And Config It For A Tunnel?

Aug 9, 2010

i have installed openvpn and config it for a tunnel. my server.conf and client,conf is as follow:

port 1194
proto udp


View 1 Replies View Related

Server :: OpenVPN Range Address / When Change Static IP To Dynamic IP In Config File OpenVPN Didn't Work?

Feb 13, 2010

I want to configure a VPN over the Internet.I installed the 'openvpn' package, generated the key file, transfered it by a secure way to the client, and setted up the configuration file.

So, in that configuration file I input the IP addresses of the tunneled interfaces. Both IPs are static in the tunnel.

Then, I've heard somewhere that I can assign a dynamic configuration IP for the client. I do this registering a range.

Well, when I tried to change static IP to dynamic IP (changing '' to '') in the configuration file, the OpenVPN didn't work.

Obviously I don't know what I'm doing, and I really, don't believe that simply changing the IP will make it work, but I tried.

I hope I explained my problem as well.

My configuration file:

# OpenVPN Server Configuration File
dev tun 0
cd /etc/openvpn
secret key_file

In client I execute the 'openvpn' without the '--daemon' parameter.Then I want that my client uses a IP in a range (, for example), instead of a static IP ( also thought to use a DHCP server, but I'm not sure that will work.

View 6 Replies View Related

General :: Difference Between PATH=$PATH:$1 & PATH=$1:$PATH?

Jan 16, 2011

I found the following function in /etc/profile file.


1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??

2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH

View 14 Replies View Related

Ubuntu Servers :: Install The Guest Additions For A VM Running A Guest Lucid Lynx?

May 11, 2010

I'm trying to install the Guest Additions for a VM running a guest Lucid Lynx Server. The problem I'm encountering is this: The vboxadd-install.log for vbox says it "couldn't find the sources of your current Linux kernel" and to "Specify KERN_DIR=<directory> and run Make again."

View 4 Replies View Related

Copyrights 2005-15, All rights reserved