Questions tagged [not-root-user]

Doing administration tasks without administrative privileges.

Filter by
Sorted by
Tagged with
1 vote
1 answer
25 views

Im having useradd error in arch-linux

Im installing arch-linux for the first time and im following a video on youtube and im creating a non root user with the command '' 'useradd -G wheel.audio.video - m nour11''' But im getting the error ...
0 votes
0 answers
27 views

I lost my Amazone Lightsail root permission

I have an amazon lightsail account with free credits that I was using for my educational purpose. With that account, I created an instance and installed a free trial of cpanel. I was doing some stuff ...
0 votes
0 answers
34 views

Ramifications of renaming a user [duplicate]

I'm setting up two computers with MX Linux that will be nearly identical, with a lot of customization from the original distro. I installed and customized the first one for User1, and will basically ...
  • 583
1 vote
1 answer
68 views

Best practices for running a rootless container as a systemd service with User= or --user?

I'm experimenting with running rootless containers with Podman as systemd services. I'd also like to run the services themselves with non-root privileges, either: a) as a system service, but with User=...
  • 121
0 votes
0 answers
16 views

Giving ownership and permission to non-root user from inside script

I have an automated process that installs a script on an Ubuntu 20.04 server as root, and then runs it, as root. Inside the script, I create a directory, say, foobaz and install an executable in that ...
0 votes
0 answers
16 views

Categorizing Debian Linux VPS

I like to Categorize or Divide one Debian VPS for different Tasks and Testing. For Example two Apache Web Servers with no any connection between both. Something like installing apache2 web server only ...
0 votes
0 answers
61 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, ...
  • 1
0 votes
0 answers
22 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 ...
0 votes
1 answer
40 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-...
0 votes
0 answers
87 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 ...
  • 419
0 votes
2 answers
139 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 ...
  • 131
0 votes
0 answers
36 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 ...
2 votes
2 answers
452 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 ...
  • 381
0 votes
1 answer
92 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?
0 votes
1 answer
194 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=./...
  • 163
0 votes
1 answer
207 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 ...
  • 101
0 votes
3 answers
215 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
0 answers
110 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 ...
  • 301
11 votes
2 answers
5k 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 ...
  • 3,984
1 vote
1 answer
105 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
0 answers
277 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 ...
  • 11
4 votes
2 answers
3k 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
1 answer
120 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 ...
2 votes
0 answers
359 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 ...
2 votes
1 answer
364 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 ...
  • 50
0 votes
1 answer
129 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 ...
  • 362
0 votes
1 answer
600 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
1 answer
107 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
2 answers
55 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 ...
  • 215
1 vote
1 answer
287 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 ...
  • 1,052
0 votes
1 answer
92 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
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 ...
0 votes
1 answer
476 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
1 answer
1k 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
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 ...
  • 193
1 vote
1 answer
500 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. ...
  • 301
0 votes
2 answers
633 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
2 answers
195 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 ...
5 votes
3 answers
10k 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 ...
  • 71
0 votes
1 answer
459 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 ...
  • 113
2 votes
3 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 ...
  • 47.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 ...
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 ...
  • 133
1 vote
4 answers
161 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 ...
  • 87
0 votes
1 answer
100 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 ...
13 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 ...
1 vote
2 answers
265 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 ...
  • 123
0 votes
1 answer
247 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. ...
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. ...
  • 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 ...
  • 872

1
2 3 4 5
8