dropping priveledges

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kamus of Kadizhar

    dropping priveledges

    Any way to get a python script to run with a specified user priveledges?

    I have a script that has to run as a specific user.

    Thanks,

    -Kamus

    --
    o__ | If you're old, eat right and ride a decent bike.
    ,>/'_ | Q.
    (_)\(_) | Usenet posting`

  • Rene Pijlman

    #2
    Re: dropping priveledges

    Kamus of Kadizhar:[color=blue]
    >Any way to get a python script to run with a specified user priveledges?[/color]



    --
    René Pijlman

    Comment

    • David M. Wilson

      #3
      Re: dropping priveledges

      Kamus of Kadizhar <yan@NsOeSiPnAe Mr.com> wrote in message news:<bsurh1$fe 1p$1@news3.info ave.net>...[color=blue]
      > Any way to get a python script to run with a specified user priveledges?
      >
      > I have a script that has to run as a specific user.[/color]

      For portability, doing it outside of the script is a better idea, eg.
      using su or sudo, etc. Otherwise,

      import os
      help(os.setuid)
      help(os.seteuid )


      David.

      Comment

      Working...