|Philip Rushik on 7 Nov 2016 18:01:30 -0800|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: [PLUG] LINUX LOW LEVEL PROGRAMMING QUESTION|
sudo != suid. suid scripts being disabled is unsurprising, because
there is a race condition in having them around.
Now, what you can do is put a script in the sudoers file with NOPASSWD
and so on, and that is both secure and will let any (designated) users
run that script with sudo, and let you call it from other scripts,
crontab, and so on I think.
The other thing you can do is write a wrapper in C which does nothing
but exec the shell script, and make that C wrapper suid. That is also
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug