LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-09-2022, 12:42 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Rep: Reputation: 177Reputation: 177
List samba domain users with UID


Is there an easy way to list samba domain users together with their UID? I can do the following:
Code:
samba-tool group listmembers "Domain Users" | while read; do wbinfo -i $REPLY; done
but if there is a single command versus looping through users, I'd much prefer.
 
Old 05-12-2022, 01:44 PM   #2
cgw
LQ Newbie
 
Registered: Jan 2021
Posts: 13

Rep: Reputation: Disabled
Try
Code:
net usersidlist
 
Old 05-13-2022, 11:53 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,564

Original Poster
Rep: Reputation: 177Reputation: 177
That give output like:
Code:
MYDOM\domusr
 S-1-5-21-1052267278-1962196458-4119365663-1207
 S-1-1-0
 S-1-5-2
 S-1-5-11
 S-1-5-21-1052267278-1962196458-4119365663-513
 S-1-5-21-1052267278-1962196458-4119365663-1105
 S-1-5-32-545
 S-1-5-32-555
None of which is the UID.
 
  


Reply

Tags
domain, samba, user id



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Audit ALL Sudo users and show the users UID( ) not root's UID (0) fat01 Linux - Security 1 10-13-2020 12:16 AM
Effective UID and real UID Milosevic Linux - General 1 01-06-2007 03:01 PM
Effective UID and Real UID Milosevic Linux - Newbie 1 01-06-2007 10:41 AM
Changing the UID of a Physical Volume to a specific UID jambraun Linux - Newbie 2 02-09-2006 02:34 PM
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration