Questions tagged [privileges]
The privileges tag has no usage guidance.
245
questions
1
vote
1
answer
83
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
176
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
1k
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
52
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 ...
7
votes
1
answer
799
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
74
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
90
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
91
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
139
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
42
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
65
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/ &&...
1
vote
1
answer
743
views
Journalctl logs for a unit running under different user without sudo
Let's say I have two users. One is admin and has sudo privileges and one is a regular user. Regular user runs a process and admin want's to see the process logs without using sudo. How to achieve this?...
0
votes
1
answer
105
views
How do I have two group owners
I have a file where I want there to be not one but two groups who can have extra privileges to access it. But when I chown or chgrp it to a group it always erases the previous group. How do I add a ...
2
votes
0
answers
397
views
How to grant nobody openvpn access to the ccd directory?
I need to distribute static addresses to some openvpn clients, which I decided to do via ccd.
I would also like to downgrade the privileges of the openvpn daemon for more security.
Unfortunately, ...
0
votes
0
answers
163
views
Executing sudo commands without password, not using /etc/sudoers?
I've created an instance of Ubuntu 20.04 in Azure, and I've noticed that I can run sudo commands without typing a password.
I assumed that this is done by using the NOPASSWD directive in the /etc/...