makedir ownership question

Kenneth Brody kenbrody at bestweb.net
Mon Oct 31 11:53:49 PST 2005


Quoting Jay R. Ashworth (Mon, 31 Oct 2005 14:37:56 -0500):

> On Mon, Oct 31, 2005 at 01:03:14PM -0500, Fairlight wrote:
> > Question here...  Why does 'makedir' from fP need to be suid root?  To
[...]
> ISTR that some kernels require that root make directories, though I
> couldn't tell you why I think that.  Especially since my /bin/mkdir
> isn't SUID root.

Because this used to be true.  Before the mkdir(2) system call came along,
it used to be that directories were created with the mknod(2) system call,
which shows as one failure mode:

    [EPERM] The process's effective user ID is not super-user.

It may be that fp/lib/makedir will work just fine as setuid filepro on
your system.

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list