×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    32

    Daemon starts, but as "nobody" instead of "user"?!

    Hello guys,

    I've created a fotoshare.conf named file and put it to /etc/init/apps/ my daemon starts if N9 boots up, BUT it's not started as user nor root, it's started by "nobody"!?

    This is grep:

    Code:
    ~ $ ps aux | grep foto
     2233 nobody   -sh -c /opt/FotoShareN9/fotoshare_service
     2239 nobody   python /opt/FotoShareN9/fotoshare_service
     2392 user     grep foto
    The problem is the following, I want to be able to kill the daemon with "kill <pid>", but user is not permitted to do that, cause it was started by "nobody".

    Whats wrong?!

    My *.conf start code:

    Code:
    exec /usr/bin/aegis-exec -s -u user -l /opt/FotoShareN9/fotoshare_service
    And "fotoshare_service" is written in Python!

    Any ideas?

    AlphaX2
    Last edited by AlphaX2; 2012-05-08 at 21:31.

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Daemon starts, but as "nobody" instead of "user"?!

    Hi,

    can you modify the exec line in .conf file as mentioned in this link

  3. #3
    Registered User
    Join Date
    Feb 2012
    Posts
    32

    Re: Daemon starts, but as "nobody" instead of "user"?!

    Hi and thanks,

    I also tried it with a sh script to start - same "nobody instead of "user". So I HAVE TO use/add the aegis.manifest file?
    Cause I am developing with Python/PySide and there it is a bit strange to get it working. :-/

    AlphaX2

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Daemon starts, but as "nobody" instead of "user"?!

    Hi,

    Yes, for the aegis tokens.
    You can check this link too that discusses same -
    http://forum.meego.com/showthread.php?t=5445

    When you debianize you code that has python, did you try adding <your_app>.aegis in the debian folder, and add some line in rules file is i remember and build in sbox. is it not working?

  5. #5
    Registered User
    Join Date
    Feb 2012
    Posts
    32

    Re: Daemon starts, but as "nobody" instead of "user"?!

    I tried and modified and played around with pyside-assistant and created test application/deb file with:

    - _aegis included
    - digsignums

    But aegis is not able to install it with dpkg, it says (translated from german):

    dpkg: error by executing test_1.0.0.-1_all.deb (--install):
    Error setting rights »./opt/test«: Operation not permitted
    aegis-NOT-installing test (from '')
    Any idea what to do?

    /opt/test is a folder inside is a "test" executable and also a "test.sh" - both are also in digsignums.

    Thanks in advance.

    AlphaX2

  6. #6
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Daemon starts, but as "nobody" instead of "user"?!

    did you try with devel-su too..
    I have never tried with PySide, i will try to check

    Edit: There is one here, its a python project that uses aegis tokens. Can you compare yours with that?
    Last edited by kusumk; 2012-05-10 at 13:40.

  7. #7
    Registered User
    Join Date
    Feb 2012
    Posts
    32

    Re: Daemon starts, but as "nobody" instead of "user"?!

    did you try with devel-su too..
    Yepp, if you try it only with user rights, it will tell you that it needs super-user.

    Edit:

    First of all, I calculate the digsigsums hash, than I build the package with "dpkg -b" and at least I am attaching _aegis.
    I could also upload it somewhere, for further investigation.

    Edit II:
    Okay, I've checked your link - seems that it not builds correctly with build command from Readme, not sure, but digsigsums stays empty and aegis gives me also errors at the installation, BUT installs! :-/

    I'll investigate this scripts a bit - maybe it's a solution.

    Thanks so long!


    AlphaX2
    Last edited by AlphaX2; 2012-05-10 at 17:07.

  8. #8
    Registered User
    Join Date
    Feb 2012
    Posts
    32

    Re: Daemon starts, but as "nobody" instead of "user"?!

    It's solved and a way how to package a Python/PySide project with Aegis you'll find here: http://forum.meego.com/showthread.php?t=5880

    Thanks, AlphaX2

  9. #9
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Daemon starts, but as "nobody" instead of "user"?!

    Nice to see that its solved. Thank you very much for documenting it in the forum too.

Similar Threads

  1. Is there a way to "edit" and "save" the "texts" of received SMS messages?
    By pamir_yasti in forum General Development Questions
    Replies: 1
    Last Post: 2010-07-16, 10:15
  2. Replies: 3
    Last Post: 2009-06-18, 21:42
  3. N70 stuck on "Not allowed" on "Edit user data"
    By andreigheorghe in forum Mobile Java General
    Replies: 1
    Last Post: 2006-09-01, 18:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×