Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2002
    Posts
    281

    Question to be (root) or not to be (root)

    hello

    I'm wondering which user you use for your cronjobs. f.eg. do you have ROOT launching the cronjobs for webstats, backups ecc? or do you create a new user with root priviliges?

    thanks indeed for your help!
    Real name: Tar Mkdir, consort of Dir Rar
    Working for: Imperial Klingon Vine Impex
    Note: No, we do not beam vine! Don't offend the Empire with such requests!

  2. #2
    It is better to avoid running anything from root (or user with root privileges), just run from normal user, if something require root then run as run.

    Miha.
    Powered by AMD & FreeBSD.
    "Documentation is like sex:
    when it is good, it is very, very good;
    and when it is bad, it is better than nothing."

  3. #3
    Join Date
    Oct 2002
    Posts
    281
    thanks miha,

    this is what I was thinking to... but I'm always unsure to miss something.

    is there a way to launch a backup script (dealing with data across the entire box) with a user without having root access? I don't think so... I'd be very happy if you could confirm this
    Real name: Tar Mkdir, consort of Dir Rar
    Working for: Imperial Klingon Vine Impex
    Note: No, we do not beam vine! Don't offend the Empire with such requests!

  4. #4
    Join Date
    Jan 2002
    Location
    Atlanta, GA
    Posts
    1,249
    Could you SU from your backup script?

    Errr... Then you'd have the password hard coded into the script...

    Good question.... Someone knows though
    char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 }main (){void (*f)() = x;f();}
    I wear a gray hat

  5. #5
    You can use root's crontab to backup the things, it is OK if you run them from root, but make sure you won't erase some important data during backup.

    The other things like running stats, some services, is better to do from user without root's priv.

    Miha.
    Powered by AMD & FreeBSD.
    "Documentation is like sex:
    when it is good, it is very, very good;
    and when it is bad, it is better than nothing."

  6. #6
    Join Date
    Oct 2002
    Posts
    281
    su in the script... hmmm I don't like the idea to have the pass hardcoded into a script...

    miha.. I've tried but when running the stats with another user... well, the script wont work coz of missing priviliges (reading other users logfile, generating stats inside the user account).

    is there a way to do this?

    thanks again
    Real name: Tar Mkdir, consort of Dir Rar
    Working for: Imperial Klingon Vine Impex
    Note: No, we do not beam vine! Don't offend the Empire with such requests!

Posting Permissions

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