Bug 3153 - toolchain installation should prompt for sudo passwd on permission denied locations
Summary: toolchain installation should prompt for sudo passwd on permission denied loc...
Status: VERIFIED FIXED
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 1.4 M2
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-09-21 11:22 UTC by Alexandru Georgescu
Modified: 2012-12-13 03:28 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2012-09-21 11:22:12 UTC
An user is  allowed to install the toolchain in the default location (/opt/poky/1.2+snapshot) only by running it it with sudo, like: 

[alex@alex-v toolchain]$ sudo ./poky-eglibc-x86_64-i586-toolchain-gmae-1.2+snapshot-20120916.sh 


A nice improvement would be to have a sudo passwd prompt during installation if the user doesn't run it with sudo.
Comment 2 liang li 2012-12-13 03:28:10 UTC
password prompt met when run toolchain sh file without "sudo" to install toolchain to dir "/opt/poky/" which need root's write right with git master  381c4b69c7e8b452f4d3de2f8214e6e5f6a9abe7.