Questions tagged [not-root-user]

Doing administration tasks without administrative privileges.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Create a new user in linux that does not have access to old user's applications

I am using Manjaro, I have a admin account with virt-manager installed to it. But I want to make some modifications to virt-manager package and build it again. I want to do this in a new account, ...
user avatar
  • 1
0 votes
0 answers
19 views

Do linux serivce accounts have limited resources by default?

distro: Ubuntu 20.04 Desktop Arm64 board: Raspberry Pi 3 I'm running a flutter embedded application that is displayed via gbm/drm. I want the application to be run by a separate user so I've added the ...
user avatar
0 votes
1 answer
31 views

Can I require per-user AuthenticationMethods when switching from a non-root user to a root user?

I currently SSH into a root user from another machine with an SSH key & 2FA, so I set AuthenticationMethods publickey,keyboard-interactive. If possible, I would like to be able to SSH into a non-...
user avatar
0 votes
0 answers
58 views

Unmount without sudo

I know that I can declare in /etc/fstab that a user can mount and unmount a partition without root permission using user(s). But I seem to be unable to achieve the same in a mount command without ...
user avatar
  • 395
0 votes
2 answers
53 views

Is it possible to install Clash on the Server without root access?

I asked this question a few years back but it seems like it is not useful for all softwares. I am in the same scenario but with different software. Is it possible to install Clash on the Server ...
user avatar
  • 131
0 votes
0 answers
33 views

Permission to read /var/log/ files on separate system (Chrome OS Linux terminal)

I need to access two drives which won't boot to their original systems (Raspberry Pi OS on SD card & Ubuntu 20.04 on HDD). As both of these devices are (mostly) inaccessible, my only option is to ...
user avatar
0 votes
0 answers
33 views

How to allow hdfs-user (non-root) to run systemctl commands

I am trying to write a script to restart my services using systemctl restart. Service name is yarn-resourcemanager. Systemctl commands have to be run in root to my understanding, and my user (hdfs-...
user avatar
  • 1
2 votes
2 answers
231 views

Why would having a user without a password be a bad idea (in this scenario)?

I thought about whether to post this here or in security SE... but decided to go with Unix SE since this isn't really a question about cryptography stuff but more about Linux users / privileges. Maybe ...
user avatar
  • 317
0 votes
1 answer
58 views

Change the Owner access Charlie root to user at a media device, possible?

how can I change owner access from Charlie root to user access for my media devices (partitions /media/da0s1) on FreeBSD?
user avatar
0 votes
1 answer
114 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=./...
user avatar
  • 163
0 votes
0 answers
133 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 ...
user avatar
  • 101
0 votes
3 answers
83 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 ...
user avatar
0 votes
0 answers
81 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 ...
user avatar
  • 281
9 votes
1 answer
3k 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 ...
user avatar
  • 3,824
1 vote
1 answer
81 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 ...
user avatar
1 vote
0 answers
245 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 ...
user avatar
  • 11
4 votes
2 answers
2k 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 &...
user avatar
0 votes
1 answer
88 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 ...
user avatar
2 votes
0 answers
322 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 ...
user avatar
1 vote
1 answer
267 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 ...
user avatar
0 votes
1 answer
88 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 ...
user avatar
  • 302
0 votes
1 answer
461 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 ...
user avatar
0 votes
1 answer
62 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 ...
user avatar
1 vote
2 answers
52 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 ...
user avatar
  • 205
1 vote
1 answer
261 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 ...
user avatar
  • 1,042
0 votes
1 answer
58 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, ...
user avatar
3 votes
2 answers
2k 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 ...
user avatar
0 votes
1 answer
436 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 ...
user avatar
0 votes
1 answer
984 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 ...
user avatar
3 votes
1 answer
3k 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 ...
user avatar
  • 193
1 vote
1 answer
410 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. ...
user avatar
  • 301
0 votes
2 answers
523 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/...
user avatar
-1 votes
2 answers
171 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 ...
user avatar
5 votes
3 answers
9k 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 ...
user avatar
  • 71
0 votes
1 answer
364 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 ...
user avatar
  • 103
2 votes
2 answers
1k 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 ...
user avatar
  • 46.8k
1 vote
1 answer
2k 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 133
1 vote
4 answers
152 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 ...
user avatar
  • 87
0 votes
1 answer
92 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 ...
user avatar
12 votes
2 answers
3k 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 ...
user avatar
1 vote
2 answers
240 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 ...
user avatar
  • 123
0 votes
1 answer
202 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. ...
user avatar
3 votes
1 answer
5k 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. ...
user avatar
  • 31
9 votes
1 answer
1k 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 ...
user avatar
  • 772
0 votes
1 answer
505 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 ...
user avatar
  • 113
0 votes
1 answer
997 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 ...
user avatar
0 votes
0 answers
30 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, ...
user avatar
1 vote
2 answers
2k 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.
user avatar
0 votes
1 answer
607 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 [...
user avatar
  • 131

1
2 3 4 5
8