All of lore.kernel.org
 help / color / mirror / Atom feed
* chown bug
@ 2001-03-05 19:06 Felix von Leitner
  0 siblings, 0 replies; 2+ messages in thread
From: Felix von Leitner @ 2001-03-05 19:06 UTC (permalink / raw)
  To: linux-kernel

The man page says:

       If the owner or group is specified as -1, then that ID is not
       changed.

If user !root says chown("/usr",-1,-1), he gets EPERM.  Why?
He explicitly told the kernel that he does not actually want to change
anything.  Why would the kernel say EPERM?

Felix

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: chown bug
@ 2001-03-05 20:05 Andries.Brouwer
  0 siblings, 0 replies; 2+ messages in thread
From: Andries.Brouwer @ 2001-03-05 20:05 UTC (permalink / raw)
  To: leitner, linux-kernel

    From: Felix von Leitner <leitner@fefe.de>

    If user !root says chown("/usr",-1,-1), he gets EPERM.  Why?

Because the standard says:

  The chown( ) function shall fail if:

  [EPERM]  The effective user ID does not match the owner of the file, or ..

Andries

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-05 20:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-05 19:06 chown bug Felix von Leitner
  -- strict thread matches above, loose matches on Subject: below --
2001-03-05 20:05 Andries.Brouwer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.