Questions tagged [non-root-user]

Use for questions where tasks usually considered as "system-administrative" are to be performed by a regular, non-admin user, and/or for tasks or configurations that should not be performed system-wide but only apply for one such user (e.g. local software installation). Don't use for questions about a specific way to gain root privileges if there is an appropriate tag for that available.

Filter by
Sorted by
Tagged with
1 vote
0 answers
22 views

Figuring out which user is best to start pm2

I'm about to deploy a highly secure production server, which is running an nginx reverse proxy, which points to the backend server on nodeJS. When a user starts the server by typing in the "pm2 ...
user avatar
3 votes
0 answers
82 views

Alternative to "gksu" in "su" mode for non-root users

On an Oracle Linux 8 installation, I am trying to implement a desktop launcher for the GNOME shell where the (graphical) program is to be run as a different (non-root) user. However, I want to enforce ...
user avatar
  • 18.7k
0 votes
1 answer
48 views

blocking commands as non-root

This is a very specific request, I am afraid. I am a non-root user at a CentOS Linux 7 machine. The admin team is normally very helpful but there is zero response for that case, unfortunately. So I ...
user avatar
0 votes
0 answers
29 views

can something like --rsync-path be done with scp?

scp is handy sometmes because of its -3 feature. Systems here are configured to disallow root login, however sudo is configured to allow certain folks to pass --rsync-path=sudo\ rsync. i'd like to ...
user avatar
  • 51
2 votes
1 answer
390 views

How to allow non root users to access root directories?

I want to secure my linux server by not permitting the root user to login. For this I've created another user with: useradd username mkdir /home/username/ mkdir /home/username/.ssh chmod 700 /home/...
user avatar
  • 123
0 votes
1 answer
31 views

Creating a soft link

I'm trying to create a soft link for a file but keep getting a permission denied message. I don't want to create it under the root user but a different user I have created. This user has rwx ...
user avatar
0 votes
0 answers
93 views

Allow a Python program run without root privileges to restart Elasticsearch

There are a few suggestions out there with clues about how this might be achieved. It seems to me that the restart command of Elasticsearch shouldn't need root privileges, at least in my use case. ...
user avatar
  • 1,042
0 votes
1 answer
548 views

How to make a loopback device writable for normal user?

I setup a loopback device following this guide. The device is OK, but only writable for root. I searched solutions and found some answer such as using fusermount, fstab etc., e.g. this one. I would ...
user avatar
  • 121
1 vote
1 answer
46 views

Installing software by ./configure, make, make install

I have access to a computer through SSH, and need to install Davinci Resolve without the root access. I only have access to the command line, and cannot use sudo for installation. The documentation of ...
user avatar
  • 11
1 vote
0 answers
17 views

Catch the root command exit code from a regular user [duplicate]

I've been researching umount exit codes for some error cases, running the following command repeatedly: $ sudo sh -c "umount /home; echo $?" And got surprisingly strange results. The error ...
user avatar
  • 111
1 vote
1 answer
46 views

Custom daemon: which user could I use to run as, to avoid using root?

I want to write a daemon that launches after boot, before login, that does background communication over USB-rawhid with an Arduino microcontroller. I would like to run this daemon as non-root. I ...
user avatar
  • 695
0 votes
1 answer
79 views

What's the most appropriate directory where to place development software shared between users?

About share data (files and directories) among users within the same machine, has sense use the /srv directory it according with: What's the most appropriate directory where to place files shared ...
user avatar
2 votes
1 answer
112 views

In a user namespace as non-root, on a nosuid,nodev filesystem, why does a bind mount succeed but a remount fails?

In a Linux user namespace, as non-root, I bind mount /tmp/foo to itself. This succeeds. Then, I try to remount /tmp/foo to be read-only. If /tmp is mounted with nosuid or nodev, then the remount ...
user avatar
  • 1,256
2 votes
1 answer
165 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 ...
user avatar
  • 131
1 vote
1 answer
377 views

Change shell from bash to ksh permanently with no admin rights

I need to change my PuTTY shell from bash to ksh permanently. The chsh command and editing /etc/passwd are not available to me as I don't have admin rights. Please help me understand what needs to be ...
user avatar
  • 13
0 votes
1 answer
256 views

Disabling root and creating a new user Ubuntu 20.04 to run/install applications

There's been a lot of articles that state to disable root user and create a new user. One of the reasons is that root is a known account and bots can easily target. So I need to create a new user with ...
user avatar
1 vote
2 answers
147 views

During the installation of Kali Linux when I set username and password, this user is root user or non-root user?

During the installation of Kali Linux when I set username and password, this user is root user or non-root user? If I login into m Linux system using this username and password and type whoami, it ...
user avatar
  • 13
0 votes
1 answer
61 views

How to run a command from /etc/sudoers.d/ file noninteractive way?

