USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

<resolved>Looking for some commands

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands
View previous topic :: View next topic  
Author Message
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Mon Dec 31, 2024 8:58 pm    Post subject: <resolved>Looking for some commands Reply with quote

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 Embarassed ); 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, 2024 6:09 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
tlmiller
Ultimate Member


Joined: 01 May 2024
Posts: 2432
Location: MD, USA

PostPosted: Mon Dec 31, 2024 9:46 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
lynch
Moderator


Joined: 15 Nov 2024
Posts: 2659
Location: The Diamond State

PostPosted: Mon Dec 31, 2024 9:49 pm    Post subject: Reply with quote

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 2024 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2024 -2.6.26.8.tex3
Back to top
View user's profile Send private message
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Mon Dec 31, 2024 11:58 pm    Post subject: Reply with quote

Thanks guys, just what I needed Wink. Both work great! Obviously, there's more than one way to break an egg suckin dog!!



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
d_riordan
Member


Joined: 08 Jan 2024
Posts: 245
Location: Leominster, Massachusetts, U.S.A.

PostPosted: Tue Jan 01, 2024 4:02 am    Post subject: Reply with quote

If you're looking for a way to edit groups other than manually editing the /etc/group file, try running:
Code:
man -k group

This turned up a slew of commands on my Ubuntu system.



_________________
*buntu 8.04
Back to top
View user's profile Send private message Visit poster's website
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Tue Jan 01, 2024 6:09 am    Post subject: Reply with quote

d_riordan wrote:
If you're looking for a way to edit groups other than manually editing the /etc/group file, try running:
Code:
man -k group

This turned up a slew of commands on my Ubuntu system.


Mine too. gotta write that one down Wink THX



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse