Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#33 Improve / remove root usage

open
nobody
None
5
2012-09-11
2012-09-11
Cheetah
No

Trying out the packaging script myself, I found that after it did the GPG work, I got a sudo prompt. Being the paranoid sort, I stopped right there. Of course, I took a look and it isn't doing anything sneaky, but it also isn't doing anything that should really require root access.

Ideally it would be nice if the app used fakeroot instead of sudo to do the little bits it needed, or at least recognized if it was already running within fakeroot and skipped both the "root is dangerous" warning and the attempted usage of sudo.

Discussion

  • Cheetah
    Cheetah
    2012-09-11

    FWIW, I tried removing all the sudo bits from the system exec calls and running the whole thing under fakeroot, and it worked fine :)

     
  • nanotube
    nanotube
    2012-09-13

    Hi,
    Thanks for your comment! I didn't think anyone would be interested in running the packaging script directly, instead of just using the repo :).

    Yes, running under fakeroot should be fine, probably preferable, but since I figured I'm the only one actually running the script, and I wrote it, I'm fine using sudo. :)

    Are you planning on using this on a regular basis to maintain your own repo? Or were you just checking it out?

     
  • Cheetah
    Cheetah
    2012-09-13

    I was partly curious about the script, and partly curious about the new Thunderbird build that (at the time) wasn't uploaded here yet, because I thought it had security updates (which it looks like actually it did not).