setperms on linux
Bob Stockler
bob at trebor.iglou.com
Wed Apr 12 16:22:22 PDT 2006
Brian K. White wrote (on Wed, Apr 12, 2006 at 06:23:31PM -0400):
| .... AHHH! I found it finally.
|
| Both the stock setperms and my improved copy have pairs of chmod & chown
| commands in the order of chmod, then chown.
|
| Some genius has changed something somewhere such that chown now wipes off
| the suid bit!
| I reversed the order so that it's always chown then chmod and now the files
| are left with the right perms.
|
| Is it just me or is it just plain inexcusably broken for chown to even
| _touch_ the chmod bits??
Somewhere, in the deep dark recesses of my mind, I recall that
chown is supposed to remove the SUID bit for security reasons.
Limited experimenting on SCO OSR6 shows that if user "name" owns
a file and makes it SUID, then changes its ownership to the user
"newname", the SUID bit dissappears.
Bob
--
Bob Stockler +-+ bob at trebor.iglou.com +-+ http://members.iglou.com/trebor
More information about the Filepro-list
mailing list