sssd only returning user id and group id numbers

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

sssd only returning user id and group id numbers

Postby 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
Forum Moderator
Posts: 21200
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: sssd only returning user id and group id numbers

Postby TrevorH » 2017/10/20 18:53:55

That's what the id command does. What do you want to do? Maybe getent?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

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

Re: sssd only returning user id and group id numbers

Postby 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
Forum Moderator
Posts: 21200
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: sssd only returning user id and group id numbers

Postby 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
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke