Forum Moderators: coopster
I need login and use root access via using php, I just start make control panel. So Im using system and root shell commands.
How do i gain root access via using php and login as a root using php? I know how to with sudo, but I need to know how to make login as a root is it possible?
Thank you for help.
Or you could write a daemon that would run as root, and let the control panel talk to the daemon over a network socket. That wouldn't require any C. But it would take more work to make it secure.
Any other way that I can think of would be very easily exploitable by local users.
@Psychopsia,
Im working on php, so i need apache requires root or php need.
@mcavic,
Yes what was Im searching for, "write a daemon that would run as root" How do I write a deamon like a cpanel? Im clearly far off from Perl I know cpanel and others doing this with perl is there any best help or how to websites about writing daemon?
Note: If I finish this job, I will provide revolution to all IRC and radio providers, because my program can setup auto IRC and radio with one click on the panel to any customer and there is no need any ssh config file configuration,also after setup program run irc and radio for customer, also my product can start all IRC and Radio services after rebooting server.
- 800 PHP scripts supported ( better then fantastico )
- Repair any service if broken
- Setup and configure firewall & sync, ddos protection systems with one click.
My future is remove SSH world for linux configurations, and start a new world on big control panel like a Windows.
I have been spend 1 year to write this control panel, so i will spend much more for finish it, there is one step left for me, only need root access for php. I know there is a big lost about dont know Perl Language but Any help, i will be realy happy here.
Thank you for help.
Any other way that I can think of would be very easily exploitable by local users.... or remote control panel users, or those bad guys from the dark side ... I may add.
A daemon can be programmed in any language. Perl is just one of them. C is another one.
You may have a look at `webmin`, which is a web based server admin tool distributed under a BSD-like licence, to get some further hints on how things could be done.
Perhaps you may use that as framework and just add a new module with your own special functions.
Kind regards,
R.
@Romeo
Thank you for information, im going to setup webmin and look. I believe I will spend 1 year for learn perl language.
okay if is there any other way without security risk please let me know. Otherwise Im already start learn perl lang.
Thank you guys.
All the best..