The setuid tag has no wiki summary.
1
vote
0answers
83 views
How to run php script (via web server) as different user under Mac OS X
I'm trying to call an executable from a PHP script that needs to be run as a different user (NOT root) than the web server normally runs as. I thought it should be sufficient to just set the setuid ...
1
vote
1answer
58 views
Is it possible to upload setuid-set file to ftp-accessible directories?
Just curious, is it possible to upload files set with setuid permission to directories using ftp and retain its setuid permission?
Or does FTP always change the permission?
7
votes
2answers
3k views
Can I make a script always execute as root?
How to make a script execute as root, no matter who executes it?
I read about setuid but I'm not sure how to do this.
I'm using Linux, Ubuntu 12.04 LTS.
1
vote
3answers
81 views
Do all my programs have owner rights to all my files?
I'm worried about all my programs having full access to all my files.
Eg: My user is 'john'. I install some program, say Dropbox. Dropbox runs as 'john'. Therefore it not only has full rights on its ...
2
votes
1answer
229 views
What's to stop somebody from creating a setuid-root script on a flash drive, then putting it into another person's computer and getting root access?
What's to stop somebody from creating a setuid-root script on a flash drive, then putting it into another person's computer and getting root access? I assume there's some kind of protection against ...
5
votes
7answers
7k views
How to run a program as root without “sudo”?
I have a certain binary program on OS X that can only be run as root.
I'm tired of prepending sudo each time I invoke it and typing the password, and would like it to automatically run as root when I ...
0
votes
1answer
815 views
Strange strace and setuid behaviour: permission denied under strace, but not running normally
This is related to this question.
I have a script (fix-permissions.sh) that fixes some file permissions:
#! /bin/bash
sudo chown -R person:group /path/
sudo chmod -R g+rw /path/
And a small c ...
0
votes
2answers
651 views
Allow user to execute a shell script without seeing its contents?
I'd like to have an hg hook that sends email using a gmail account. Obviously I don't want anyone to be able read the email-sending script except me or root, since it has a password in, so here's what ...
50
votes
7answers
15k views
Running upstart jobs as unprivileged users
What's the canonical way to have an upstart job change its userid and run the script as an unprivileged user?
Obviously one can use su or sudo, but this seems hacky (and can generate needless log ...