Would like to see setuid from tclhttpd in the core
Deleted219266ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 05:09:37
OriginalBugID: 1198 RFE Version: 8.1a2 SubmitDate: '1999-02-12' LastModified: '1999-12-04' Severity: MED Status: UnAssn Submitter: pat ChangedBy: hobbs OS: Linux-Red Hat Machine: Other FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Petteri Kettunen Extensions: N/A CustomShell: N/A DesiredBehavior: Bring setuid from tclhttpd to the core. This is an important point when running servers under Unix. It may become a serious security fault if one forgets to handle the server permissions correctly. The code is already in tclhttpd distribution - it just needs copy & paste. Patch: N/A PatchFiles: N/A N/A
andreas_kupries Ticket [219266ffff]: 2 changes
[History diff]2000-11-17 19:29:38
dkfplain2000-11-17 21:07:29
The problem is that for (the vast majority of) other uses of Tcl, having the binary be setuid (especially setuid root) is a really rather bad idea. Unless someone is of the opinion that letting every Joe Blow on your system run scripts as root is a point of wisdom?!
welchplain2000-11-18 01:19:44
The setuid command in TclHttpd does not imply that the Tcl binary has the "setuid" bit set. It never does. Instead, it adds a command much like the TclX "id" command that lets a process that is started as root (e.g., when the machine boots up) use the "setuid" and "setgid" system calls to become a less priveleged user. The bigger issue here is to incorporate all the good OS-specific features of TclX into the core, or into an easily loaded extension. The "batteries included" distribution of Tcl will surely bundle TclX and make this issue less urgent.
dgp Ticket [219266ffff]: 2 changes
[History diff]2001-03-02 06:24:19
dgp Ticket [219266ffff]: 3 changes
[History diff]2001-04-04 04:40:35
Log in (anonymous is fine) to add a comment.