C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 4th, 2002, 10:26 AM
vinayras vinayras is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: India
Posts: 7 vinayras User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to vinayras
Unhappy 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

Reply With Quote
  #2  
Old October 4th, 2002, 10:40 AM
rendy's Avatar
rendy rendy is offline
Moderator
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: London
Posts: 348 rendy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 17 sec
Reputation Power: 7
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

Reply With Quote
  #3  
Old October 5th, 2002, 09:02 AM
vinayras vinayras is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: India
Posts: 7 vinayras User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to vinayras
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.

Reply With Quote
  #4  
Old October 24th, 2002, 03:46 PM
danielsan danielsan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 2 danielsan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #5  
Old October 24th, 2002, 03:47 PM
danielsan danielsan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 2 danielsan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #6  
Old October 24th, 2002, 05:52 PM
GNUbie's Avatar
GNUbie GNUbie is offline
Throws Rocks
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Cincinnati, Ohio
Posts: 392 GNUbie User rank is Corporal (100 - 500 Reputation Level)GNUbie User rank is Corporal (100 - 500 Reputation Level)GNUbie User rank is Corporal (100 - 500 Reputation Level)GNUbie User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 6 h 31 m 7 sec
Reputation Power: 8
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.

Reply With Quote
  #7  
Old October 29th, 2002, 01:00 PM
ClayDowling ClayDowling is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Flint, MI
Posts: 328 ClayDowling User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 19 m 25 sec
Reputation Power: 6
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/

Reply With Quote
  #8  
Old October 31st, 2002, 09:30 AM
vinayras vinayras is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: India
Posts: 7 vinayras User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to vinayras
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..

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Control Panel in c/c++, through web-based interface


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT