Re: Finding the UID for samba users

From: Terry Polzin (fox3ec208_at_wideopenwest.com)
Date: 08/05/05

  • Next message: Anthony J Placilla: "RE: Finding the UID for samba users"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Fri, 5 Aug 2005 16:04:27 -0400
    
    
    
    

    On Friday 05 August 2005 03:52 pm, Tim Holmes wrote:
    > > Tim Holmes wrote:
    > > >>Tim Holmes wrote:
    > > >>>It appears, that since the users are being validated against the
    > > >
    > > > active
    > > >
    > > >>>directory, there are no entries for them in the passwd database.
    > > >
    > > > The
    > > >
    > > >>>getent passwd command returns no values
    > > >>>
    > > >>>Any other ideas?
    > > >>
    > > >>Are you including the domain name with the username, e.g.
    > > >>
    > > >>getent passwd 'DOMAIN\USER' | cut -d: -f3
    > > >>
    > > >>Paul.
    > > >
    > > > [Tim Holmes]
    > > >
    > > > Paul -- that fixed it -- thanks so much, one more if I could?
    > > >
    > > > Is there a way to just get a complete listing -- perhaps even
    > > > printable??
    > > >
    > > > thanks again
    > >
    > > Try this:
    > >
    > > getent passwd | awk -F: '{ printf "%-20s %5d %s\n", $1, $3, $5 }' |
    > > LC_ALL=C sort +1
    > >
    > > (that's all one line)
    > >
    > > Username, UID, Real Name in 3 columns
    > >
    > > Might not work if you have "winbind enum users = no" in your samba
    >
    > config.
    >
    > > Paul.
    >
    > [Tim Holmes]
    >
    > It works like a champ -- its wonderful
    >
    > I know this one is a newbie question, and im sorry, but I don't even
    > know where to look to find the answer....
    >
    > I would like to send the output to a file that I could open in excel. A
    > text file would work, because the way it outputs, there are spaces
    > between items (I think it would work)
    >
    > Can someone suggest a method?
    >
    > thanks -- TIM
    getent passwd | tr ":" "," >filename.csv

    
    

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: Anthony J Placilla: "RE: Finding the UID for samba users"

    Relevant Pages

    • RE: Finding the UID for samba users
      ... > config. ... >> Paul. ... > I know this one is a newbie question, and im sorry, but I don't even ... delimiters & merge delimiters on import. ...
      (Fedora)
    • RE: NFS Mount Permission Denied
      ... > bounces@redhat.com] On Behalf Of Paul Howarth ... For users of Fedora Core releases ... > Tim Holmes wrote: ... >> where to begin trouble shooting this one ...
      (Fedora)
    • Re: Wireless settings
      ... I would like to let the Config Panel for WEP ... Paul G. Tobey schrieb: ... Windows Zero Config user interface to pop up and allow the user to enter ... WEP keys, to enter passwords, etc. or you *do* want that to happen? ...
      (microsoft.public.windowsce.embedded.vc)
    • RE: Finding the UID for samba users
      ... > bounces@redhat.com] On Behalf Of Paul Howarth ... For users of Fedora Core releases ... [Tim Holmes] ... getent passwd command returns no values ...
      (Fedora)
    • Re: Wireless Adapter with static IP
      ... The device sitting on my workbench is working just fine with a ... > Paul T. ... >> platform I removed Zero Config from my configuration. ...
      (microsoft.public.windowsce.platbuilder)