lapubell
August 13th, 2008, 12:15 AM
I have been battling what I have come to find is a lost cause. I have a bash script that I need to run as root, and would like to hot key it, so I would like to make it not prompt me for a password. This led me to learn about the SUID of the file, and thought that it would work, but then i found out that the SUID is ignored for scripts (which makes sense, as the security flaw that it is...)
So the workaround that people have been using is using the SUID on a compiled file as that will still work. People have been writing a program in C that will launch a script. I have no idea how to do this.
I do all my programming in interperted languages (Python and PHP mostly) and have virtually no experience with any C languages.
Anyone want to help me out with a tutorial, link, or (if you are way too awesome) some source code?
So the workaround that people have been using is using the SUID on a compiled file as that will still work. People have been writing a program in C that will launch a script. I have no idea how to do this.
I do all my programming in interperted languages (Python and PHP mostly) and have virtually no experience with any C languages.
Anyone want to help me out with a tutorial, link, or (if you are way too awesome) some source code?