LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2016, 11:47 AM   #1
kikilinux
Member
 
Registered: Sep 2012
Posts: 125

Rep: Reputation: Disabled
Question how to take permission to execute root privilege command like iptables in web GUI


I need to create a web gui for iptables tool which can remotely be configured via web GUI.
Ok the problem is when we need to run a command on my web GUI that is required root permission then we have to set root permission to web gui to execute that command results in dangerous behaviour of our program in the context of security.
Ok I want to know what is the best programming language for executing root privilege command on linux with minimum security issue?
 
Old 01-21-2016, 01:24 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Programming language has nothing to do with privileges. Use sudo. (Or webmin. You don't have to re-invent the wheel.)
 
Old 01-22-2016, 02:56 PM   #3
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Allowing root access via the web can be risky as you know. Whatever you do make sure to restrict access to your app by ip or similar measures.
 
Old 01-23-2016, 03:59 AM   #4
kikilinux
Member
 
Registered: Sep 2012
Posts: 125

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by NevemTeve View Post
Programming language has nothing to do with privileges. Use sudo. (Or webmin. You don't have to re-invent the wheel.)
Dear NevemTeve
Iptables is just a sample, if I want to create more than iptables on web GUI like webmin but not all the applications that webmin proposed, I want to know what is the specific way to work with root privilege tools in web application in linux?
I need to know what kind of trick Webmin has performed to pass this problem specifically, does it use sudo command or another techniques?
Think about the work that I want to perform like a practical experience to increase programming skills.
 
Old 01-23-2016, 05:52 AM   #5
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
'Use the source, Luke', Ben Kenobi said.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] User permitted to run command,execute program as root and after execution, exit root vjlxmi Linux - Newbie 12 04-17-2015 06:30 AM
Privilege Escalation - Getting 'root' privilege Rahil Parikh Linux - Security 2 12-02-2010 01:04 AM
how to execute iptables command on php? iluv8250 Programming 7 07-29-2009 12:42 PM
using shutdown command without root privilege chobin Programming 2 06-15-2006 10:51 AM
How to execute root-privilege programs in KDE autostart? rylan76 Linux - Software 3 07-31-2005 04:40 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration