0
votes
2answers
15 views

Why sudo python and python in terminal start two different versions python?

I had python 2.6 in my server to begin with. Then I downloaded python 2.7 and installed using make and make altinstall. When I try just python in the terminal it opens up python 2.7 but sudo python ...
1
vote
2answers
88 views

Function defined in my user's .bashrc causes an error when I sudo su

I have a function defined in my user's .bashrc file that displays my current git branch name at my command prompt: parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* ...
0
votes
2answers
259 views

Have sudo create files under your own user id?

If I wanted to do something like sudo fdisk -l > test.txt but I wanted test.txt to be under my own user ID (and not root) without having to chown it afterwards, is there a way to do this? ...
1
vote
1answer
546 views

How to run python script on startup with sudo permission on Mac OS

I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission. So the question is, How do you run the script on ...
0
votes
0answers
135 views

Installing setup using sudo in Python

I'm getting a strange output when trying to install setup.py for a project. Any clue as to what I'm doing wrong? $ sudo python setup.py ...
1
vote
1answer
276 views

Installing setup using sudo in Python

I'm getting a strange output when trying to install setup.py for a project. Any clue as to what I'm doing wrong? $ sudo python setup.py ...
1
vote
1answer
596 views

sudo does not preserve PYTHONPATH

I modified /etc/sudoers (using visudo) to keep environment variables : Defaults !env_reset # Host alias specification # User alias specification # Cmnd alias specification # User privilege ...
2
votes
1answer
817 views

Python Module: Trouble Installing Bitarray

I'm not sure why I am having trouble installing the Python Module Bitarray on my Ubuntu 8.10 machine. dan@Tower:~/py$ tar xzf bitarray-0.3.5.tar.gz dan@Tower:~/py$ cd bitarray-0.3.5 ...