sssd only returning user id and group id numbers

Issues related to applications and software problems
Post Reply
pbirkbeck214
Posts: 6
Joined: 2017/10/06 16:23:34

sssd only returning user id and group id numbers

Post by pbirkbeck214 » 2017/10/20 17:02:49

I was able to join centos to the domain using sssd and I am using ad as id provider but when I do the following command it just returns UID/GID only

id -u test
1957602165

What am I doing wrong here? And how can I get it to return the actual username or group

Thanks!

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: sssd only returning user id and group id numbers

Post by TrevorH » 2017/10/20 18:53:55

That's what the id command does. What do you want to do? Maybe getent?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pbirkbeck214
Posts: 6
Joined: 2017/10/06 16:23:34

Re: sssd only returning user id and group id numbers

Post by pbirkbeck214 » 2017/10/24 06:22:39

when running getent passwd I get this -

$ getent passwd test │···
test:*:1957602165:1957600513:Test User:/home/test:/bin/bash

How can we get it to share username and group instead of the numeric userid and group?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: sssd only returning user id and group id numbers

Post by TrevorH » 2017/10/24 10:09:52

It's not as simple as that. A user can be a member of more than one group for a start. Also since you seem to be starting with the username, that's something you already know so it sounds more like your question is "how can I find the user's _primary_ group" - is that right? If it is then, oops, you were on the right track to start with as the id command can do that - id -gn test
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply