[Voyage-linux] sshd in voyage 5.2

Ben Kochie (spam-protected)
Wed Mar 25 11:08:46 HKT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sure.. here was my plan to fix the install issues.

On the build side, everything can be installed using fakeroot.  After the 
build of the root that is tared up is done we can build a map file that 
contains all the permissions/ownership of all the files.  Something simple 
like a file that contains: (perms owner group file/dirname)

0755 0 0 /path/to/file

After the files have been copied to the new rootfs, the script can be run 
to verify the perms are correct.

The same thing can be done for the /dev devices, instead of keeping them 
in the tarball, they can be scanned for their info, and then a script will 
just walk through and mknod as root after the files are copied to the 
target rootfs.

It's a bit complicated, and there's probably room for optimization, but 
this setup would allow people to extract the installer as a user, and 
install with minimal root incursion on their host.

- -ben

  "UNIX is user-friendly, it's just picky about its friends."

On Wed, 25 Mar 2009, Kim-man 'Punky' TSE wrote:

> Hi Ben,
>
> From this thread, I eventually learned some answers of the previous 
> installation problems reported. 
>> 
>> It doesn't say you need to be root when you do that.  (maybe adding sudo to 
>> that command line would make it clear)
> Thanks.  Will add this to README.
>> 
>> Either way, I think the installation method should be cleaned up so that 
>> the tarball doesn't need to be --numeric-owner, nor have root extract it.
> Can you elaborate more how this could be done in practice?
>> 
>> The voyage.update script should have a post-install devicenode create 
>> script, and a permission/owner cleanup script.
> Can you explain why device node creation script is needed and how to achieve 
> permission/owner cleanup?
>> - -ben
>
> -- 
>
> Regards,
> Punky
>
> Voyage Solutions (http://solution.voyage.hk)
> * Embedded Solutions and Systems
> - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
> - Network Engineering, Development Platform and Consultation
> 
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJyaBDfYg2asD844oRAupQAJ9BwMSIYqoK2QYv3HcGmTMzAwXnXACfZy7h
xJw11zay3JX2AwY9cqbc5R4=
=73bi
-----END PGP SIGNATURE-----




More information about the Voyage-linux mailing list