Hat Tip to Brian White

Bill Campbell bill at celestial.com
Tue Mar 27 14:19:36 PDT 2012


On Tue, Mar 27, 2012, Jay Ashworth wrote:
>Had to help an ex-coworker figure out why a client of theirs was having
>"my users own the lockfiles" problems this morning, and an old list posting
>of Brian's reminded me about the "setperms script does chmod +s before chown"
>problem, which he found, fixed, and it solved their problem.
>
>Hat tip also to Bill for the celestial list archives.
>
>Brian: did you ever actually confirm or deny that chown(1) should reset the
>setuid/gid bits even when run by root?

All modern *nix systems require that the chmod be done after any
chown/chgrp actions to avoid nasties that could happen such as doing a
chmod to suid a program then changing the ownership to root.

Bill
-- 
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186  Skype: jwccsllc (206) 855-5792

When only cops have guns, it's called a police state.
        -- Claire Wolfe, "101 Things To Do Until The Revolution"


More information about the Filepro-list mailing list