Questions tagged [not-root-user]

Doing administration tasks without administrative privileges.

Filter by
Sorted by
Tagged with
0
votes
1answer
491 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
104 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
118 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
573 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
345 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
82 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
68 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
119 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
84 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
1
vote
2answers
154 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
136 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
107 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
vote
1answer
41 views

My script needs write access to /dev/sdX. How to avoid runnig it as root?

I'm developing a Bash script that handles formatting and testing (with f3) of massive amounts of USB drives, like this: mkntfs -QF /dev/sdX I used to simply run that script as root: sudo MyScript....
15
votes
3answers
2k views

make all the processes of a given user killable by anyone

On a shared server, I would like to have some very low priority users such that whenever an other user (also without root privileges) needs the resources, they can kill any of the low priority users' ...
3
votes
1answer
1k views

Perl Issue on OS X El Capitan

For some strange reason, OS X suddenly shows me: Can't locate strict.pm: Permission denied at /usr/bin/shasum5.18 line 100. BEGIN failed--compilation aborted at /usr/bin/shasum5.18 line 100. when ...
0
votes
0answers
35 views

Where are you supposed to put user-specific programs? [duplicate]

Say I'm a non-admin user who wants to put an executable somewhere in his path so that he can run it like a regular program. What is the "proper" accepted location for that path? is it ~/bin? ~/.local/...
3
votes
3answers
780 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 ...
1
vote
1answer
5k views

Allow non root user to change file permissions

We're developing an application that makes it possible to change the file permissions of some files that users have created. So e.g. the user "Bob" creates a file in /srv/share/ then bob is the ...
0
votes
2answers
2k views

script to load/unload psmouse module by user (no root)

I want to write a shell script that can be executed by a user w/o root permissions that will simply execute modprobe -r psmouse or modprobe psmouse. Is this even possible? I've got this module: $ ls -...
0
votes
0answers
128 views

Install CGAL-4.11.1 locally without being root

I am trying to install CGAL-4.11.1 on a server locally without root privilege but so far I failed. tar -xvzf cgal-releases-CGAL-4.11.1.tar.gz cmake -DCGAL_DIR:/local_path . make make install I get ...
1
vote
1answer
35 views

Hooking on to lid events as non-root

Is there a way for a non-root user to hook a script on to laptop lid events (ie. opening and closing)?
0
votes
1answer
2k views

How to Run Root Aliases being a non-root user?

I am running Linux 4.4.0-116-generic Ubuntu + KDE ( x86_64 GNU/Linux ) I want to run an alias named ksession that kills a particular session. At the same time I want that only I can run this alias ...
0
votes
1answer
121 views

Command to (attempt to) format a disk as non-root [duplicate]

I am wondering how to make a filesystem as a non-root user, using GNOME 3 (openSUSE Leap 42.3). ~> fallocate -l ### part.bin # Create a sparse file on disk ~> #sudo mkfs -t FSTYPE part.bin # ...
1
vote
0answers
679 views

Restart a supervisor program without root

I have a two-level supervisord system on Debian Linux: In /etc/supervisor/conf.d/opus-release.conf [program:opus] user=opus command=bash -c 'cd /home/opus/projects/XXX && supervisord -n -c .....
0
votes
1answer
31 views

Write a file to usr

I want to copy a file from the documents folder to /usr/local/Wolfram/Mathematica, but if I try I got the message Access denied. Could not write to... How can I solve that problem?
10
votes
4answers
4k views

How to create a file system as a non root user?

I'd like to create a filesystem image as a non-root user, the problem I'm facing is that the way I'm currently doing it, it needs a mount and as a non-root can't do a mount. This is what I'm now ...
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-...
-1
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: ...
3
votes
1answer
11k views

how to restrict users not to login to root by using sudo -i and sudo su - and other if exists [duplicate]

I have tried to restrict user by editing sudoers file M ALL=!/bin/su. I am able to restrict sudo su - but not sudo -i.
0
votes
1answer
188 views

Monitoring tool installation without root/sudo privileges and no compilation

I originally planned to use zabbix as a monitoring tool but I found out that I can't use it because it requires root access, and I can't make the compilation either due to the client and security ...
0
votes
0answers
220 views

How to install and configure byobu in HPC environment (i.e. no root)?

