* [TUHS] observations on Unix v6's mount command
@ 2017-03-09 6:25 Mark Longridge
2017-03-09 6:32 ` Erik E. Fair
2017-03-09 7:06 ` Warren Toomey
0 siblings, 2 replies; 4+ messages in thread
From: Mark Longridge @ 2017-03-09 6:25 UTC (permalink / raw)
I was trying to look at mini-unix so I mounted the disk image inside
unix v6 via:
/etc/mount /dev/rk4 /usr/mini-unix
and I noticed that if I ran the mount command as a user and not root
that /etc/mtab would not be updated (but it was updated as expected as
root). Of course /etc/mtab is owned by root :)
Then I noticed something else when I did an ls in the /usr directory:
drwxrwxrwx 20 31 368 Sep 3 1976 mini-unix
Normally I would see things like:
drwxrwxr-x 2 bin 48 May 13 1975 adm
What does the 31 mean?
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
* [TUHS] observations on Unix v6's mount command
2017-03-09 6:25 [TUHS] observations on Unix v6's mount command Mark Longridge
@ 2017-03-09 6:32 ` Erik E. Fair
2017-03-09 7:06 ` Warren Toomey
1 sibling, 0 replies; 4+ messages in thread
From: Erik E. Fair @ 2017-03-09 6:32 UTC (permalink / raw)
The 31 is likely a UID number not found in /etc/passwd
Insofar as I know, you can set the ownership of a file to any arbitrary integer within the range of the uid_t (or whatever it was in ye olden days). See chown(8).
Erik
^ permalink raw reply [flat|nested] 4+ messages in thread
* [TUHS] observations on Unix v6's mount command
2017-03-09 6:25 [TUHS] observations on Unix v6's mount command Mark Longridge
2017-03-09 6:32 ` Erik E. Fair
@ 2017-03-09 7:06 ` Warren Toomey
2017-03-09 15:01 ` Ron Natalie
1 sibling, 1 reply; 4+ messages in thread
From: Warren Toomey @ 2017-03-09 7:06 UTC (permalink / raw)
On Thu, Mar 09, 2017 at 01:25:32AM -0500, Mark Longridge wrote:
> Then I noticed something else when I did an ls in the /usr directory:
>
> drwxrwxrwx 20 31 368 Sep 3 1976 mini-unix
Probably there is no username associated with uid 31 in the /etc/passwd file.
Cheers, Warren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20170309/306d17b2/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [TUHS] observations on Unix v6's mount command
2017-03-09 7:06 ` Warren Toomey
@ 2017-03-09 15:01 ` Ron Natalie
0 siblings, 0 replies; 4+ messages in thread
From: Ron Natalie @ 2017-03-09 15:01 UTC (permalink / raw)
When you mount the disk, the mount point displays the inode information of
the root directory of the mounted disk.
As Warren points out, that directory is owned by user id 31, but your
machine has no passwd file entry for that uid.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-09 15:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-09 6:25 [TUHS] observations on Unix v6's mount command Mark Longridge
2017-03-09 6:32 ` Erik E. Fair
2017-03-09 7:06 ` Warren Toomey
2017-03-09 15:01 ` Ron Natalie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).