Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [not-root-user]

Doing administration tasks without administrative privileges.

1
vote
0answers
17 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 ...
1
vote
2answers
28 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
60 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
20 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
20 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
0
votes
2answers
66 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 ...
0
votes
0answers
26 views

Set permissions to 775 when any user creates a file or folder

I have samba set up in our Linux server with GUI. When the default user creates any file/folder it's permissions are set as 775 (i.e. rwxrwxr-x). But when other users create any file/folder it's ...
1
vote
1answer
52 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
36 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
30 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
1k 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' ...
0
votes
0answers
19 views

Checking if you are root user [duplicate]

A simple dumb check would be: if [ "$(whoami)" == "root" ]; then # i am the root user fi is there a better check that absolutely determines you are the root user, considering I suppose it might ...
1
vote
1answer
245 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

busybox change permission for the kill command [duplicate]

Use busybox and would like to give a few commands the permission to be executed by not-root-user - as for instance "kill". For this I changed the link from /bin/busybox.nosuid to /bin/busybox.suid - (...
0
votes
0answers
18 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
1answer
113 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 ...
0
votes
0answers
42 views

Changing to the ROOT user in Cloudera's Quickstart VM

I'm trying to copy the SQL Service sqljdbc_6.0.8112.200_enu.tar.gz to the /var/lib/sqoop/ directory and I have Permission Denied with the Cloudera user. Thanks in advance for your time.
1
vote
1answer
753 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
95 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
48 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
19 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
309 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
44 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 # ...
0
votes
0answers
273 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
24 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?
4
votes
4answers
493 views

create a filesystem 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 ...
3
votes
2answers
887 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
249 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
1k 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
67 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
58 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 ...
0
votes
1answer
461 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
76 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
199 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
286 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 ...
2
votes
1answer
384 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 ...
2
votes
2answers
155 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
515 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
122 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
44 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
186 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
525 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
108 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
1k 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 ...
0
votes
1answer
1k 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): //...
3
votes
1answer
96 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
659 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
515 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
2k 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 ...
0
votes
2answers
48 views

Installing “duplicate” on SSH /home/user

I am on a SSH server and want to use a program that is at /usr/local/bin but I don't have permission. So I copied the program installation files from my system to my user on the server in order to ...