[yocto] about install shell script privilege problem

Zhang, Jessica jessica.zhang at intel.com
Tue Nov 30 21:06:34 PST 2010


Ke, Liping wrote:
> Hi, Jessica
> When testing the script, we found some privilege problems if using
> normal user to install the sdk. 
> 
> Now all those packages must be installed to /opt, which acquire root
> privilege. 
> So when running opkg-cl, the installation root must be pointed to
> "/", so opkg-cl needs root privilege too. 
> Since the installation root is "/", the opkg lib dir must be under
> "/var/lib/opkg" which needs root privilege too. 
> 
> And also, when extract rootfs, we need to use pseudo, since pseudo is
> installed under /opt/poky/, when running, it needs to create lock
> file which also needs root privilege.  
> 
> If user don't use sudo, there're several problems which can't be
> solved well enough currently (for example, yes, we can change owner
> of /opt/poky to current user, but what if user another username b to
> install another architecture under the /opt/poky?)   
> 
> So after discussion, we decide to use sudo to run the script.
> 
> Any other suggestions?
> 
> Thanks& Regards,
> criping

Liping,

I think this is consistent with the current SDK tarball installation that by
default going under /opt/poky.  Since our installer script will install
things under /opt/poky as well, using sudo to run the script should be fine
till we can install the host cross toolchain under user directory.

Thanks,
Jessica
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 8455 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20101130/c4297859/attachment.bin>


More information about the yocto mailing list