Skip to main content

Questions tagged [getent]

15 votes
2 answers
5k views

Why am I known as a user?

I inherited a Linux server; the previous administrator is no longer with our company. I can log in to the server via SSH with my company-wide Microsoft Directory administration user, and it works ...
Matthias Ronge's user avatar
0 votes
2 answers
675 views

Resolve an IP to FQDN in domain that are not in resolvctl config

I want to use basic tool available without installing anything to solve an IP into it's FQDN. I know the domain in which I can solve this IP. The command line or the tool should be available on any ...
Kiwy's user avatar
  • 9,882
0 votes
4 answers
99 views

extract user id and 1st inital last name from output

Getting the output of user identity with getent passwd. How can i change the output from u12345:John Doe to u12345,jdoe i got it with sed but it it removes u12345 but does give me jdoe
mike's user avatar
  • 1
1 vote
1 answer
6k views

'getent passwd' not showing LDAP users, athough users can log in

I have an administration node running LDAP and a login node which uses LDAP on the other node to authorize users. Users are able to log into the login node successfully. When I run getent passwd, on ...
loris's user avatar
  • 195
1 vote
1 answer
2k views

How to get list of users with a given group as primary group

With getent group xyz I get a list of users who are members of xyz with xyz either as a primary group or as secondary group. How do I get a list of just those users who have xyz as their primary ...
loris's user avatar
  • 195
1 vote
1 answer
909 views

Random DNS errors after change to nsswitch.conf

I recently installed my EPSON L3150 printer's drivers and about the same time I started having weird (and random) DNS name resolution errors in some applications (ssh, nextcloud-client), that I can ...
arielnmz's user avatar
  • 569
1 vote
0 answers
1k views

List of Users - RHEL

I want to get list of users - both human and machine who have access to the unix server. OS is: NAME="Red Hat Enterprise Linux Server" VERSION="7.9 (Maipo)" I tried cat /etc/...
Abhishek Jain's user avatar
3 votes
2 answers
342 views

Why does getent default to .station if no TLD is specified?

With my current setup, I have a dnsmasq instance operating on my home server (Void Linux) and 3 GNU/Linux devices that use it as default dns (1 Manjaro, 1 Arch, 1 Linux Mint 20.1). Due to seemingly ...
Mek101's user avatar
  • 43
0 votes
1 answer
333 views

Why are there two root and nobody accounts according to "getent passwd"?

The output further down was retrieved by employing machinectl on a Ubuntu 20.04 host: machinectl pull-tar https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64-root.tar.xz focal ...
0xC0000022L's user avatar
5 votes
1 answer
7k views

Groups from LDAP: "getent" reports membership correctly but missing in output of "id"

I have a Debian 10 machine which uses PAM LDAP for authentication. In LDAP I have two users alice and bob which are both members of group mygroup. Everything has worked fine (so the configuration ...
Martin Konrad's user avatar
2 votes
1 answer
2k views

User listed in group but not in getent passwd

On a specific machine with both local users and LDAP users, there is a user that is listed under getent group foo (let's say the user jdoe is listed), but when doing getent passwd jdoe I get no output....
Joeytje50's user avatar
  • 165
0 votes
0 answers
551 views

Usage details of ahostsv4 in linux

There is a term called ahostsv4 in the Linux documentation of man getent. What is the usage of it?
Rumado's user avatar
  • 101
4 votes
1 answer
3k views

Inconsistency between “getent group” and “getent group <groupname>” – why?

Question How is the following possible? $ getent group | grep docker $ getent group docker docker:x:600: Note that the first call doesn’t return anything while the second one does. grpck doesn’t ...
Chriki's user avatar
  • 235
2 votes
1 answer
9k views

What must be added to nsswitch.conf to show AD users and groups?

This is a follow-up to this question. I have a CentOS 7 machine which has joined a domain FOOBAR. It is possible to successfully get info about users stored in the AD via id [email protected] ...
dr_'s user avatar
  • 32.4k
1 vote
3 answers
4k views

find user name through full name / gecos field?

Given a system where the user data comes from e.g. an OpenLDAP database and is not in the /etc/passwd file. Is it possible to search through the getent passwd database and look up the user id/name by ...
stefan0xC's user avatar
  • 1,643

15 30 50 per page