[lttng-dev] lttng, lttng-sessiond and the tracing group

Thibault, Daniel Daniel.Thibault at drdc-rddc.gc.ca
Wed Feb 6 13:27:24 EST 2013


-----Message d'origine-----
De : christian.babeux at 0x80.ca [mailto:christian.babeux at 0x80.ca] De la part de Christian Babeux
Envoyé : 6 février 2013 12:52

> >    First observation
>
> I'm not able to reproduce your first observation on my machine.
>
> > [...]
> > $ sudo lttng -vvv create rootlevel
> > Session rootlevel created.
> > Traces will be written in 
> > /home/daniel/lttng-traces/rootlevel-20130206-091954
>
> This looks wrong. Traces should be written under the /root/lttng-traces. Are you sure this command has effectively been issued has the root user? It looks like it was issued as your normal user hence the "session=rootlevel" in your user ~/.lttngrc. Could you try su'ing to root instead?

   This may very well be an "Ubuntism".  All flavours of Ubuntu use a locked root and force all users to systematically use sudo; the su command won't go anywhere because there is no root password.  (It is possible, though strongly discouraged, to unlock and later relock the root account, as explained here: https://help.ubuntu.com/community/RootSudo)  The short and sweet of it is that (nearly) all super-user operations under Ubuntu will be conducted by a user (with sudo privileges), not by the root account.  Hence the shenanigans I ran into.  It sounds like LTTng will have to adjust the way it allocates the root .lttngrc path under Ubuntu systems, so that it uses /root/.lttngrc instead of ~/.lttngrc

Daniel U. Thibault
R & D pour la défense Canada - Valcartier (RDDC Valcartier) / Defence R&D Canada - Valcartier (DRDC Valcartier)
Cyber sécurité pour les missions essentielles (CME) / Mission Critical Cyber Security (MCCS)
Protection des systèmes et contremesures (PSC) / Systems Protection & Countermeasures (SPC)
2459 route de la Bravoure
Québec, QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada / Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>


More information about the lttng-dev mailing list