Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 04 Nov 2015 05:48 AM by  Jaimesh Mistry
Repercussions to Running LTIB as Root
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Kyle Cote
New Member
New Member
Posts:6


--
23 Oct 2015 01:13 PM

    I know running LTIB as root prompts a warning when you try and build or execute it as root but what are the repercussions of doing so? Currently I'm trying to execute an LTIB build on an automated Bamboo build and the scripts that I'm using to execute the commands, such as building LTIB, through a bash script which is run as root. I know a solution would be to add another user with non root privileges and run it as that but would like to stray away from that approach and figure out if I can just continue running as root.

     

    Any insight is appreciated.

    Thanks,

    Kyle C.

    bradb
    Basic Member
    Basic Member
    Posts:203


    --
    23 Oct 2015 02:05 PM

    Kyle,

    Here is information on this topic from http://ltib.org/documentation-LtibFaq.

    Do I need root permissions to use LTIB

    Yes, but only for the installation rpms after they have been built as your normal user. This is because the target image must create device nodes and other files with particular ownerships and permissions.

    The way this is achieved is by using sudo for rpm install. All other operations (building of packages) are performed as the non-root user.

    LTIB should never be run as root. The main reason is to prevent mistakes during development from causing damage to the host file system. To minimize the chance of mistakes during rpm installation, all rpms have a non-standard re-locatable prefix, which would cause them to be installed in a benign place if a user accidentally runs a stand-alone rpm install.

    Best Regards,

    Brad

    Kyle Cote
    New Member
    New Member
    Posts:6


    --
    23 Oct 2015 02:26 PM

    Thanks for the response. I'll look into how I can possibly to get this action to not run as root or temporarily create a user with non root privileges to run the commands.

    Jaimesh Mistry
    New Member
    New Member
    Posts:6


    --
    04 Nov 2015 05:48 AM
    Take a look at fakeroot-ng
    You are not authorized to post a reply.