Who is the Owner?

General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Who is the Owner?

Postby Keith » 12 Mar 2010, 19:21

I mount /mnt on my laptop (host bozo). I touch me.mine and then I type ls -l and I find that the file is owned by 4294967294. I would like to know why this number is generated since it doesn't correspond to the obvious. Is there a way to show file ownership is bozo as that is my laptop's hostname? But I guess that won't matter much when I log in as a user instead of being logged in as root (on the laptop)--or would it? While I'm waiting for a book that my unlock the NFS secrets I'll just end this with your truly, Keith.
Keith
Junior Member
 
Posts: 19
Joined: 01 Jan 2010, 15:45
Location: Orlando, FL

Postby fronclynne » 12 Mar 2010, 19:47

4294967294? Do UIDs go that high? You mean 65534? I'm going to hazard that mapall=nobody might be set on the server.
[color="DimGray"]Quid habemus reliquum?
Nutrimentum anatum![/color]
[color="Teal"]Внимание: лифт вниз не поднимает[/color]
User avatar
fronclynne
Senior Member
 
Posts: 1297
Joined: 09 Feb 2009, 04:47
Location: Lunch Time

Postby DutchDaemon » 12 Mar 2010, 22:01

As an aside: the owner is never your laptop's hostname. Hostnames have no rights. It's the account you touch the file as (or it should be). It depends on the implementation whether the numeric id corresponds to the same user on the server and the client.
User avatar
DutchDaemon
Old Fart
 
Posts: 10466
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby gordon@ » 12 Mar 2010, 22:23

Assuming you are talking about NFS and you attempted to do this as the root user on your laptop. The [man=5]exports[/man] page holds the secret.

In the absence of -maproot and -mapall options, remote accesses by root will result in using a credential of -2:-2.


-2 coerced into an unsigned integer on a 32-bit platform equals 4294967294.
gordon@
Member
 
Posts: 404
Joined: 20 Feb 2008, 22:44
Location: San Diego, CA


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest