* [Xenomai-help] preferred uid?
@ 2011-05-10 17:23 luxInteg
2011-05-10 17:32 ` Thomas Lockhart
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: luxInteg @ 2011-05-10 17:23 UTC (permalink / raw)
To: Xenomai help
greetings
I normally compile stuff as an ordinary user, but I noticed in this area
people often compile as root as kernel modules are involved. I note
xenomai can be compiled either as user or root so is there a preferred way ?
thanks in advance
luxInteg
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [Xenomai-help] preferred uid?
2011-05-10 17:23 [Xenomai-help] preferred uid? luxInteg
@ 2011-05-10 17:32 ` Thomas Lockhart
2011-05-10 18:20 ` Wolfgang Denk
2011-05-10 19:23 ` Gilles Chanteperdrix
2 siblings, 0 replies; 8+ messages in thread
From: Thomas Lockhart @ 2011-05-10 17:32 UTC (permalink / raw)
To: luxInteg; +Cc: Xenomai help
luxInteg wrote:
> greetings
>
> I normally compile stuff as an ordinary user, but I noticed in this area
> people often compile as root as kernel modules are involved. I note
> xenomai can be compiled either as user or root so is there a preferred way ?
>
The patched kernel and fundamental Xenomai kernel modules must be
installed and loaded as root, but can in principle be built by any user.
The userland Xenomai libraries could be built by any user but (for my
systems anyway) are installed in areas requiring root permissions. Code
you build yourself on top of userland Xenomai can be built by any user
(this is what I do), but must be run with a subset of root permissions
to allow setting thread priorities etc.
hth
- Tom
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [Xenomai-help] preferred uid?
2011-05-10 17:23 [Xenomai-help] preferred uid? luxInteg
2011-05-10 17:32 ` Thomas Lockhart
@ 2011-05-10 18:20 ` Wolfgang Denk
2011-05-10 19:23 ` Gilles Chanteperdrix
2 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2011-05-10 18:20 UTC (permalink / raw)
To: luxInteg; +Cc: Xenomai help
Dear luxInteg,
In message <201105101823.50226.lux-integ@domain.hid> you wrote:
>
> I normally compile stuff as an ordinary user, but I noticed in this area
> people often compile as root as kernel modules are involved. I note
> xenomai can be compiled either as user or root so is there a preferred way ?
You should incorporate the rule to always work as normal user only,
and only in the very few cases where you really need root permissions
(like when installing code into system direcotries or loading kernel
modules) you should use "sudo" or similar.
Short answer: all compilations and all other building of sowtare
should always be done as normal user only, and never ever as root.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@domain.hid
Of course there's no reason for it, it's just our policy.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] preferred uid?
2011-05-10 17:23 [Xenomai-help] preferred uid? luxInteg
2011-05-10 17:32 ` Thomas Lockhart
2011-05-10 18:20 ` Wolfgang Denk
@ 2011-05-10 19:23 ` Gilles Chanteperdrix
2011-05-11 15:31 ` luxInteg
2 siblings, 1 reply; 8+ messages in thread
From: Gilles Chanteperdrix @ 2011-05-10 19:23 UTC (permalink / raw)
To: luxInteg; +Cc: Xenomai help
On 05/10/2011 07:23 PM, luxInteg wrote:
> greetings
>
> I normally compile stuff as an ordinary user, but I noticed in this area
> people often compile as root as kernel modules are involved. I note
> xenomai can be compiled either as user or root so is there a preferred way ?
As others have said, compile as ordinary user, run make install or make
modules_install as root, or run "sudo make install". Another reason for
running "make install" as root, is that root privilege is also required
to create the device nodes (/dev/rtheap, /dev/rtp*) needed by Xenomai
applications.
--
Gilles.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [Xenomai-help] preferred uid?
2011-05-10 19:23 ` Gilles Chanteperdrix
@ 2011-05-11 15:31 ` luxInteg
2011-05-11 15:32 ` Gilles Chanteperdrix
0 siblings, 1 reply; 8+ messages in thread
From: luxInteg @ 2011-05-11 15:31 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: Xenomai help
On Tuesday 10 May 2011 20:23:43 Gilles Chanteperdrix wrote:
> On 05/10/2011 07:23 PM, luxInteg wrote:
> > greetings
> >
> > I normally compile stuff as an ordinary user, but I noticed in this
> > area people often compile as root as kernel modules are involved. I
> > note xenomai can be compiled either as user or root so is there a
> > preferred way ?
>
> As others have said, compile as ordinary user, run make install or make
> modules_install as root, or run "sudo make install". Another reason for
> running "make install" as root, is that root privilege is also required
> to create the device nodes (/dev/rtheap, /dev/rtp*) needed by Xenomai
> applications.
yes this is my rule of thumb too
However as I read through the install file in the xenomai tarball I
noticed there was only reference to 'make install' (at least on x86
platforms). i did this and did not bother with running make. Is this
acceptable?
sincerely
luxInteg
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] preferred uid?
2011-05-11 15:31 ` luxInteg
@ 2011-05-11 15:32 ` Gilles Chanteperdrix
2011-05-12 21:01 ` luxInteg
0 siblings, 1 reply; 8+ messages in thread
From: Gilles Chanteperdrix @ 2011-05-11 15:32 UTC (permalink / raw)
To: luxInteg; +Cc: Xenomai help
On 05/11/2011 05:31 PM, luxInteg wrote:
> On Tuesday 10 May 2011 20:23:43 Gilles Chanteperdrix wrote:
>> On 05/10/2011 07:23 PM, luxInteg wrote:
>>> greetings
>>>
>>> I normally compile stuff as an ordinary user, but I noticed in this
>>> area people often compile as root as kernel modules are involved. I
>>> note xenomai can be compiled either as user or root so is there a
>>> preferred way ?
>>
>> As others have said, compile as ordinary user, run make install or make
>> modules_install as root, or run "sudo make install". Another reason for
>> running "make install" as root, is that root privilege is also required
>> to create the device nodes (/dev/rtheap, /dev/rtp*) needed by Xenomai
>> applications.
>
> yes this is my rule of thumb too
>
> However as I read through the install file in the xenomai tarball I
> noticed there was only reference to 'make install' (at least on x86
> platforms). i did this and did not bother with running make. Is this
> acceptable?
As we already told you, it is preferable to run
make
then
sudo make install
For reasons already explained in the three answers you received.
--
Gilles.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] preferred uid?
2011-05-11 15:32 ` Gilles Chanteperdrix
@ 2011-05-12 21:01 ` luxInteg
2011-05-12 21:05 ` Philippe Gerum
0 siblings, 1 reply; 8+ messages in thread
From: luxInteg @ 2011-05-12 21:01 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: Xenomai help
On Wednesday 11 May 2011 16:32:06 Gilles Chanteperdrix wrote:
> On 05/11/2011 05:31 PM, luxInteg wrote:
> > On Tuesday 10 May 2011 20:23:43 Gilles Chanteperdrix wrote:
> >> On 05/10/2011 07:23 PM, luxInteg wrote:
> >>> greetings
> >>>
> >>> I normally compile stuff as an ordinary user, but I noticed in this
> >>> area people often compile as root as kernel modules are involved. I
> >>> note xenomai can be compiled either as user or root so is there a
> >>> preferred way ?
> >>
> >> As others have said, compile as ordinary user, run make install or make
> >> modules_install as root, or run "sudo make install". Another reason for
> >> running "make install" as root, is that root privilege is also required
> >> to create the device nodes (/dev/rtheap, /dev/rtp*) needed by Xenomai
> >> applications.
> >
> > yes this is my rule of thumb too
> >
> > However as I read through the install file in the xenomai tarball I
> > noticed there was only reference to 'make install' (at least on x86
> > platforms). i did this and did not bother with running make. Is this
> > acceptable?
>
> As we already told you, it is preferable to run
> make
> then
> sudo make install
>
> For reasons already explained in the three answers you received.
so perhaps you should update the INSTALL file that accompany released
tarballs of xenomai then?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] preferred uid?
2011-05-12 21:01 ` luxInteg
@ 2011-05-12 21:05 ` Philippe Gerum
0 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2011-05-12 21:05 UTC (permalink / raw)
To: luxInteg; +Cc: Xenomai help
On Thu, 2011-05-12 at 22:01 +0100, luxInteg wrote:
> On Wednesday 11 May 2011 16:32:06 Gilles Chanteperdrix wrote:
> > On 05/11/2011 05:31 PM, luxInteg wrote:
> > > On Tuesday 10 May 2011 20:23:43 Gilles Chanteperdrix wrote:
> > >> On 05/10/2011 07:23 PM, luxInteg wrote:
> > >>> greetings
> > >>>
> > >>> I normally compile stuff as an ordinary user, but I noticed in this
> > >>> area people often compile as root as kernel modules are involved. I
> > >>> note xenomai can be compiled either as user or root so is there a
> > >>> preferred way ?
> > >>
> > >> As others have said, compile as ordinary user, run make install or make
> > >> modules_install as root, or run "sudo make install". Another reason for
> > >> running "make install" as root, is that root privilege is also required
> > >> to create the device nodes (/dev/rtheap, /dev/rtp*) needed by Xenomai
> > >> applications.
> > >
> > > yes this is my rule of thumb too
> > >
> > > However as I read through the install file in the xenomai tarball I
> > > noticed there was only reference to 'make install' (at least on x86
> > > platforms). i did this and did not bother with running make. Is this
> > > acceptable?
> >
> > As we already told you, it is preferable to run
> > make
> > then
> > sudo make install
> >
> > For reasons already explained in the three answers you received.
>
> so perhaps you should update the INSTALL file that accompany released
> tarballs of xenomai then?
Do not hesitate to contribute such update since you are now well aware
of the issue, a simple patch would do. Anything which may help the
Xenomai maintainers to cope with the workload involved in bringing you
that software is welcome.
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-05-12 21:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 17:23 [Xenomai-help] preferred uid? luxInteg
2011-05-10 17:32 ` Thomas Lockhart
2011-05-10 18:20 ` Wolfgang Denk
2011-05-10 19:23 ` Gilles Chanteperdrix
2011-05-11 15:31 ` luxInteg
2011-05-11 15:32 ` Gilles Chanteperdrix
2011-05-12 21:01 ` luxInteg
2011-05-12 21:05 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.