[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
Quote:>On FreeBSD and Linux systems with XFree86, xterm is setuid root by
>default. On Solaris 2.5.1 system, xterm is not setuid root. Why
>would xterm need to be setuid root on some, but not other, OSes?
Traditionally, xterm is set-uid for two reasons:
- adding entries to wtmp/utmp
- chowning the allocate dpty to the user.
In SunOS 4.x, Sun's xterm did neither (not suid either) which in itself
is a security problem.
In Solaris 2.x, xterm does both but it uses to small programs for it:
/usr/lib/pt_chmod - chowns ptys
/usr/lib/utmp_update - adds utmp/wtmp entries.
The use of these programs is transparent and done by libc.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.