Author Topic: Show list of Samba Users  (Read 2512 times)

adhidash

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Show list of Samba Users
« on: August 14, 2015, 05:11:40 am »
Hi,

i was just wondering, does any of you know command line to show the list all of Samba User in Zentyal Server 4.1 ?

I tried getent passwd, but it just show no samba user, just normal local entry user.

When i tried getent passwd john (for example), then it show like this
Quote
john:*:25002:25003:John Doe:/home/john:/bin/bash

i mean what is the function of the asterisk sign (*) above, somehow it block me to list the samba users.

Any other command beside getent passwd to shown list of user ?

Thanks in advanced

expertgeeks

  • Forum Moderator
  • Zen Warrior
  • *****
  • Posts: 124
  • Karma: +11/-0
    • View Profile
Re: Show list of Samba Users
« Reply #1 on: August 14, 2015, 10:53:52 pm »
Are you looking to show currently connected users ? If yes, look at my post here;

https://forum.zentyal.org/index.php/topic,25436.msg96476.html#msg96476

If not, what output do you need ?

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Show list of Samba Users
« Reply #2 on: August 18, 2015, 10:33:11 am »
Easier way is using samba-tool own command:

samba-tool user list