Questions tagged [privileges]
The privileges tag has no summary.
250 questions
2 votes
0 answers
61 views
What am I doing wrong here? (npm, root privileges ... ?)
Somewhat floundering. I'm trying to install and run an open-source app called "Swordfish", which is a CAT (computer-assisted translation) app. I've never really built from source before in ...
1 vote
1 answer
59 views
Killing a process with ruser root and euser user
I'm learning linux permissions and confused about the permissions for killing a process. First, from kill(2) manpage: For a process to have permission to send a signal it must either be privileged (...
2 votes
1 answer
189 views
Mapping two users to host with user namespaces
I'm trying to understand whether it's possible to map two users from a user namespace to two different users on the host. The goal is to replicate the same permissions I have on my host inside a ...
0 votes
2 answers
361 views
pkexec vs runuser
pkexec is not installed by default on Debian unlike runuser which is. So far I've been using pkexec but discovered there is also runuser, and since runuser seems to be more advanced (looking at ...
2 votes
1 answer
731 views
How do I enable hibernate for all users (no sudo)?
I managed to resize my LVM partitions, set up my swapfile, and disable secure boot, so now I can hibernate with sudo systemctl hibernate. However, I want to be able to hibernate from my power menu (...
0 votes
2 answers
856 views
Run shellcode as root in a buffer overflow attack?
I'm trying to exploit the following code: #include <stdio.h> #include <string.h> int main(int argc, char** argv){ char buffer[100]; strcpy(buffer, argv[1]); return 0; } with ...
2 votes
1 answer
2k views
How does rfkill work without being root (or using sudo)?
I saw this statement at the end of this answer: PS: I have no idea why rfkill works when run as an unprivileged user. On my Mint, it doesn't have a setuid or setgid bit. I was curious, and looked on ...
0 votes
1 answer
186 views
Some GTk3 applications aborting with BadAccess when DISPLAY=:0 but not DISPLAY=hnam.local:0 or even DISPLAY=unix:0
I've had some issues with my XQuartz environment not starting due to a bit of a freak reason that was a rather hard to figure out. It's (mostly) working again but I must have caused another regression ...
8 votes
1 answer
985 views
Super-user privileges for Chromium browser
After apt-get install chromium and running it on Debian 12, ps alx | grep -e ^F -e ^5.*chromium returns: F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 5 1000 ...
0 votes
1 answer
123 views
Granting privileges using visudo still prevents user to execute command
Following this solution, I want to grant to the user daemon the execution of /bin/date. Here what I did: find the user that apache2 uses when spawning: # ps | grep httpd 252 root /usr/bin/httpd -...
0 votes
1 answer
184 views
Is it possible to grant a specific privilege to a user without sudo?
I'm not going to add sudo in my Buildroot environment for RPi 3 B+ since I just need apache2 to update my system time with date -s TIME. Is there a way to grant this permission without installing and ...
0 votes
2 answers
136 views
Run part of command line command with sudo
I execute this time sudo nice -n -20 bash myscript.sh myscript.sh then processes some files as well as create files with the result. Two problems with this: the script is run as root the resulting ...
0 votes
2 answers
282 views
How can I privilage a user to sign in on my ubuntu server via ssh when a system shutdown is scheduled?
I have scheduled a system reboot every night in my crontab with this line: 0 4 * * * /sbin/shutdown -r +5 I would like to be able to log in and cancel the reboot if I need the system to stay up at ...
1 vote
0 answers
64 views
Implementation of groups in the linux kernel
Question: Are there any further sources to catch up on the implementation of groups in the linux kernel. The man page about credentials helped me out so far, but I like to delve deeper (though still ...
1 vote
0 answers
70 views
Trying to mount USB-drive automatically through udev; script complains that it's not superuser [duplicate]
I am trying to mount my USB-drive automatically on Linux. I have this script: #!/usr/bin/bash mount /dev/safety1 /mnt/hd 2> /home/harald/errors/e rsync -az /mnt/hd/ /home/harald/backups/ &&...