how to make Xwayland auto start on tizen-ivi-3.0 image
Steve (YiLiang) Zhou
szhou at telecomsys.com
Fri Sep 5 01:01:21 PDT 2014
Thanks Pekka,
I see, I'll try to make the app access /home rather than /usr directory.
Thanks again for your passional reply.
Thanks and Best Regards
Steve Zhou
-----Original Message-----
From: Pekka Paalanen [mailto:ppaalanen at gmail.com]
Sent: Friday, September 05, 2014 3:09 PM
To: Steve (YiLiang) Zhou
Cc: Jasper St. Pierre; VanCutsem, Geoffroy; ivi at lists.tizen.org; wayland-devel at lists.freedesktop.org
Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image
On Fri, 5 Sep 2014 10:38:10 +0800
"Steve (YiLiang) Zhou" <szhou at telecomsys.com> wrote:
> Well, that’s a history problem. What’s the shortage of running things as root?
It is pretty much the same thing as why guns tend to have safeties, and are kept in locked cabinets when not actively handled, with keys only with those who know how to use them safely. It keeps your (system's) health better protected.
http://www.howtogeek.com/124950/htg-explains-why-you-shouldnt-log-into-your-linux-system-as-root/
http://askubuntu.com/questions/16178/why-is-it-bad-to-login-as-root
http://superuser.com/questions/666942/why-it-is-not-recommend-to-use-root-login-in-linux
http://unix.stackexchange.com/questions/1052/concern-about-logging-in-as-root-overrated
...the few first hits on Google.
While all those are about logging in as root, it's not really any different to starting programs as root from the init system.
Of course, if you are working on a closed embedded system which does not talk with the outside world at all, the dangers of running everything as root are smaller. However, you still compromise the system's ability to recover from failures, as an unexpected fault may screw up the system permanently, e.g. by overwriting files that are required for basic operation. Like things in /usr.
If your /usr was read-only, you'd be much more guaranteed the system is able to reboot into a working state if it ever goes haywire and starts doing crazy things.
The less a process has privileges, the less damage it can cause when it malfunctions or someone abuses it.
Thanks,
pq
> From: magcius at gmail.com [mailto:magcius at gmail.com] On Behalf Of Jasper
> St. Pierre
> Sent: Friday, September 05, 2014 9:56 AM
> To: Steve (YiLiang) Zhou
> Cc: Pekka Paalanen; VanCutsem, Geoffroy; ivi at lists.tizen.org;
> wayland-devel at lists.freedesktop.org
> Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image
>
>
>
> Don't run anything as root. Why does your application need to modify files under /usr/?
>
>
>
> On Thu, Sep 4, 2014 at 6:50 PM, Steve (YiLiang) Zhou <szhou at telecomsys.com> wrote:
>
> Thanks everyone,
> Xwayland already worked fine, we modify the user-session to use root
> login. The reason I want to start it with root is that our x11 app
> need modify a directory under /usr, app doesn't have the right.
CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network.
More information about the wayland-devel
mailing list