Bug 5259

Summary: adt-installer uses wrong permissions when extracting the sysroot
Product: [Yocto Project Subprojects] ADT Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: adtAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: Medium+ CC: jessica.zhang, poky.adt.watcher, poky.watcher, yi.zhao
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandru Georgescu 2013-09-24 12:49:58 UTC
poky: 853bc53cd58a621918f0e5ce662dba263d1befb4

If adt-installer is insatlled in the default location, e.g. /opt/poky, the user is asked to enter the sudo passwd in order to perform the install.
However, the sysroot is not installed as root, but as a normal user. 

In this commit, the sysroot is installed as root and this prevents the user to use ADT because of persmission denied.
Comment 1 Yi Zhao 2013-09-25 08:44:43 UTC
I did more testing about this issue. The ownership for sysroot directory is same with adt-installer location's ownership. The adt-installer will inherit the ownership of its parent directory. So if the parent directory owner is root, the adt-installer and the sysroot also be installed with root.
Comment 2 Alexandru Georgescu 2013-09-25 09:53:24 UTC
(In reply to comment #1)
> I did more testing about this issue. The ownership for sysroot directory is
> same with adt-installer location's ownership. The adt-installer will inherit
> the ownership of its parent directory. So if the parent directory owner is
> root, the adt-installer and the sysroot also be installed with root.

Hi,
When running the installer the user is asked for sudo passwd. Then with that user (superuser) the installer extracts the sysroot, therefore the root user in that folder. 

I have tested running as a normal user, and this behavior is consistent.
Comment 4 Alexandru Georgescu 2013-10-03 11:11:32 UTC
verified.