0

I have Linux server (Debian 8.6) that has both local users and LDAP users, I want to create users with specific ID (via script), but I want to make sure it (ID) isn't reserved by local or LDAP user, our LDAP user has hundreds of users and manual search will take forever.

  • 2
    getent passwd <id>? – muru Nov 16 '16 at 11:36
  • @muru Thanks, did not though of this option, this will work. – Ahmad Abuhasna Nov 16 '16 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.