Re: ownership/permissions of cpio initrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 5 2006 14:58, Jeffrey Hundstad wrote:
>
> ...It also let's you mknod and friends, and let's you set permissions to files
> to more than just ONE user.  The whole point of the commands is to let you make
> distribution files without root access.  Of course you can fake all of this
> with a special archiver command.... I'm just throwing out options.

Ah. Thanks for explaining! Looks like it eats big amounts of memory when there
are a lot of files in the faekroot.


>
> $ fakeroot
> #  mkdir root
> #  mkdir root/dev/
> #  mknod root/dev/null c 1 3
> #  mknod root/dev/sda1 b 8 1
> #  chown root.disk root/dev/sda1
> #  cd root
> #  tar cvf ../root.tar ./
> #  exit
> $ tar tvf root.tar
> drwxr-xr-x root/root         0 2006-12-05 14:54 ./
> drwxr-xr-x root/root         0 2006-12-05 14:54 ./dev/
> crw-r--r-- root/root       1,3 2006-12-05 14:54 ./dev/null
> brw-r--r-- root/disk       8,1 2006-12-05 14:54 ./dev/sda1
>
> -- 
> Jeffrey Hundstad
>
>
>

	-`J'
-- 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux