tech-userlevel archive

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

Re: makefs, hardlink and setuid

On Mon, 11 Mar 2013, Emmanuel Dreyfus wrote:
I am experimenting with crunchgen, and found an odd thing with makefs: it seems unable to set a setuid bit on a binary that has more than 1one link.

If a binary has multiple links, then they all share the same inode, and thus share the same permission bits. You can set the setuid bit on all or none of the links, not on only some of them.

--apb (Alan Barrett)

Home | Main Index | Thread Index | Old Index