The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> C Programming
|
Control Panel in c/c++, through web-based interface
Discuss Control Panel in c/c++, through web-based interface in the C Programming forum on Dev Shed. Control Panel in c/c++, through web-based interface C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

October 4th, 2002, 10:26 AM
|
|
Junior Member
|
|
Join Date: Oct 2002
Location: India
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Control Panel in c/c++, through web-based interface
Hello All:
I am trying to lean some of the basics of programming. I would like to make a web-based interface that coould manage virtually anything - right from managing user to chaging httpd configuration through a web-based interface.
This is somewhat like Samba Swat and webmin. I am trying to learn the in-depth methods used in these programs.
Please tell me as you would to a baby
Thanks in advance
VinayRas
|

October 4th, 2002, 10:40 AM
|
 |
Contributing User
|
|
Join Date: Jul 2002
Location: London
Posts: 349
Time spent in forums: 4 h 19 m 21 sec
Reputation Power: 11
|
|
|
OK 1st step go on a C++ course for 3 years.
Come back and rephrase you question so that we all don't think your
a) stupid for asking such a dumb question
b) Lazy
c) Trying to get us to do work for you
|

October 5th, 2002, 09:02 AM
|
|
Junior Member
|
|
Join Date: Oct 2002
Location: India
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Where am i wrong?
Hello
How can you call my question as dumb?
I simply dont know how to manage root task through a web-based interface, that usually have user permission of "nobody" or "apache" in case of Apache Web-Server.
I never asked you to do my job. I love to do my part of work myself. I have searched a lot and still learning something about Linux permission using PAM.
Also , i have found we can change the user using the Apache webserver's suExec module.
I thought somebody, SENSEFUL enough would reply to me. BUT i feel there are still some people with "no knowledge" at all.
If you cant understand this question then i must call you a person with "no sense".
And also think twice before writing anything. It might spoil you image.
Anyway, thanks for the reply and cool suggestion.
|

October 24th, 2002, 03:46 PM
|
|
Junior Member
|
|
Join Date: Oct 2002
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
What you are looking for is sudo:
URL
It allows a lower-privileged user to execute certain applications as root. If you can't figure out how to use it, you shouldn't be, so I won't go into more details 
|

October 24th, 2002, 03:47 PM
|
|
Junior Member
|
|
Join Date: Oct 2002
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Just as another hint: It is not a good idea to allow nobody/apache perform root-tasks. Instead, I'd suggest you to use SuEXEC, wrap into a user (for example 'cpanel'), then set up sudo to allow 'cpanel' perform the task you'd like to do.
|

October 24th, 2002, 05:52 PM
|
 |
Throws Rocks
|
|
Join Date: Mar 2002
Location: Cincinnati, Ohio
Posts: 392
  
Time spent in forums: 6 h 31 m 7 sec
Reputation Power: 13
|
|
Quote: Originally posted by rendy
OK 1st step go on a C++ course for 3 years.
Come back and rephrase you question so that we all don't think your
a) stupid for asking such a dumb question
b) Lazy
c) Trying to get us to do work for you |
LOL! Thanks for the laugh!
__________________
Two things have come out of Berkeley, Unix and LSD.
It is uncertain which caused the other.
|

October 29th, 2002, 01:00 PM
|
|
Contributing User
|
|
Join Date: Oct 2002
Location: Flint, MI
Posts: 328
Time spent in forums: 1 h 19 m 25 sec
Reputation Power: 11
|
|
|
VinayRas,
It sounds like you're searching for a specific function call, setuid(uid_t). That changes the owner of the process from the current user to the uid of the user that you pass in as an argument. See the man page for more details.
The project you are working on sounds very ambitious, and you sound very new to C and UNIX programming. This might not be the best learning project, because unless you have sequestered your server onto an inaccessible network, you're going to make mistakes and leave yourself open to opportunistic miscreants.
__________________
Clay Dowling
Lazarus Notes
Articles and commentary on web development
http://www.lazarusid.com/notes/
|

October 31st, 2002, 09:30 AM
|
|
Junior Member
|
|
Join Date: Oct 2002
Location: India
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Thanks for gentle reply..
Thanks a lot for the suggestions.
Currently i am doing the same, though I am new to System Programming, I have been lover of Linux since long. But as i was only attached to web-development using PHP, never got time to think about anything else.
Now, i got the direction. Will learn more and apply the exisitng knowledge in making this project. And also will try to make this project as much secure as I can. Current plans are to make login via SSH. Lets see that waits in the near future...
Thanks for the gentle help..
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|