172 reputation
16
bio website
location
age
visits member for 1 year, 5 months
seen Feb 27 at 4:05

Feb
26
accepted How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
This worked fine, thanks!
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@vonbrand But I'm using SUID in a binary. Are you saying that's bad too?
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@slm df says the binary is in filesystem /home/myuser/.Private mounted on /home/myuser, and the script is in filesystem /dev/mapper/ubuntu--vg-root mounted on /
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@HaukeLaging That's not the folder I'm on.
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@slm Not sure, I think it's not: pastebin.com/3aQ48Kr0 . I'm on /home/myuser/somefolder
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
But I need to run this programatically. I can't use sudo because I won't be there to type in my password. And I don't want to disable the password for sudo. Can I disable it for just this script?
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@HaukeLaging Does it make sense to the see the strace generated when running the binary as root? I never used strace before to be honest.
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@HaukeLaging script.strace is empty, understandably (I also tried placing it in my own folder just in case, instead of a root folder)
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@HaukeLaging I get this in the cli: strace: Can't stat '/root/iptables/my-iptables-script.sh': Permission denied
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@slm I didn't read the whole thing, tell me if I'm wrong.
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@slm I'm not using setuid on a shell script, I'm using it on a binary. And it works fine on Ubuntu 12.04 and Fedora 17. The solution in your link says to write native code.
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@HaukeLaging The binary works fine as root. The shebang of the scripts is #!/bin/sh
Feb
26
comment How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
@Braiam Yes, as root.
Feb
26
asked How to let a user execute a script owned by root? Setuid doesn't seem to work anymore
Dec
4
awarded  Notable Question
Jul
16
comment Frequent disconnections in OpenVPN
@slm I've read reducing the MTU might help. Wanna try that? I'll do it too.
Jul
16
asked Frequent disconnections in OpenVPN
Jul
7
awarded  Popular Question
Jun
21
awarded  Popular Question