# why no lsuser/lsgroup command

I did google search and search the list of Fedora commands.

1) Can have a hard time believing no one has asked the question before. 2) Why is there no lsusr/lsgrp commands in Fedora? I am running on the server version.

edit retag close merge delete

Sort by » oldest newest most voted

On Linux the lslogins <userid> command should give you the same details as lsuser. As for lsgroup I do not think there is an equivalent command. But unless you have an huge number of users lslogins and cat /etc/group should be sufficient.


UID:                                500
Gecos field:                        Pierre Wills
Home directory:                     /home/pwills
Shell:                              /bin/bash
Primary group:                      pierre
GID:                                500
Last terminal:                      pts/0
Last hostname:                      192.168.1.176
Hushed:                             no
Selinux context:                    unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
enter code here


more

Welcome to ask.fedora. A little bit of searching shows that the commands you're looking for are Oracle specific rather than standard Unix/Linux commands. We might be able to help you find something that will do what you need if you'll explain (by editing your question) what these do and what you need.

more

I come from a AIX background where lsuser and lsgroup both take a "ALL" parameter. This allows the "/etc/passwd" file and "/etc/group (this file name may not be correct, I am going by biological memory )"to have the "r" bit turned off for "others" on both files.

Clearly the Fedora does not have such commands and has lived just fine without them.

Thanks for you time. Hope to return the favor some day.

more