LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-12-2005, 11:02 AM   #1
Chuck23
Member
 
Registered: Jun 2004
Distribution: Fedora Core1
Posts: 63

Rep: Reputation: 15
command line help - pretty basic


Hello! I would like to know if there is a command that will list groups. The reason I would like to do this is so that ordinary users will have access to hardware such as modem and storage devices. By default, my system (Vector Linux 4.3 - which makes my tired old 'puter gallop like a mustang) seems to only allow root access to these things.

Will it work if I create groups named "cdrom, modem, usb" and give members of those groups access to the devices, then add the privileged users to the groups?
Does that sound about right? Can anybody suggest another way to do it.

But first I'd like to peek under the hood of my system and see what groups are already there. Ideally, there's already a cdrom group with root as its only member, but I ain't bettin' the farm on it.

I know how to create groups, change permissions and all that. Stupid as it may sound, I do not know how to list the groups. I'd like to know how to do that.

Thanks in advance!

[edit-add]
(I've already googled this to death, and I still haven't found a convenient way to list groups.)
 
Old 01-12-2005, 11:34 AM   #2
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
Your plan sounds like the way to go, that's actually how I do it on my system.

The available groups on your system are stored in the file '/etc/group' (at least they are on my Debian system. So you can list the groups by using the command 'cat /etc/group'

Good luck.
 
Old 01-12-2005, 11:44 AM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
...and as " root " you're free to edit that file to your wishes.

egag
 
Old 01-12-2005, 11:51 AM   #4
Chuck23
Member
 
Registered: Jun 2004
Distribution: Fedora Core1
Posts: 63

Original Poster
Rep: Reputation: 15
I'll give her a try and let you know how it pans out. Thanks.
 
Old 01-12-2005, 11:54 AM   #5
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
couldn't he also add the option of user to the entries in fstab to allow normal users to use the devices as well?
 
Old 01-12-2005, 03:53 PM   #6
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
Putting the 'user' option in fstab doesn't say that normal users can use the device, it only specifies that normal users can mount the device.
 
Old 01-13-2005, 10:30 AM   #7
Chuck23
Member
 
Registered: Jun 2004
Distribution: Fedora Core1
Posts: 63

Original Poster
Rep: Reputation: 15
Smooth as silk and easy as ~3.14 -- thanks!

cat is extremely useful. It's essential to any blooming administrator's arsenal.

I LOVE LINUX!!!!
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 01:28 PM
Trying to accomplish something which I thought was pretty basic.... a5150a Linux - Newbie 6 08-02-2003 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:16 AM.

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
Open Source Consulting | Domain Registration