View previous topic :: View next topic |
Author |
Message |
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
Posted: Mon Dec 31, 2025 8:58 pm Post subject: <resolved>Looking for some commands |
|
|
I have been looking at some of the references in this forum, but have been unable to find just what I want (yes, I admit I may have overlooked something, or it may be named something different than what I think it should be ); these are the commands I'm looking for.
As Root:
1. I want to be able to determine what command I should use to find out which groups that a particular user is assigned to: e.g. user "john"
2. I want to be able to determine what command I should use to either add or delete that particular user from the groups.
3. I want to be able to determine what command I should use to locate all of the available groups in my system.
This has all been discussed in many places here, most likely, but I haven't been able to locate it, so any help will be appreciated. I'm sure that some others will be able to learn from this post, as well as myself.
TIA, JP
_________________ Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Last edited by JP on Tue Jan 01, 2025 6:09 am; edited 1 time in total |
|
Back to top |
|
tlmiller Ultimate Member

Joined: 01 May 2025 Posts: 2432 Location: MD, USA
|
Posted: Mon Dec 31, 2025 9:46 pm Post subject: |
|
|
1. I just 'less /etc/group'
2. I just 'vi /etc/group'
3. again, 'less /etc/group'
_________________ Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
|
|
Back to top |
|
lynch Moderator

Joined: 15 Nov 2025 Posts: 2659 Location: The Diamond State
|
Posted: Mon Dec 31, 2025 9:49 pm Post subject: |
|
|
For #1 you could do this: Code: | cat /etc/group | grep <username> |
For #2 check out the man pages for groupmod.
For #3 you can look at /etc/group with the cat command.
HTH
lynch
_________________ Mandriva 2025 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2025 -2.6.26.8.tex3
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
d_riordan Member

Joined: 08 Jan 2025 Posts: 245 Location: Leominster, Massachusetts, U.S.A.
|
Posted: Tue Jan 01, 2025 4:02 am Post subject: |
|
|
If you're looking for a way to edit groups other than manually editing the /etc/group file, try running:
This turned up a slew of commands on my Ubuntu system.
_________________ *buntu 8.04
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
|