-   Linux - Hardware (
-   -   command line help - pretty basic (

Chuck23 01-12-2005 12:02 PM

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!

(I've already googled this to death, and I still haven't found a convenient way to list groups.)

McCloud 01-12-2005 12:34 PM

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.

egag 01-12-2005 12:44 PM

...and as " root " you're free to edit that file to your wishes.


Chuck23 01-12-2005 12:51 PM

I'll give her a try and let you know how it pans out. Thanks.

dr_zayus69 01-12-2005 12:54 PM

couldn't he also add the option of user to the entries in fstab to allow normal users to use the devices as well?

McCloud 01-12-2005 04:53 PM

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.

Chuck23 01-13-2005 11:30 AM

Smooth as silk and easy as ~3.14 -- thanks!

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


All times are GMT -5. The time now is 07:57 AM.