Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #231004
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: setuid question |
| Date | 2021-01-23 02:20 +0100 |
| Message-ID | <BAfKN-87E-9@gated-at.bofh.it> (permalink) |
| References | <BAe2m-76j-7@gated-at.bofh.it> <BAeF4-7xD-13@gated-at.bofh.it> <BAeOJ-7Aw-7@gated-at.bofh.it> |
| Organization | none,nada,zip |
On Friday 22 January 2021 19:19:12 The Wanderer wrote: > On 2021-01-22 at 19:09, Gene Heskett wrote: > > On Friday 22 January 2021 18:35:27 David Christensen wrote: > >> chmod u+s /usr/local/libexec/amanda/ambind > > > > root@coyote:amanda-3.5.1$ chmod u+s /usr/local/libexec/amanda/ambind > > root@coyote:amanda-3.5.1$ su amanda -c "/usr/local/sbin/amcheck > > Daily" Amanda Tape Server Host Check > > ----------------------------- > > ERROR: program /usr/local/libexec/amanda/ambind: not setuid-root > > What does > > $ ls -lh /usr/local/libexec/amanda/ambind > > say? -rwxr-x--x 1 amanda backup 27K Jan 22 18:46 /usr/local/libexec/amanda/ambind > All 'chmod u+s' does is set the suid bit. What having that bit does > (as I understand matters) is cause the program to run with the > permissions of the user who owns the file. > > If that file is owned by some user other than root, than the suid bit > will just cause it to be run as that other user, which may well not be > enough. > > You may also want to check > > $ file /usr/local/libexec/amanda/ambind /usr/local/libexec/amanda/ambind: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=32a4e4b5ad333ece10f31f4ad77224c321656b11, not stripped > > to confirm whether this program is a script; I've seen cases where > having a script with the suid bit set isn't enough, because it invokes > another binary which isn't and the permissions don't wind up getting > passed along. (Whether that happens typically with scripts I don't > know.) Thanks Wanderer Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
setuid question Gene Heskett <gheskett@shentel.net> - 2021-01-23 00:30 +0100
Re: setuid question Larry Martell <larry.martell@gmail.com> - 2021-01-23 00:40 +0100
Re: setuid question Gene Heskett <gheskett@shentel.net> - 2021-01-23 01:40 +0100
Re: setuid question Larry Martell <larry.martell@gmail.com> - 2021-01-23 02:00 +0100
Re: setuid question Gene Heskett <gheskett@shentel.net> - 2021-01-23 02:40 +0100
Re: setuid question David Christensen <dpchrist@holgerdanske.com> - 2021-01-23 00:40 +0100
Re: setuid question Gene Heskett <gheskett@shentel.net> - 2021-01-23 01:10 +0100
Re: setuid question Larry Martell <larry.martell@gmail.com> - 2021-01-23 01:20 +0100
Re: setuid question Larry Martell <larry.martell@gmail.com> - 2021-01-23 02:20 +0100
Re: setuid question Gene Heskett <gheskett@shentel.net> - 2021-01-23 02:20 +0100
Re: setuid question The Wanderer <wanderer@fastmail.fm> - 2021-01-23 01:20 +0100
Re: setuid question Gene Heskett <gheskett@shentel.net> - 2021-01-23 02:20 +0100
Re: setuid question David Christensen <dpchrist@holgerdanske.com> - 2021-01-23 06:30 +0100
Re: setuid question Gene Heskett <gheskett@shentel.net> - 2021-01-23 07:40 +0100
Re: setuid question Gene Heskett <gheskett@shentel.net> - 2021-01-23 07:50 +0100
Re: setuid question David Christensen <dpchrist@holgerdanske.com> - 2021-01-23 09:30 +0100
Re: setuid question Charles Curley <charlescurley@charlescurley.com> - 2021-01-23 01:40 +0100
csiph-web