Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

best approah (security) to do some admin work through web page in Linux?

10 like 0 dislike
Hello,

I want to build a web based admin tools that allow the system admin to run pre-configured commands and scripts through a web page (simple and limited webmin), what is the best approach?

I already started with Ubuntu installing LAMP and give the user www-data root's privileges !!! as I learned (please check the link) this is a really bad move !!!, so how to build such web-based system without the security risk?
asked 1 year ago by DBA-boss (120,990 points)

1 Answer

1 like 0 dislike
 
Best answer
I already started with Ubuntu installing LAMP and give the user www-data root's privileges

Don't do this.

If you really want to execute some very specific scripts under root privileged. Create such predefined very limited scripts, allow their password-less execution with sudo for specific user and then run them via script and don't forget authentication.

Generally this is bad idea.
answered 1 year ago by eagles11 (179,830 points)

Related questions

9 like 0 dislike
2 answers
3 like 0 dislike
4 answers
asked 1 year ago by eagles11 (179,830 points)
5 like 0 dislike
0 answers
5 like 0 dislike
0 answers
3 like 0 dislike
0 answers