Bug 5259 - adt-installer uses wrong permissions when extracting the sysroot
Summary: adt-installer uses wrong permissions when extracting the sysroot
Status: VERIFIED FIXED
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 1.5 M5
Assignee: Laurentiu Palcu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-09-24 12:49 UTC by Alexandru Georgescu
Modified: 2013-10-03 11:11 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.