LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2007, 12:12 PM   #1
paroxsitic
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
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.
 
Old 04-04-2007, 01:21 PM   #2
hepburnenthorpe
Member
 
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132

Rep: Reputation: 15
Quote:
Is there a command I can use that will echo what group the particular user is in?
Code:
groups username
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
list users and user information MrSako Linux - Newbie 7 11-03-2006 10:24 PM
clamd ERROR:Can't get information about user <USER> sailu_mvn Linux - Software 0 12-21-2005 01:49 AM
script for getting user information from LDAP paul_mat Linux - Networking 1 11-03-2005 09:30 PM
user information and data backup wenberg Linux - General 1 01-26-2004 04:21 AM
more user information Goatdemon LQ Suggestions & Feedback 4 07-05-2002 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration