[OpenAFS] file ownership for root (UID 0)

Todd M. Lewis utoddl@email.unc.edu
Mon, 11 Jan 2010 07:10:58 -0500


On 01/11/2010 05:21 AM, "Karl Ti=DFner" sent:
> Hello openafs-info,
>=20
> This seems to me like an frequently asked question, but I didn't find
> the answer searching the web.
>=20
> When writing into an AFS directory, the file ownership is set to the
> appropriate AFS id, not the Unix UID of the the user, who is creating a
> file (as described in http://docs.openafs.org/AdminGuide/ch02s08.html)
>=20
> As long as the AFS and the Unix UID match, this behaviour does not lead
> to problems. But is there an way to automatically use the Unix UID for
> newly created files?

No.

> Since it is not possible to create an user with AFS UID "0", all files
> created by root are not owned by root (Debian Linux, root has UID 0):
>=20
> # pts createuser -name testtest -id 0
> 0 isn't a valid user id; aborting
>=20
> What is the standard way to handle this problem?

By declaring it not a problem, but desired behavior. Root is a local id,
not a network id. A member of system:administrators can chown existing
files to root, but that's as close as you're going to get I think.

> Thank you, Karl

Cheers,
--=20
   +--------------------------------------------------------------+
  / Todd_Lewis@unc.edu  919-445-9302  http://www.unc.edu/~utoddl /
 /    He had a photographic memory which was never developed.   /
+--------------------------------------------------------------+