Questions tagged [not-root-user]

Doing administration tasks without administrative privileges.

Filter by
Sorted by
Tagged with
2
votes
0answers
32 views

How to edit a binary SeLinux policy file?

It appears root access is irrelevant on my device as everything is managed by SeLinux (the root user basically can’t execute anything). The problem is I can’t just create my new polices. I need to ...
1
vote
1answer
21 views

Why is there a ROOT (as opposed to root) account for MySQL and MariaDB?

As far as I can tell, the MySQL and MariaDB database "ROOT" account is completely separate from the operating system's "root" account. Why did someone consider it a good idea to create the ambiguous ...
0
votes
1answer
16 views

How to reserve free space in Home dir for display to prevent GUI freezing and app crashing?

As the title says. Since switching to Linux (and actually probably the main thing that prevented me from switching right away many years ago), the system has crashed upwards of 100 times, with data ...
2
votes
0answers
26 views

Edit ssh_config without ssh connection on a remote VPS

Yesterday, I was busy setting up my 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 ...
0
votes
1answer
19 views

ownership & permissions inside /var for systemd service

I'm working on an application that needs to read some config files under /etc and write to a db file under /var/lib I'm working on a .service file in order to enable this application to be executed ...
0
votes
1answer
39 views

How to copy file to another user (have password, no root)? [duplicate]

I am user_a and I have a password for user_b, so I can use su user_b to do things as user_b. I want to copy a file from user_a to user_b. I don't want other users besides user_a and user_b to see ...
1
vote
2answers
35 views

Ability to halt/reboot server as user

I need to ability to halt an aws EC2 server as user. I found https://www.cyberciti.biz/tips/howto-linux-allow-users-to-shutdown-server.html but due to the fact that I need this feature on an aws EC2 ...
1
vote
1answer
39 views

Problem with auto-completion on VPS

I just set up a VPS with hostinger.com. The OS is Ubuntu 18.04. I created a user account, mike. I quickly realised that auto-completion wasn't apparently installed so looked up how you do this. For ...
0
votes
1answer
18 views

root user able to access and install repositories while non-root user cannot

I am fairly new to Linux. I have installed CentOs 8, and have configured the system to access the network and internet, by putting in the proxy in the network settings configuration in CentOs GUI, ...
2
votes
2answers
172 views

Startx as non-root user via SSH

I have a remote VM running Ubuntu 1804 and would like to run VNC. I am using x11vnc, which requires an X server to be running. Currently, I'm connected through SSH. The VM has an Nvidia card, and ...
0
votes
1answer
89 views

Normal user run Qt C++ program as root without sudo?

I am writing a robotics program in C++, using Qt for the GUI, where each thread needs access to hardware. The library which accesses the hardware is called pigpio, and it modifies /dev/mem, so it ...
0
votes
1answer
77 views

Can't access some commands when logged in with non-root user (even after “su root”)

So, i don't understand whats happening here. I've set up a Debian 10.2 Server and configured like i did before with other Servers. Everything works fine, and because it's a local Machine and i am ...
3
votes
1answer
168 views

Clearing linux caches without root privileges

In order to clear caches, I usually invoke # echo 3 | tee /proc/sys/vm/drop_caches This requires root privileges. Why do I need to do this occasionally? Because it can have a huge impact on the ...
1
vote
1answer
72 views

How to implement setuid bit? [duplicate]

I created a small script as the root user... #!/bin/bash cat /etc/shadow and set the setuid bit and placed it within the guest folder. When I ran the script as guest, it showed permission denied. ...
0
votes
0answers
33 views

Centos Minimal on Raspberry Pi, How can I access GPIO from non root user

I am running an application that access GPIO using Centos Minimal on Raspberry Pi3 board. when I tested with root everything worked fine. However, with non root user, it did not work. I followed ...
0
votes
2answers
83 views

Linux path for users' shared binaries [duplicate]

I would like to standardize on a directory where normal users would put programs/installs which would be used by other users. What would be the best practices? For instance, I could create a /users/...
-1
votes
2answers
59 views

Limit User To Run Specific Commands

I have a user test1 that i want to limit it to only run specific commands. I found this solution and I tested it (logged in with test1 and ran some random commands. none of them worked but date) and ...
3
votes
2answers
3k views

systemd services fail with User= in service file

I am working on migrating some old System V type services over to "real" systemd services on RHEL 7/8. I have things running for Redhat 7, SLES 12 and SLES 15 just fine. But when I try to get a ...
0
votes
1answer
18 views

LinuxLive: Howto login with local username

Linux (installed on my PC) doesn't want to boot anymore. So I access my data on my hard disk by running Linux from a bootable Linux Live USB stick. But some files on my harddisk can only be read with ...
0
votes
1answer
93 views

How to mount internal drives as a normal user in NixOS?

In for example Thunar I can just click on an external USB drive to mount it under /run/media/$USER/[something]. The fact that the mount point is created dynamically is a great side effect. But for any ...
1
vote
1answer
306 views

How to allow non-root users to run certain programs (for example the KDE app store) without root [duplicate]

Put simply, Whenever somebody logs onto the family computer that I manage, I get bugged about updates and "could you install x thing that I saw in the store" and such. How would I enable all users to ...
1
vote
1answer
382 views

How to securely store password for use by mount

I would like non-root users to be able to mount certain drives on the local network (or have them be mounted automatically on log-in). To mount network drives (via cifs) a password is passed on over ...
1
vote
4answers
89 views

Converting for loops on script that is called by another script into GNU parallel commands

Currently I have the following script for using the HaploTypeCaller program on my Unix system on a repeatable environment I created: #!/bin/bash #parallel call SNPs with chromosomes by GATK for i in ...
0
votes
1answer
64 views

What are the precise relationships between the keys in a Multi-user SSH Installation?

In working through an SSH Configuration for User and Root accounts for accessing a group of VM's and Hardware servers, I have encountered situations that do not make a great deal of sense to me from ...
4
votes
1answer
514 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
163 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
48 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. ...
2
votes
1answer
1k 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. ...
9
votes
1answer
436 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
176 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
10 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
227 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
29 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, ...
1
vote
2answers
275 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
327 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 [...
5
votes
0answers
77 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
87 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
2k 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
479 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
152 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
58 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
66 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
58 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
57 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
99 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
85 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
75 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
39 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
2k 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' ...
2
votes
1answer
800 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 ...

1
2 3 4 5
7