»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 12-11-2003, 01:50 PM   #1 (permalink)
Registered User
 
Join Date: Dec 2003
Posts: 24
torac is on a distinguished road
database with user name & passwords

Hey guys,

I am playing around with a new vb type program for linux and trying to create a administrator type tool. What the program is gonna do: is have the ability to add / del users and groups and add other such features such as address, etc. etc.. Can anyone tell me where the database is stored for the users on the linux system so i would be able to connect to it to update the database with this program? Or if linux stores it in a different way? thank you guys for your help.

-Torac

torac is offline   Reply With Quote
Old 12-11-2003, 02:25 PM   #2 (permalink)
Registered User
 
Epyon9283's Avatar
 
Join Date: Mar 2002
Location: South Brunswick, NJ, USA
Posts: 783
Epyon9283 is on a distinguished road
Send a message via ICQ to Epyon9283 Send a message via AIM to Epyon9283 Send a message via Yahoo to Epyon9283
AFAIK(I may not be correct) but the info is stored in these locations:
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
Epyon9283 is offline   Reply With Quote
Old 12-11-2003, 02:32 PM   #3 (permalink)
Registered User
 
Join Date: Dec 2003
Posts: 24
torac is on a distinguished road
mysql comp?

Can it be configured with mysql to view the data?
torac is offline   Reply With Quote
Old 12-11-2003, 02:32 PM   #4 (permalink)
Registered User
 
Join Date: Dec 2003
Posts: 24
torac is on a distinguished road
what is AFAIK??
torac is offline   Reply With Quote
Old 12-11-2003, 02:33 PM   #5 (permalink)
Guest
Guest
 
Posts: n/a
As Far As I Know
  Reply With Quote
Old 12-11-2003, 02:53 PM   #6 (permalink)
Registered User
 
Epyon9283's Avatar
 
Join Date: Mar 2002
Location: South Brunswick, NJ, USA
Posts: 783
Epyon9283 is on a distinguished road
Send a message via ICQ to Epyon9283 Send a message via AIM to Epyon9283 Send a message via Yahoo to Epyon9283
Re: mysql comp?

Quote:
Originally posted by torac
Can it be configured with mysql to view the data?
They're just plain text files so I have no clue.
Epyon9283 is offline   Reply With Quote
Old 12-11-2003, 03:00 PM   #7 (permalink)
Registered User
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Champaign, IL
Posts: 3,253
jkrohn is on a distinguished road
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
No, what you would have to do is write a program to parse the above files and insert the inforamation into a database. You could then connect to that database and read the information.

This is a waste, since in the program (minus the database) you will be doing this first step anyway! Take a look at the structure of those files. You will need to parse them and organize the data for yourself.

After that you can then make use of useradd, userdel, and usermod to make your changes with system calls.

Jkrohn
__________________
Jkrohn
jkrohn is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 11:54 AM.