[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mesg and devfs



> mesg is doing the right thing,  world writable ttys are a bad thing,
> there is nothing to stop a obnoxious user from doing 
> cat /dev/urandom > /dev/<someones-tty>  which will screw up thier
> terminal as if they had done it themselves.  write and wall prevent
> the terminal from being screwed up.

Permissions was -rw------- hugo.hugo, then talk/write/mesg/etc. cannot
work. It needs to be -rw------- hugo.tty for mesg to work, then "mesg y"
changes it to -rw--w---- hugo.tty, and "write" is setgid tty. I don't
see world writable tty's anywhere... mesg is doing the right thing as
write needs it to be writable by tty group. The thing that is wrong is
that its group isn't set to tty by default. /dev/vc/* is set to
hugo.tty, but /dev/pts/* is set to hugo.hugo.

Hugo van der Merwe
-- 
To send me private (non-world-readable) mail, GPG encrypt it.
1024D/60715698: 5F2E 8EC2 E0A4 5D25 0569  F281 4A6C D76D 6071 5698

Attachment: pgpzx66PzSPso.pgp
Description: PGP signature


Reply to: