Questions tagged [not-root-user]
Doing administration tasks without administrative privileges.
362
questions
0
votes
0answers
17 views
System Service with `--user` not starting on reboot even though it is enabled
I have a resilio sync service run per user, however it is not active after a fresh reboot:
user@raspberrypi:~ $ systemctl is-enabled --user resilio-sync
enabled
user@raspberrypi:~ $ systemctl status --...
0
votes
1answer
15 views
How to locate Alien/Package/Deb.pm?
Try to install alien without root.
cd /tmp; mkdir alien; cd alien
yumdownloader --destdir ./ --resolve alien
for rpm in glob.glob("*.rpm"):
rpm2cpio rpm | cpio -id
cd usr; export PATH=./...
0
votes
0answers
18 views
How to install software for my user in CentOS 7 if I don't have admin privileges?
I am using a university's cluster computer running centos 7. I want to install numpy, scipy etc. on it because they are not available. If it is not possible to contact system admin (require some ...
0
votes
0answers
27 views
Run services as user without X (systemctl)
I have a small server running a minimal centos8.
I need to create services as a user and would like to use systemctl to do so.
I found I can use systemctl --user to create services without root ...
0
votes
3answers
36 views
How to selectively provide root access to only files that need it? [closed]
Sometimes a command I'm executing needs to access a directory that's owned by root, e.g. npm install -g ... might put a symlink in /usr/local/bin
I don't wish to run the command using sudo because ...
0
votes
0answers
16 views
unable to connect to mysql as user
I would like to connect to mysql as user but it gives me Access denied, I actually have to use sudo to log into the db. How can I change this so that even a user has permissions to login to mysql as ...
0
votes
0answers
39 views
Pipe to the clipboard in command line, with no root privilege to install
Normally I use xclip to pipe results into the clipboard. However, on a cluster I am accessing I don't have the required root privileges to install it. (I tried copying over files but then got into ...
1
vote
1answer
110 views
What does the `--system` flag for **adduser** do?
What is the purpose and benefit of using the --system option when adding a
user, or even a group?
I'd like to know why I'm seeing this added to many Docker containers and recommended as a
best ...
1
vote
1answer
60 views
How to restrict users so that they can only execute commands from /bin?
I was provided an assignment with several questions. One of the questions is:
How to restrict users can only execute the commands in the directory /bin?
I tried to solve it by using the following ...
1
vote
0answers
103 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
277 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
16 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
81 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
19 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
144 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
34 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
27 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
104 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
118 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
46 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
44 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
153 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
28 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, ...
3
votes
2answers
808 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
254 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
496 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
1k 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
172 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
242 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
97 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
6k 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
86 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
2answers
291 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
926 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
923 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
133 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
70 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 ...
8
votes
2answers
2k 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
180 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
85 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
3k 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
702 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
312 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
558 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
751 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
483 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
98 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
114 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 ...