Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [not-root-user]

Doing administration tasks without administrative privileges.

2
votes
1answer
101 views

Prevent keyboard layout reset when USB keyboard is plugged in

Whenever I plug in a USB keyboard, the layout of all keyboards is reset to some system default (a US layout which doesn't have modifiers and other keys the way I want them). I've observed this on many ...
1
vote
2answers
139 views

Does using non-root user without password makes system more vulnerable?

Let's say somebody sitting under user (non-admin, not root), but he didn't set up any password for it, only superuser/root has password. Is it bad practice (in context of remote access to a desktop ...
0
votes
1answer
26 views

Can I install a software on a Standard account in fedora without adding to Sudoer file or changing account type to admin?

I am working on Fedora 29 (64bit) and our company has a secure browser software where we provide standardized testing to millions of students across the USA. Right now we are stuck in a situation. ...
0
votes
1answer
50 views

How to disable messages from syslogd for my own user?

I am using a Centos Linux OS with ssh tools. I get these messages every minute. Message from syslogd@rakhsh4 at May 6 17:48:34 ... kernel:[Hardware Error]: Corrected error, no action required. ...
8
votes
1answer
218 views

Why debootstrap can only run as root?

I want to download Debian system using debootstrap (creating chroot environment) and when I run debootstrap stable ./dir $debian_ftp, debootstrap says: E: debootstrap can only run as root Why can't ...
0
votes
1answer
75 views

Allow a non-super-user run process to fork and clone itself (probably duplicate)

Question I would like to launch a Docker container which runs a process which may or may not clone itself. Is it possible to set up a user with normal + clone_newuts permission so that I do not have ...
0
votes
0answers
8 views

How to prevent non-sudo-installable Conda app from being able to modify itself (and other such apps too)?

There is a Conda package manager that can create independent virtual environments. But the most economic and default way to use it is to let it create hardlinks for packages used in several ...
0
votes
1answer
55 views

How to change core dump location without sudo

CentOS release 6.10 (Final) GNU gdb (GDB) Red Hat Enterprise Linux (7.2-92.el6) My program is crashing, and generating a core dump. Unfortunately, it's trying to dump it in my home directory, which ...
0
votes
0answers
24 views

How configure multiple server nodes to do computation for not-root user?

Suppose that I have a 4 server nodes but I am not root user. Password-free login has been implemented between nodes. If I want to call multiple nodes for computation, how should I configure it, ...
0
votes
2answers
76 views

How to install fish in a remote server I cannot sudo?

I want to install the fish shell in a remote server I have no sudo privileges at, so that I can use it whenever I ssh.
0
votes
1answer
55 views

Running a service on CentOS as a system user other than root

I've created a system user jackett (useradd -r jackett) and I'm trying to run a systemd service under it on CentOS 7. Service File: [Unit] Description=Jackett Daemon After=network-online.target [...
1
vote
0answers
28 views

Primary Group returns a number? [closed]

I'm somewhat sure that previously my primary group was something in text, but after running some stuff (I don't have admin, so I couldn't have changed it myself) all of a sudden my primary group ...
5
votes
0answers
49 views

Possible to “build world” in FreeBSD without root? [duplicate]

The FreeBSD jail manpage has instructions on building a jail distribution tree: D=/here/is/the/jail cd /usr/src mkdir -p $D make world DESTDIR=$D make distribution DESTDIR=$D Is it possible to ...
1
vote
0answers
63 views

Why my newly created user is not inheriting $PATH variable

I added a new user dev on my Alpine based image. After switching to the new user I see env variables are different in case of both root and dev user. Specially $PATH variable is different. But I think ...
2
votes
1answer
600 views

sudo -su vs sudo su -

On RHEL 7.5, I created a non-root user and would like to switch from one non-root-user to another non-root-user, without password. First tried, sudo -u user1, command syntax error then tried, sudo ...
1
vote
0answers
329 views

How to use service to start/stop app with non-root access?

RHEL 7.5 Currently installed an application as root in /app. As part of administration, application will start/stop using /sbin/chkconfig & /sbin/service utilities All the application binaries ...
1
vote
0answers
43 views

Systemd user timer only runs when logged in [duplicate]

I have as file sync script I want executed periodically every 1 min or so. Since I may need separate instances for different users I run it as a user instead of root. The issue I have is that it seems ...
0
votes
2answers
48 views

Is Encrypting/Decrypting an external USB Drive with minimal priviledge possible?

The following situation is the case: I want to provide my students with an easy way to protect their data securely and encrypted on an external usb drive with the zero knowledge principle in mind so ...
1
vote
1answer
65 views

Can a linux user access to a file in this case?

This is a theoretical question. I'm using a linux system with two users: root and nonRoot. I'm debugging an application as nonRoot, that uses a file placed in the following path: /home/nonRootFolder/...
0
votes
1answer
29 views

How can a syslog configuration be set to place a log in the users home directory?

I want to use one of Drupal's syslog modules but place the log in a the user's home directory so there are not permissions issues when the user wants to view or analyze the file. Is there a way a ...
1
vote
0answers
42 views

multipath equivalent that doesn't require root privilege

Is there any native tool that can show multipath topology but doesn't need root privileges? Basically the same output as multipath -ll
0
votes
2answers
75 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 ...
1
vote
1answer
64 views

Changing group ownership of files - User management

Installed an application as root owner but not as non-root. why? Because we had to install this application in custom location(/app) So, after installing an application(Syslog-NG), below are the ...
1
vote
2answers
43 views

Script which check who login by “su -”

I need find a way to list all current users which are using root account by su - For example: bob@test:~$ su - root@test:~# alice@test:~$ su - root@test:~# And now list normal users which using ...
1
vote
1answer
34 views

My script needs write access to /dev/sdX. How to avoid runnig it as root?

I'm developing a Bash script that handles formatting and testing (with f3) of massive amounts of USB drives, like this: mkntfs -QF /dev/sdX I used to simply run that script as root: sudo MyScript....
15
votes
3answers
1k views

make all the processes of a given user killable by anyone

On a shared server, I would like to have some very low priority users such that whenever an other user (also without root privileges) needs the resources, they can kill any of the low priority users' ...
0
votes
0answers
20 views

Checking if you are root user [duplicate]

A simple dumb check would be: if [ "$(whoami)" == "root" ]; then # i am the root user fi is there a better check that absolutely determines you are the root user, considering I suppose it might ...
1
vote
1answer
439 views

Perl Issue on OS X El Capitan

For some strange reason, OS X suddenly shows me: Can't locate strict.pm: Permission denied at /usr/bin/shasum5.18 line 100. BEGIN failed--compilation aborted at /usr/bin/shasum5.18 line 100. when ...
0
votes
0answers
23 views

Where are you supposed to put user-specific programs? [duplicate]

Say I'm a non-admin user who wants to put an executable somewhere in his path so that he can run it like a regular program. What is the "proper" accepted location for that path? is it ~/bin? ~/.local/...
3
votes
1answer
285 views

Transform tar into cpio without rooting?

I have a tarball containing many files with root:root owner and/or special device inodes. cpio only accepts paths existing in the file system when it is creating a cpio archive. And I don't want to ...
1
vote
1answer
2k views

Allow non root user to change file permissions

We're developing an application that makes it possible to change the file permissions of some files that users have created. So e.g. the user "Bob" creates a file in /srv/share/ then bob is the ...
0
votes
2answers
366 views

script to load/unload psmouse module by user (no root)

I want to write a shell script that can be executed by a user w/o root permissions that will simply execute modprobe -r psmouse or modprobe psmouse. Is this even possible? I've got this module: $ ls -...
0
votes
0answers
82 views

Install CGAL-4.11.1 locally without being root

I am trying to install CGAL-4.11.1 on a server locally without root privilege but so far I failed. tar -xvzf cgal-releases-CGAL-4.11.1.tar.gz cmake -DCGAL_DIR:/local_path . make make install I get ...
1
vote
1answer
25 views

Hooking on to lid events as non-root

Is there a way for a non-root user to hook a script on to laptop lid events (ie. opening and closing)?
0
votes
1answer
736 views

How to Run Root Aliases being a non-root user?

I am running Linux 4.4.0-116-generic Ubuntu + KDE ( x86_64 GNU/Linux ) I want to run an alias named ksession that kills a particular session. At the same time I want that only I can run this alias ...
0
votes
1answer
48 views

Command to (attempt to) format a disk as non-root [duplicate]

I am wondering how to make a filesystem as a non-root user, using GNOME 3 (openSUSE Leap 42.3). ~> fallocate -l ### part.bin # Create a sparse file on disk ~> #sudo mkfs -t FSTYPE part.bin # ...
1
vote
0answers
459 views

Restart a supervisor program without root

I have a two-level supervisord system on Debian Linux: In /etc/supervisor/conf.d/opus-release.conf [program:opus] user=opus command=bash -c 'cd /home/opus/projects/XXX && supervisord -n -c .....
0
votes
1answer
24 views

Write a file to usr

I want to copy a file from the documents folder to /usr/local/Wolfram/Mathematica, but if I try I got the message Access denied. Could not write to... How can I solve that problem?
5
votes
4answers
2k views

How to create a file system as a non root user?

I'd like to create a filesystem image as a non-root user, the problem I'm facing is that the way I'm currently doing it, it needs a mount and as a non-root can't do a mount. This is what I'm now ...
4
votes
2answers
2k views

systemctl --user not available for www-data user

systemctl --user seems to be working fine for the desktop user: dev@dev-VirtualBox:~$ systemctl --user > /dev/null dev@dev-VirtualBox:~$ echo $? 0 But when running the same command under the www-...
-1
votes
1answer
766 views

Account locked after adding line on /etc/passwd file

I have installed this version of Ubuntu on my laptop. └─ $ ▶ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: ...
3
votes
1answer
5k views

how to restrict users not to login to root by using sudo -i and sudo su - and other if exists [duplicate]

I have tried to restrict user by editing sudoers file M ALL=!/bin/su. I am able to restrict sudo su - but not sudo -i.
0
votes
1answer
95 views

Monitoring tool installation without root/sudo privileges and no compilation

I originally planned to use zabbix as a monitoring tool but I found out that I can't use it because it requires root access, and I can't make the compilation either due to the client and security ...
0
votes
0answers
115 views

How to install and configure byobu in HPC environment (i.e. no root)?

I am used to the byobu layout in Ubuntu and I suffer from the fact, that all the HPC I have access to in my work have no byobu (and sometimes even no screen/tmux). I am able to build byobu from ...
0
votes
1answer
871 views

Docker: Sending log files as non-root user to /dev/stdout

I'm trying to start a docker container, which has 2 services. One of those services needs to be run as a non-root User, otherwise he won't start. The other must run as root. Now I want to link the ...
0
votes
1answer
139 views

How to drop privilege of root user initiated process?

I would like to start JBoss process with root user, because I have to bind ports (<1024). But after initiating the process, I have to drop privilege of the initiated process. Is it possible? If ...
0
votes
1answer
343 views

Missing permissions for echoing something via shell_exec()

I want to use the PHP shell_exec() function in order to send something to a local socket. My current approach looks like this: sudo -s echo "foobar" > /dev/tcp/192.168.178.41/8080 When I run ...
0
votes
1answer
449 views

Linux Find RAM type as a non-root User

I have found the following command to work the best for memory determining the type of RAM installed: sudo dmidecode | grep DDR But the thing is, I don't want to use the sudo command, therefore I am ...
2
votes
1answer
622 views

Custom keyboard layout without root

What are the steps to setting up a custom keyboard layout in X11 without root access? I know it's possible, based on this answer, but I get Error loading new keyboard description whenever I try using ...
2
votes
2answers
224 views

How to use which command in Crontab?

I would like to make crontab run this script as a regular user: #!/usr/bin/env bash PIDFILE=wp-content/uploads/sphinx/var/log/searchd.pid if ! test -f ${PIDFILE} || ! kill -s 0 `cat ${PIDFILE}`; ...