Skip to main content

All Questions

Tagged with
0 votes
1 answer
1k views

How do I switch users with their groups groups in Python?

How do I switch to an admin-user account from this python script named root_and_user.py that was run with doas or sudo? #!/usr/bin/env python3 from os import geteuid, seteuid from subprocess import ...
John Smith's user avatar
3 votes
1 answer
1k views

Non root user is not able to open any ports

I have an embedded Linux System built using Yocto. Just out of build, it only had a root user. I created a new user. This new user is not able to open any ports on the system even though they are ...
skjoshi's user avatar
  • 151
3 votes
0 answers
5k views

Failed to build these modules: _ctypes - when building Python 3.7

I'm trying to build Python 3.7.4 (as a non-root user on an older machine - SLES 11). After ./configureing and makeing, I get the following message: Failed to build these modules: _bz2 ...
einpoklum's user avatar
  • 10.4k
0 votes
1 answer
212 views

How to install PySide as a non-root in Linux?

I want to compile a python programm (GetDistGUI.py) in Linux (CentOs) and whenever I type: chmod a+x GetDistGUI.py python GetDistGUI.py I get the following error, from PySide.QtCore import QRegExp ...
Cool Cookie's user avatar
1 vote
2 answers
334 views

Where to store proprietary code and executable scripts? [closed]

I have Python code that is run using a bash script. I want non-sudo users to be able to run it without making the Python code readable. What is the recommended pattern? Two ways I considered: Put ...
tsotsi's user avatar
  • 139
1 vote
0 answers
1k views

Build xpra on local directory without root privileges

I am trying to build xpra on local directory without root privileges. The xpra official site says: https://www.xpra.org/trac/wiki/Building Building with distutils For installing into a local ./...
alfC's user avatar
  • 133
2 votes
1 answer
4k views

Trouble installing lxml with custom install location for libxml2/libxslt

I am attempting to install a python module called lxml to my account on a supercomputer running RHEL. I do NOT have root access or super user status. lxml requires the dev/devel versions of libxml2 ...
ThreeQuartersCrazed's user avatar
4 votes
0 answers
743 views

linking problems when installing python module and dependencies as non-root

I want to install a certain (non-public, numerical) python module on a remote (Debian squeeze) system on which I do not have root (or sudo) privileges. As the python-dev package was not installed, I ...
user247679's user avatar
1 vote
1 answer
139 views

Virtual Python installation not allowing ez_setup?

I don't have root on my system, so I'm trying to create a virtual Python installation. I ran virtual-python.py, and it told me to run ez_setup.py. I found it online and ran it with the command virtual-...
tkbx's user avatar
  • 11.3k