Re: suid binaries should not be writable by owner

2001-02-08 Thread Brendan O'Dea
On Mon, Feb 05, 2001 at 07:27:17PM -0800, Joey Hess wrote: >Argh, egg on face: linux lets the owner of a file modify it even if it >is mode 444 and in a directory they do not own. Yuck! Is this standard >unix semantics? It sucks. Standard Unix semantics prevents non-root users from writing to file

Re: suid binaries should not be writable by owner

2001-02-07 Thread Brian May
> "Massimo" == Massimo Dal Zotto <[EMAIL PROTECTED]> writes: Massimo> chattr +i ? Interesting point. Programs/packages shouldn't rely on it working all the time though, as I doubt it is (yet) supported on NFS, resierfs, Hurd, etc. -- Brian May <[EMAIL PROTECTED]>

Re: suid binaries should not be writable by owner

2001-02-07 Thread Massimo Dal Zotto
> Argh, egg on face: linux lets the owner of a file modify it even if it > is mode 444 and in a directory they do not own. Yuck! Is this standard > unix semantics? It sucks. > > -- > see shy jo > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? C

Re: suid binaries should not be writable by owner

2001-02-07 Thread Julian Gilbey
On Tue, Feb 06, 2001 at 10:12:00PM -0600, Chris Lawrence wrote: > Then again, if the software can run as a non-root user and be suid to > that user, I can't think of any good reason why it couldn't just be > sgid to some group without any users in it instead. Maybe I'm not > thinking hard enough t

Re: suid binaries should not be writable by owner

2001-02-06 Thread Brian May
> "s" == s Lichtmaier writes: s> It's tricky... capabilities don't fix this. I was considering the case where setuid root may not be required because capabilities could be used instead. s> And I know nothing about ACL's on UNIX systems. It must be s> something like "these user

Re: suid binaries should not be writable by owner

2001-02-06 Thread Nicolás Lichtmaier
> s> A better design would have been having the file to have a > s> second UID/GID. > > s> So, a file could be owned by root, but setuid man. > > ACLs and capabilities are probably two very different solutions to > this problem. > > (...depends on how they are implemented). It's

Re: suid binaries should not be writable by owner

2001-02-06 Thread Chris Lawrence
On Feb 07, Nicol?s Lichtmaier wrote: > > > Argh, egg on face: linux lets the owner of a file modify it even if it > > > is mode 444 and in a directory they do not own. Yuck! Is this standard > > > unix semantics? It sucks. > > Even worse: IIRC the owner of a file can chmod it to his or her > > hear

Re: suid binaries should not be writable by owner

2001-02-06 Thread Brian May
> "s" == s Lichtmaier writes: s> A better design would have been having the file to have a s> second UID/GID. s> So, a file could be owned by root, but setuid man. ACLs and capabilities are probably two very different solutions to this problem. (...depends on how they are im

Re: suid binaries should not be writable by owner

2001-02-06 Thread Nicolás Lichtmaier
> > Argh, egg on face: linux lets the owner of a file modify it even if it > > is mode 444 and in a directory they do not own. Yuck! Is this standard > > unix semantics? It sucks. > Even worse: IIRC the owner of a file can chmod it to his or her > heart's content, and this is standard Unix semantic

Re: suid binaries should not be writable by owner

2001-02-06 Thread Julian Gilbey
On Mon, Feb 05, 2001 at 09:41:00PM -0600, Chris Lawrence wrote: > On Feb 05, Joey Hess wrote: > > Argh, egg on face: linux lets the owner of a file modify it even if it > > is mode 444 and in a directory they do not own. Yuck! Is this standard > > unix semantics? It sucks. > > Even worse: IIRC the

Re: suid binaries should not be writable by owner

2001-02-05 Thread Chris Lawrence
On Feb 05, Joey Hess wrote: > Argh, egg on face: linux lets the owner of a file modify it even if it > is mode 444 and in a directory they do not own. Yuck! Is this standard > unix semantics? It sucks. Even worse: IIRC the owner of a file can chmod it to his or her heart's content, and this is sta

Re: suid binaries should not be writable by owner

2001-02-05 Thread Brian May
> "Joey" == Joey Hess <[EMAIL PROTECTED]> writes: Joey> Argh, egg on face: linux lets the owner of a file modify it Joey> even if it is mode 444 and in a directory they do not Joey> own. Yuck! Is this standard unix semantics? It sucks. The directory is irrelevant - you are not cha

Re: suid binaries should not be writable by owner

2001-02-05 Thread Joey Hess
Argh, egg on face: linux lets the owner of a file modify it even if it is mode 444 and in a directory they do not own. Yuck! Is this standard unix semantics? It sucks. -- see shy jo

suid binaries should not be writable by owner

2001-02-05 Thread Joey Hess
This post to bugtraq raises an interesting point. If we have a suid executable (not suid root), it is really silly to let the user it is suid to write to it, since this gives an attacker a guarenteed way to get a trojan onto the system if they manage to exploit a hole in the program. Instead of mod