Questions tagged [not-root-user]

Doing administration tasks without administrative privileges.

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

Run Spring Boot application as non-root user on Ubuntu 18.04

I have a Spring Boot application that I would like to run as a non-root user on Ubuntu 18.04. Currently it is running as root, and everything runs fine, but this is not best practice and could lead to ...
2
votes
2answers
106 views

How to mount a local directory without root

Say I have a folder which is completely readable by my user. I want it to be mounted to my home folder. I can't use a symlink because I want the files to be exposed at ~/ and I want other programs &...
0
votes
1answer
14 views

Supplementary groups' special permissions

After installing Wireshark I had to add my user to the wireshark group to be able to capture packets without root access. AFAIK Wireshark uses the libpcap library which itself uses the Netlink ...
0
votes
0answers
30 views

What happened to “su” command in CentOS 8?

I'm considering to change the user running old java programs from root to a system or normal user with low privileges, but something wrong happened with the logs permissions. The permission of logs ...
0
votes
0answers
11 views

UX: VXFS fsck Error

I am running UNIX on HP Proliant. The server abruptly turned off, now on boot it fails saying sc_Add failed /sbin/swap operation not applicable UX:vxfs fsck Error:cannot deduce character device ...
2
votes
0answers
60 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
27 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
22 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
59 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
47 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
44 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
41 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
90 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
24 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
493 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
177 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
292 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
648 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
121 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
2answers
152 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
82 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 ...
4
votes
2answers
5k 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
34 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
162 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
630 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
655 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
120 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
68 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 ...
5
votes
2answers
1k 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
169 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
60 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
2k 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
598 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
245 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
1answer
408 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
502 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
422 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
88 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
100 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
531 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 ...
3
votes
0answers
260 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
72 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
81 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
72 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
132 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
108 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
92 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
2 3 4 5
8