install/install.py skip sudo password #519

Closed
SpoonBoy opened this Issue Oct 22, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@SpoonBoy

I just recently cloned the owtf project on a Kali Sana, and was asked to run the following command : python2 install/install.py
I did so, but I forgot I was running it with a non-sudoer user.
So, I just Ctrl+C and the script kept on downloading the requirements.

python2 install/install.py 
[*] Great that you are installing OWTF :D
[!] There will be lot of output, please be patient

(1) Kali Linux
(2) Samurai-WTF
(0) My distro is not listed :(
Select a number based on your distribution : 1
[*] Running following command
sh /home/user/git/owtf/install/kali/install.sh /home/user/git/owtf

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for user: 
user is not in the sudoers file.  This incident will be reported.
[sudo] password for user: 
[*] Installing pip
[*] Switching to /tmp/owtf-install/pip/6157
@viyatb

This comment has been minimized.

Show comment
Hide comment
@viyatb

viyatb Oct 22, 2015

Member

Hi, you need sudo to install some system and python packages. But the installer can proceed without that step. This behaviour is intended because some may already have the dependencies satisfied.

Member

viyatb commented Oct 22, 2015

Hi, you need sudo to install some system and python packages. But the installer can proceed without that step. This behaviour is intended because some may already have the dependencies satisfied.

@7a

This comment has been minimized.

Show comment
Hide comment
@7a

7a Oct 30, 2015

Member

Would it make sense for the installer to be smart enough to handle this
alone? :)
On 22 Oct 2015 14:39, "Viyat Bhalodia" notifications@github.com wrote:

Hi, you need sudo to install some system and python packages. But the
installer can proceed without that step. This behaviour is intended because
some may already have the dependencies satisfied.


Reply to this email directly or view it on GitHub
#519 (comment).

Member

7a commented Oct 30, 2015

Would it make sense for the installer to be smart enough to handle this
alone? :)
On 22 Oct 2015 14:39, "Viyat Bhalodia" notifications@github.com wrote:

Hi, you need sudo to install some system and python packages. But the
installer can proceed without that step. This behaviour is intended because
some may already have the dependencies satisfied.


Reply to this email directly or view it on GitHub
#519 (comment).

@SpoonBoy

This comment has been minimized.

Show comment
Hide comment
@SpoonBoy

SpoonBoy Oct 30, 2015

when a user sends SIGINT he just wants the program to stop, regardless of dependencies already installed or not.

when a user sends SIGINT he just wants the program to stop, regardless of dependencies already installed or not.

@viyatb

This comment has been minimized.

Show comment
Hide comment
@viyatb

viyatb Jan 16, 2016

Member

I check add a check to see if the user has sudo privileges, if not then do a clean stop. This is because OWTF needs critical python libraries and system packages installed. @SpoonBoy @7a ?

Member

viyatb commented Jan 16, 2016

I check add a check to see if the user has sudo privileges, if not then do a clean stop. This is because OWTF needs critical python libraries and system packages installed. @SpoonBoy @7a ?

@viyatb viyatb added the Enhancement label Jan 18, 2016

@viyatb viyatb added this to the OWTF Quality Release milestone Jan 18, 2016

@viyatb viyatb self-assigned this Jan 18, 2016

@viyatb viyatb closed this in 33ff5e0 Jan 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment