Questions tagged [not-root-user]

Doing administration tasks without administrative privileges.

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

Account locked after adding line on /etc/passwd file

I have installed this version of Ubuntu on my laptop. └─ $ ▶ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: ...
56
votes
12answers
21k views

Non-Root Package Managers

From my research, I seem to notice that all package managers insist on being used as a privileged user and must be installed into /. Typically, what I like to do is create a throwaway account, ...
0
votes
2answers
324 views

How to set UIDs and GIDs during install of Debian?

During installation of Debian the default initial UID is 1000 and GID is 1000. When creating a user account during install, is there a way to specify their specific values, for example 3197?
0
votes
0answers
20 views

Disabling root and creating a new user Ubuntu 20.04 to run/install applications

There's been a lot of articles that state to disable root user and create a new user. One of the reasons is that 'root' is a known account and bots can easily target. So I need to create a new user ...
2
votes
2answers
2k views

What regulates user privileges for the `mount` command?

My installation of CentOS 6.5 has stopped auto-mounting DVDs in KDE (default) X Window desktop environment (e.g. with all the KDE helper functions). Trying to troubleshoot this unexpected change in DE ...
2
votes
1answer
2k views

Docker: Sending log files as non-root user to /dev/stdout

I'm trying to start a docker container, which has 2 services. One of those services needs to be run as a non-root User, otherwise he won't start. The other must run as root. Now I want to link the ...
0
votes
0answers
5 views

Guest acc Problem Start window

I have just created a guest account with the setting "Login window" and selected the option Show users to off. Now I am on the start screen and could only log in with the guest acc. But ...
5
votes
2answers
2k views

How to create rootfs for user mode Linux on Fedora 18?

I want to create a rootfs to be used with an UML kernel and be able to use the internet. I was using febootstrap with packages: bash, coreutils, net-tools, iputils. After using febootstrap-supermin-...
42
votes
5answers
88k views

Read/Write to a Serial Port Without Root?

I'm writing an application to read/write to/from a serial port in Fedora14, and it works great when I run it as root. But when I run it as a normal user I'm unable to obtain the privileges required to ...
3
votes
2answers
5k views

Install curl without being root

I was trying to install a R package called "devtools", but without success. ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’ * removing ‘/misc/u32/huang/.R325/lib64/R/...
51
votes
8answers
33k views

Can I create override dns similar to writing in /etc/hosts without root access

I want to set a dns record that my browser will use, but I don't have root access, so I can't modify /etc/hosts. I need to do this for testing vhosts with apache, whose dns hasn't yet been set up. I ...
0
votes
0answers
18 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
25 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=./...
3
votes
1answer
1k views

Bash root to user. Best in same or separate script?

I'm working on a Linux Bash script that needs to start as root. At the end of the script, it builds a list of packages. This requires running as user. Then it will move the packages, which needs to ...
0
votes
0answers
19 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 ...
1
vote
1answer
3k views

install X11 libraries and header files in user account centOS

I would like to install X11 libraries and header files in my own account (not root) for further use. What other libs do I need to install for that? Where can I find the source codes and installation ...
8
votes
4answers
36k views

Call sudo from Jenkins

I have one build machine which has a user abc which is has limited sudo access. When I check out the source code and run my build script, it works fine. The build script contains sudo calls for which ...
101
votes
3answers
78k views

Where should a local executable be placed?

I have an executable for the perforce version control client (p4). I can't place it in /opt/local because I don't have root privileges. Is there a standard location where it needs to be placed under $...
4
votes
1answer
6k views

How to determine if X server runs with root privileges

This is a one-liner: Is there a way/command to check if the X server is run as root or as user? This was supposed to be a one-liner but alas... I recently upgraded my Arch Linux box. After the ...
0
votes
0answers
41 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 ...
3
votes
3answers
807 views

Transform tar into cpio without rooting?

I have a tarball containing many files with root:root owner and/or special device inodes. cpio only accepts paths existing in the file system when it is creating a cpio archive. And I don't want to ...
3
votes
1answer
1k views

Install userspace programs on server without root access

I would like to install some programs on my work development server because it is missing some programs I need for my day to day job. I don't have root access. What I did up to now is compiling the ...
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
2answers
359 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 ...
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 ...
2
votes
1answer
308 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
62 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 ...
56
votes
1answer
22k views

Why doesn't my systemd user unit start at boot?

I'm trying to create a systemd user unit and have it start when the system boots. The service does start manually, however it does not start at boot. From searching the Internet I learned that in ...
25
votes
10answers
105k views

How to resolve 'No protocol specified' for su user

I am trying to use an alternate user (non-admin) to execute graphical software on my system. This alternate user has been named and given a UID and GID to match a remote system user of the same name. ...
9
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 ...
23
votes
5answers
73k views

I can't enable or disable a user service: Failed to execute operation: No such file or directory

I want to debug/test a program in eclipse that uses a Redis server so I decided to turn the server into a user service to have the privilege of running it. What bothers me is that I can start or stop ...
15
votes
3answers
33k views

Bluetooth LE scan as non root?

To perform a scan for bluetooth LE devices hcitool apparently requires root privileges. For normal users the output is following: $ hcitool lescan Set scan parameters failed: Operation not permitted ...
3
votes
2answers
459 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 &...
4
votes
1answer
7k views

How to read the /proc/<pid>/fd directory of a process, which has a linux capability?

As a non-root user I am running a process. The process binary has been given a cap_sys_resource capability. Even though the process is owned by the same user, that user cannot read its /proc//fd ...
1
vote
0answers
147 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 ...
82
votes
6answers
245k views

Creating a user without a password

I'm trying to create a user without password like this: sudo adduser \ --system \ --shell /bin/bash \ --gecos ‘User for managing of git version control’ \ --group \ --disabled-password ...
4
votes
1answer
834 views

Package management without the need of root permission

Am looking for a way to install packages in home folder. This thread suggests using apt-get source ./configure --prefix=$HOME However, it doesn't provide a way to manage dependencies like apt-get ...
0
votes
1answer
20 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 ...
8
votes
3answers
5k views

systemctl --user not available for www-data user

systemctl --user seems to be working fine for the desktop user: dev@dev-VirtualBox:~$ systemctl --user > /dev/null dev@dev-VirtualBox:~$ echo $? 0 But when running the same command under the www-...
0
votes
1answer
72 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 ...
0
votes
0answers
96 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 ...
21
votes
2answers
114k views

Using “su - ” to change user gives “No passwd entry for user”

Specifically, I am trying test something on my build server by switching to the "jenkins" user: sudo su - jenkins No passwd entry for user 'jenkins'
83
votes
4answers
122k views

How could we allow non-root users to control a systemd service?

With sysvinit, a sudoers entry like this would suffice: %webteam cms051=/sbin/service httpd * This would allow for commands such as: sudo service httpd status sudo service httpd restart Now, with ...
0
votes
0answers
23 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 ...
95
votes
5answers
222k views

How to install program locally without sudo privileges?

Assume I have ssh access to some Ubuntu server as user and I need some not system tools to be installed for convenience (mc, rtorrent, mcedit). I do not want to bother admins for these small programs. ...
2
votes
0answers
188 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
52 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
33 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 ...
4
votes
3answers
12k views

Can a single user have multiple crontab files?

Suppose I am creating two crontab files. /tmp/my-crontab /root/my-alternate-crontab Each crontab file is sheduled to run diffrent scripts. When I start the cronjob the first is replaced with the ...

1
2 3 4 5
8