Never set SUID bit on shell scripts. Executing a shell script involves a two-step process 1) The kernel starts up a SUID copy of the shell interpreter 2) The shell interpreter begins executing the shell script. You can interrupt the kernel after the first step and switch the file that the shell interpreter is about to execute.
Never set SUID bit on shell scripts. Executing a shell script involves a two-step process 1) The kernel starts up a SUID copy of the shell interpreter 2) The shell interpreter begins executing the shell script. You can interrupt the kernel after the first step and switch the file that the shell interpreter is about to execute.
Thanks for answer, but don't speak chines .
Sorry I'm not programmer and all this terminology is really chines for me. I'm simple noob user that like scripting a little and trying to find easy way to do some stuff in the system without typing password every time