I am automating dpkg-sig installation for one of my project purpose. Now I want to install it noninteractive way. I have added the following in a file inside /etc/sudoers.d/ Cmnd_Alias DPKGSIG_INSTALL ...
user avatar
2 votes
2 answers
603 views

Non root user unable to conect wifi network on the standard way [LINUX MINT]

I am a enthusiastic linux user and I offered my experience to perform system upgrade on 40 old Classmate PCs (SEE system information on image bellow ) which were runing a deprecated ubuntu version. So,...
user avatar
  • 79
1 vote
1 answer
93 views

Shut down after offline updates with PackageKit from command line

When PackageKit has updates fetched for installation and you use the Gnome GUI to shut down the machine, it is possible to set a checkbox to install updates before shut down. How can this be ...
user avatar
  • 31
1 vote
2 answers
228 views

Rootless "unshare -m" like bubblewrap?

On my Linux host unshare -m refuse to go without root. Bubblewrap bwrap --dev-bind / / --ro-bind-data xxxx xxxx and bwrap --dev-bind / / --tmpfs doesn't require root. (no setuid on bwrap) How can I ...
user avatar
2 votes
2 answers
1k views

mount and fstab: why can they be configured to allow users to mount but not umount?

I noticed recently that is possible to allow normal user/s to mount a device through fstab, but apparently in any case umount can only be done by root. Even the man page of mount only talks about ...
user avatar
  • 163
18 votes
7 answers
3k views

How is allowing login for a sudo group member safer than allowing root login?

I recently read that it's a good idea to disable root login, e.g. by setting the root user's shell to /sbin/nologin instead of /bin/bash, and to use a non-root user with sudo rights. I did this now on ...
user avatar
  • 283
2 votes
1 answer
312 views

Edit ssh_config without ssh connection on a remote VPS

Yesterday, I was busy setting up a remote server and securing it. I am a noob at code, programming and webhosting, but I am trying to host my own website. So yesterday I changed some settings in the ...
user avatar
3 votes
0 answers
4k 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 ...
user avatar
  • 7,391
0 votes
2 answers
782 views

crontab -e doesnt shows option to select editor - what to do?

I'm using Linux Centos 7, as a non-root user. When I want to add cron job that is not possible, I enter crontab -e I don't have option to select editor or to add cron job, just have blue ~ signs?? ...
user avatar
2 votes
3 answers
818 views

Creating a "sub-user" account/environment

I'm working on an old(ish) SLES GNU/Linux machine on which I don't have root, nor do I have a user account of my own: Multiple people use the same user account (often at once). This is "necessary", ...
user avatar
  • 7,391
-2 votes
1 answer
78 views

How do I install a new version of Eclipse on an older Linux as non-root?

I have a non-root account on an older SUSE Linux machine (from around 2012). Is it possible for me to install a recent version of Eclipse (e.g. from 2019), for myself, on this machine? If it is, what ...
user avatar
  • 7,391
2 votes
1 answer
2k views

Installing Midnight Commander without root user access

I got a RedHat system access with non-root non-sudo rights account. I want to install Midnight Commander (mc) but yum requires root privileges. How can I install mc to my local home without rebuilding ...
user avatar
0 votes
1 answer
143 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 ...
user avatar
4 votes
2 answers
2k views

systemd start as unprivileged user in a group

I'd like users in group foogroup to be able to: systemctl start foo.service, systemctl stop foo.service, systemctl status foo.service, and journalctl -u foo.service without using elevated ...
user avatar
  • 8,982
1 vote
0 answers
899 views

Start headless X server as non-root user

Trying to start headless X server (driver "Dummy" from package xorg-x11-drv-dummy) as non-root user from ssh session on Centos 7 machine with command like $ nohup Xorg -noreset +extension GLX +...
user avatar
  • 49
1 vote
3 answers
498 views

What happens if one tries to access a root directory on a hard drive from another computer?

Lets say you have a directory which is only accessible with root privileges. What happens if someone takes the physical drive out of the computer and mounts the filesystem (maybe even using another ...
user avatar
28 votes
2 answers
9k views

What is the bin user for?

As I wrote at https://unix.stackexchange.com/a/484626/5132 this is worthy of its own Q&A. On Linux operating systems … % getent passwd bin bin:x:2:2:bin:/bin:/usr/sbin/nologin % … ...
user avatar
  • 62.5k
20 votes
3 answers
58k views

How to install libtoolize as non-root user

I'm trying to install software and the autoreconf fails because libtoolize is not installed on my system. I don't have root access on this system, but I need to install libtoolize. How can I install ...
user avatar
  • 323
3 votes
1 answer
2k views

Allow non-root unmodifiable sofware to bind to ports 80 & 443

The company I'm in uses the Java Secure Application Manager to "secure" non-internal connections their webmail and electronic collaboration software. Aside from using expired certificates, ...
user avatar