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

I have been asked to write a compliment website/service for an iPhone app. The
Have to write a Python app to communicate and fetch some data from a
I have a website developed in Umbraco CMS, I would like to re-write old
I'm writing a simple web app in PHP that needs to have write access
I am trying to write an ajax web app. I have a function that
I have to write a website with JSP and Servlets which displays a questionnaire
I have a website where I need to parse date/time strings from receipts. These
I am coding a ribbon/achievements system for a website and I have to write
For an look and feel of IOS or Android app we have to write
I'm trying to write a website in Slovak language (central Europe). What I have

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.