LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Storing user information. (https://www.linuxquestions.org/questions/linux-newbie-8/storing-user-information-543305/)

paroxsitic 04-04-2007 11:12 AM

Storing user information.
 
I have a webmin module in which I would like to store some information for the user that can be access instantly with some sort of echo command. Each user has the following information that I need to access at times:

User
User Group:
User Owner:
User Palace:

Is there a command I can use that will echo what group the particular user is in?

I was thinking of maybe storing this information in like the first name, last name, etc fields. I am not sure if this information is can be echo'ed back to the system easily.

Right now I have this information in a space delimited file. In every page of the webmin module it will use PERL to extract the information. This works but I believe its inefficient and probably insecure.

hepburnenthorpe 04-04-2007 12:21 PM

Quote:

Is there a command I can use that will echo what group the particular user is in?
Code:

groups username


All times are GMT -5. The time now is 09:32 PM.