Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-04-01 Thread Anubhav Yadav
Works For Me (tm). Thanks! It Worked! :) -- Regards, Anubhav Yadav Imperial College of Engineering and Research, Pune. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive:

Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-31 Thread Andrei POPESCU
On Du, 30 mar 14, 16:44:13, Anubhav Yadav wrote: This script is stored in home/neo1691/bin/ directory and the directory is added in the PATH variable by adding 'export PATH=${PATH}:/home/neo1691/bin' in my .~/.bashrc file ... 2) Is exporting the PATH variable like I had did is the correct

Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-31 Thread Anubhav Yadav
The default ~/.profile on Debian already has: # set PATH so it includes user's private bin if it exists if [ -d $HOME/bin ] ; then PATH=$HOME/bin:$PATH fi I think I am really messed up in that situation. If I run 'echo $PATH' in a terminal session then this is the

Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-31 Thread Andrei POPESCU
On Ma, 01 apr 14, 01:38:43, Anubhav Yadav wrote: The default ~/.profile on Debian already has: # set PATH so it includes user's private bin if it exists if [ -d $HOME/bin ] ; then PATH=$HOME/bin:$PATH fi I think I am really messed up in that situation. If I run

Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-31 Thread Anubhav Yadav
Don't know what rvm is, but I'm quite sure it didn't create your ~/.profile. rvm is ruby version manager[1]. I installed it recently when I started learning ruby on rails. But it did change yours. I don't like it when programs mess with my files. That's what, Did you see how i got so many

Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-31 Thread Andrei POPESCU
On Ma, 01 apr 14, 02:37:43, Anubhav Yadav wrote: And assuming that I have my .profile set up with my PATH variable that I want to use, I can create a ~/.xsessionrc and just source ~/.profile in it? That should work right? Works For Me (tm). Kind regards, Andrei --

Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-30 Thread Anubhav Yadav
Hi I have created a script called i3exit that allows me to suspend or hibernate my laptop without having to exit my i3wm thus allowing me to save my work. Here are the contents of my script: #!/bin/sh lock() { i3lock } case $1 in lock) i3lock -d -i

Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-30 Thread Linux-Fan
On 03/30/2014 01:14 PM, Anubhav Yadav wrote: Hi I have created a script called i3exit that allows me to suspend or hibernate my laptop without having to exit my i3wm thus allowing me to save my work. Here are the contents of my script: [...] This script is stored in home/neo1691/bin/

Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-30 Thread Karl E. Jorgensen
Hi On Sun, Mar 30, 2014 at 04:44:13PM +0530, Anubhav Yadav wrote: Hi I have created a script called i3exit that allows me to suspend or hibernate my laptop without having to exit my i3wm thus allowing me to save my work. Here are the contents of my script: #!/bin/sh lock() {

Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-30 Thread Anubhav Yadav
That is your problem: You have configured sudo to allow you to run i3exit as root. But you don't. You run i3exit as yourself (without sudo), and IT then uses sudo pm-suspend (and others). Two possible ways forward: - Call it using sudo i3exit and remove the calls to sudo from inside

Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-30 Thread Anubhav Yadav
Yes that worked! Thanks a lot! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/ca+jf9ah0b+swn6f3+frzy95jbwt8l-2rru_bfwpjju3ut2y...@mail.gmail.com