Questions tagged [setuid]
38 questions
0
votes
1 answer
How to rsync to remote machine with user1 for ssh and user2 as remote rsyncer?
UPDATE:
it seems I have to use rsync modules. So I created a very simple rsyncd.conf in the home of user2 on the remote server with:
[test]
path = /dest
It does not work, but the problem seems another one. When I run
rsync -e "ssh -v -l user1"…

Marco Sulla
- 207
- 2
- 4
- 15
0
votes
0 answers
Elevated privileges for non-modifiable install script
I need to give permission to a local user to run an installation script that requires root privilege. So I created a special group in which this user is a member of and gave the permissions to the install script as follows:
# chown -R root:grpx…

Quiescent
- 125
- 10
0
votes
5 answers
Setuid not working on Solaris
I have a Perl script marked setuid, but when I run it, it says I don't have permission to do so. I am running Solaris 10. This works on another system but I can't tell whats different. What am I doing wrong?
$ ls -l
total 16
-r-sr-x--- 1 root …

Eric Johnson
- 303
- 6
- 12
0
votes
1 answer
Prevent setuid from dropping setcap user privileges (VirtualBox)
I'm trying to run a web server from a headless, NAT'd VirtualBox guest. VirtualBox needs to bind to port 80, but the only way to do so is by running VirtualBox as root. To get around this, I tried using setcap, but the VirtualBox process is SUID…

xikkub
- 149
- 1
- 9
0
votes
1 answer
How does MySQL run as user "_mysql" on Mac?
On Mac, MySQL seems to save data as the "_mysql" user. Can somebody please explain how this is achieved. I would have expected the MySQL server application (mysqld) to have the setuid flag set, so that it would run as _mysql, but this isn't the…

visitor93746
- 103
- 1
- 3
0
votes
1 answer
setuid does not work with standard user account
Look at this c program:
#include
#include
#include
int main()
{
printf("UID: %d\n", getuid());
printf("EUID: %d\n", geteuid());
system("id");
printf("res=%d\n", setuid(1001));
printf("UID: …

Bob5421
- 319
- 3
- 8
- 16
0
votes
0 answers
Using setuid in a Shell Script on Ubuntu 20.04
So I have a Laravel PHP app on Nginx on Ubuntu 20.04. I have a simple deploy.sh script that will:
Put Laravel into maintenance mode, so it returns a 503 error if anyone visits the site
Pulls down the current source from github using a read-only…
user621861
0
votes
1 answer
setuid not working as expected
I have a node js script that listens on a certain port.
If this script receives a json file it needs to execute a deploy script in a users home dir.
The node script runs under node_user.
The homedir is user_b.
I set up an acl so that user…

chichi
- 3
- 2