Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1100849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:56:45+00:00 2026-05-17T00:56:45+00:00

I have write a website,what confused me is when i run the website,first i

  • 0

I have write a website,what confused me is when i run the website,first i need start the the app,
so there are 3 ways:

  1. sudo python xxx.py
  2. python xxx.py
  3. xxx.py

I didn’t clear with how to use each of them,the NO.3 method currently in my computer dosen’t work well

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:56:46+00:00Added an answer on May 17, 2026 at 12:56 am

    sudo will run the application with superuser permissions. Considering that you’re referring to a website, this is certainly not what you want to do. (For a webapp, if it requires superuser permissions, it’s broken. That’s far, far too big of a security risk to consider actually using.)

    Under other circumstances you might have a python program that does some sort of system maintaince and requires being run as root. In this case, you’d use sudo, but you would never want to do this for something that’s publicly accessible and could potentially be exploited. In fact, for anything other than testing, you should probably run the webapp as a separate user with very limited access (e.g. with their shell set to /dev/null, no read or write access to anything that they don’t need, etc…).

    The other two are effectively identical (in therms of what they do), but the last option (executing the script directly) will require:

    1. the executable bit to be set (on
      unix-y systems) (e.g. chmod +x whatever.py)
    2. a shebang on the first line(e.g. #!
      /usr/bin/python
      ) pointing to the
      python execuctable that you want to
      run things with (again, this only applies to unix-y systems)

    Calling python to run the code (python whatever.py) and following the steps above (resulting in a script that you can call directly with whatever.py)
    do exactly the same thing (assuming that the shebang in the python file points to the same python executable as “python” does, anyway…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an easy way to have this, so i don´t need to write
I have to write something in vbscript that need to use a unique set.
I have to write a reliable, totally-ordered multicast system from scratch in Python. I
I have a website where there is a lengthy list of items to display
How HTTP request works:(if i have mistake, please write) user type in browser http://www.website.com
I have a TextArea on my website which I write the input into my
How can I determine if I have write permission on a remote machine in
I have to write an applet that brings up a password dialog. The problem
I have to write a component that re-creates SQL Server tables (structure and data)
I have to write a program that read from a file that contains the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.