Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #248065
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Help with suid (bash) |
| Date | 2022-05-10 14:00 +0200 |
| Message-ID | <ElwGZ-exjv-1@gated-at.bofh.it> (permalink) |
| References | <ElwGZ-exjv-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, May 10, 2022 at 07:50:18AM -0400, rhkramer@gmail.com wrote: > Aside: even though this is not a Debian specific question, I often use debian- > user as my first resource in asking Linux questions. It's Linux-specific, though. > -rwsr-xr-x 1 root <groupid_that_includes_my_userid> 1412 Aug 31 2014 > <bash_script_filename> The Linux kernel does not honor the setuid bit on a script. Any script. Anything that's executed via a shebang, rather than an ELF header. This is for security purposes, as there's some sort of race condition or something. I forget the exact details, but the point is, you can't do this. Find another solution.
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Help with suid (bash) Greg Wooledge <greg@wooledge.org> - 2022-05-10 14:00 +0200
Resolved: Re: Help with suid (bash) rhkramer@gmail.com - 2022-05-10 14:30 +0200
Followup: Re: Resolved: Re: Help with suid (bash) rhkramer@gmail.com - 2022-05-10 16:10 +0200
Re: Resolved: Re: Help with suid (bash) Stefan Monnier <monnier@iro.umontreal.ca> - 2022-05-10 16:50 +0200
Re: Help with suid (bash) <tomas@tuxteam.de> - 2022-05-10 14:30 +0200
csiph-web