[ELDK] [RFSB] permission denied problem when adding dropbear key files to custom section

Martin Krause Martin.Krause at tqs.de
Wed May 19 09:17:30 CEST 2010


Hi Detlev,

Detlev Zundel wrote on Tuesday, May 18, 2010 6:26 PM:
> Hi Martin,
> 
>> I tried to add some rsa/dss keys for dropbear to the custom/rootfs
>> folder 
>> and get an "permission denied" error when building the root file
>> system image, 
>> because the key files are only readable by root:
>> 
>> mkr at dbps-sw-910:~/git/rfsb$ make
>> Current target list is  /home/mkr/git/rfsb/build/images/image.ext2
>> /home/mkr/git/rfsb/build/images/uRamdisk Copying files from
>> custom/rootfs 
>> cpio: ./etc/dropbear/dropbear_rsa_host_key: Cannot open: Permission
>> denied 
>> cpio: ./etc/dropbear/dropbear_dss_key: Cannot open: Permission
>> denied 1 block 
>> make: *** [status/stamp.custom-copy] Error 2
>> mkr at dbps-sw-910:~/git/rfsb$
> 
> Yes, I'm well aware of this problem as other people alreday reported
> similar problems.
> 
> Unfortunately "the right thing" to do would be to set the file
> attributes in the filesystem creation process itself (i.e. in
> mkfs.<filesystem>) independent of the attributes in the staging
> directory.
> 
> As this is not even supported in the tools we use, currently I can
> only suggest either to run rfsb with superuser rights, or to open the

Hm, then I have to run the git commands also as superuser, otherwise 
git may not be able to read some files (as I noticed for the dropbear
key files ...).

> file permissions at least for reading for the user running rfsb.

That's not nice, but maybe an option.

Regards,
Martin


More information about the eldk mailing list