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:ppaala...@gmail.com] Sent: Friday, September 05, 2014 3:09 PM To: Steve (YiLiang) Zhou Cc: Jasper St. Pierre; VanCutsem, Geoffroy; i...@lists.tizen.org; wayland-devel@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" <sz...@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: magc...@gmail.com [mailto:magc...@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; i...@lists.tizen.org; > wayland-devel@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 <sz...@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. _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel