11

We're trialling using a Ubuntu 14.04 desktop environment for a few of our developers and I've hooked the machines into the domain with SSSD. This has been working fine. However the system recognises the domain users as [email protected], so 'ls -l' output is quite messy. It also turns out they have some test scripts that have username hardcoded and so this @DOMAIN.COM breaks them.

Is there a way to make SSSD show the domain users as just 'username' instead of '[email protected]'? If not, is there a system that will allow me to do this?

Thanks

3 Answers 3

12

The 'default_domain_suffix' answer is valid for users from a trusted domain (i.e. IPA-AD trust is in place).

However, if your setup only has one domain, then removing "use_fully_qualified_names=True" from the config is an easier way.

3
  • Whilst I didn't have 'use_fully_qualified_names' enabled. This put me on my way to working out how to completely eliminate the 'SMALLBUSINESS.LAN' component. Commented Jan 8, 2015 at 12:44
  • Correction; this did entirely do what I needed. There was just some strange things going on with my test system after all the options I'd changed. Commented Jan 8, 2015 at 14:06
  • @jhrozek I have no sssd.conf file. Is there another way to achieve that ? Commented Jan 6, 2023 at 16:43
2

you need to add domain_resolution_order to your sssd.conf file. Bear in mind it only works under [sssd] section.

e.g.:

[sssd] domains = DOMAIN config_file_version = 2 services = nss, pam domain_resolution_order = YOURDOMAIN 
1

In AlmaLinux 10.0, also add this to the [sssd] section of sssd.conf:

full_name_format = %1$s

...this should result in user and group in "ls -l" not showing the domain...

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.