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 980635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:24:55+00:00 2026-05-16T04:24:55+00:00

For a new project, I have to write a webinterface, which has the capability

  • 0

For a new project, I have to write a webinterface, which has the capability of modifying a configuration file. The system this will run on is a standard debian installation with apache and php5.
The only idea I came up with so far, is to write small c programms, setting the setuid bit to root and supplying the string to be inserted in the config file as a parameter. However I really have a bad feeling about this, since I would rather avoid any setuid programms in my system, for security reasons.
Unfortunatelly, the programm to witch the config file belongs refuses to start, if the config file hasn’t exclusive root permissions.

How do projects like webmin adress this issue? I would really appreciate some best-practice tipps, of how to implement this.

Thanks in advance

  • 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-16T04:24:55+00:00Added an answer on May 16, 2026 at 4:24 am

    You don’t need the Web server to write this file at all. In fact, that just seems like a very bad idea altogether. I’m assuming that this is an Intranet-only website? IF it were me I’d simply store the public key in a database and later have a cron job script come through and validate the certificate and then insert it. Sure, the script has to run as root (stick it in the root’s crontab) but you don’t have to lose sleep about your webserver writing to files with root permissions. 🙂

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

Sidebar

Related Questions

I am about to start a new project in scientific computing, which will run
Greetings StackOverflow community! For this new project I'm required to write a trigger which
I came to a new project which have been developed for a quite long
We are using Doctrine 2 for a new project and have run into an
I have a project which I am trying to use in another new project,
I have to start a new project where user authentication/management will be required. A
I'm starting a new project. It will run on devices running Windows CE, Windows
I have recently begun a new project which runs on remote computer. I usually
So, I have this new project. My company uses the SalesForce.com cloud to store
I would like to start a new project which will make extensive use of

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.