I am used to the byobu layout in Ubuntu and I suffer from the fact, that all the HPC I have access to in my work have no byobu (and sometimes even no screen/tmux). I am able to build byobu from ...
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
1answer
332 views

How to drop privilege of root user initiated process?

I would like to start JBoss process with root user, because I have to bind ports (<1024). But after initiating the process, I have to drop privilege of the initiated process. Is it possible? If ...
0
votes
1answer
689 views

Missing permissions for echoing something via shell_exec()

I want to use the PHP shell_exec() function in order to send something to a local socket. My current approach looks like this: sudo -s echo "foobar" > /dev/tcp/192.168.178.41/8080 When I run ...
0
votes
1answer
891 views

Linux Find RAM type as a non-root User

I have found the following command to work the best for memory determining the type of RAM installed: sudo dmidecode | grep DDR But the thing is, I don't want to use the sudo command, therefore I am ...
6
votes
1answer
1k views

Custom keyboard layout without root

What are the steps to setting up a custom keyboard layout in X11 without root access? I know it's possible, based on this answer, but I get Error loading new keyboard description whenever I try using ...
3
votes
2answers
380 views

How to use which command in Crontab?

I would like to make crontab run this script as a regular user: #!/usr/bin/env bash PIDFILE=wp-content/uploads/sphinx/var/log/searchd.pid if ! test -f ${PIDFILE} || ! kill -s 0 `cat ${PIDFILE}`; ...
4
votes
1answer
2k views

ArchLinux | Login password does not work after creating new user account

I am trying Arch Linux for learning more stuff faster and not having GUI that bothers me, so that I can focus on learning stuff from Linux itself and the terminal. Since I was working with the default ...
1
vote
1answer
509 views

How is PAM checking the user password in unprivileged processes?

PAM manages to check the user password, when called from unprivileged screen-lockers. E.g.: Password for GNU screen lockscreen command? https://github.com/google/xsecurelock I can't find any SUID-...
1
vote
0answers
48 views

Save IP in remote host every time connection is up (as non-root-user)

I have a dynamic local Lan IP at work (temporarily), but in order to connect from home, I ssh to the host A (static IP) and from there to my machine. However, since the IP changes, I would like to ...
-3
votes
1answer
402 views

Can some one discuss these interview Question regarding permission? [closed]

Effective user id can be set using following permission? 4744 Effective group id can be set using following permission? 2666 Hi, guys reading some interview question and I got some interview stuff ...
0
votes
0answers
1k views

User can't change password using passwd (pam config)

I've created a new user and set a valid password (as root). The account is working and I can login locally/ssh etc. However, when logged in as said user I can't change the password using passwd. I ...
0
votes
1answer
162 views

How to install WebKitGtk on Webfaction shared hosting server?

I would like to build simple NodeJS REST API that uses WebKitGtk to print HTML to PDF (this is the start, I getting more ideas). So I managed to bring it up locally on my Debian Stretch dev laptop ...
1
vote
2answers
6k views

Installing Debian packages as unprivileged user

I have a piece of software which I would like to install in a separate hierarchy beneath $HOME/local on an Ubuntu 16.04 machine. The software is distributed as a Debian package, and the source code ...
1
vote
1answer
2k views

How to prevent: `CIFS: Unknown mount option “defaults”`? [duplicate]

Context: I want to enable a normal user to mount a certain cifs mount on his system (Debian Strech). I therefore added the following entry in /etc/fstab (note the added ,user in the options): //...
2
votes
1answer
192 views

How process (user1) can write log to directory (root)

I'm using proftpd on my server (ubuntu 16.04 x86_64). I see that proftpd run under proftpd user: $ ps aux | grep [p]roftpd proftpd 26334 0.0 0.1 112656 716 ? Ss 04:39 0:00 proftpd: (...
1
vote
1answer
7k views

Setting Permissions on a new kali user

What I would like to know in clear detail and easy to understand wording. How can I add permissions from the root account on kali(ARM) for a PI3. I also want my new account to have full permissions ...
0
votes
1answer
698 views

help for user permissions and file directory access mac OS Sierra

Im trying to sort my usrers and usser permission in terminal to install Ruby gems and other libraries, but getting nowhere because of the permissions denied errors. Steps I tried: Had a call with ...
4
votes
1answer
6k 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
2
3 4 5
8