[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] how to find out to what domain a user belongs
- Subject: Re: [cobalt-users] how to find out to what domain a user belongs
- From: Andy <andy.brown@xxxxxxxxxxxxx>
- Date: Wed Sep 10 05:22:12 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Wednesday 10 September 2003 8:53 am, Robbert Hamburg \(HaVa Web- &
Procesdesign\) wrote:
> Hee guys.
>
> How do i find out to what domain a specific user belongs??
>
> Thanks Rob
>
The massively clever/complicated way (just paste this onto one line):
TMPNAME=`cat /etc/passwd |grep "benjamin"|cut -d : -f 6|cut -d / -f 4`; ls -la
/home/sites/ |grep $TMPNAME
Change the word benjamin for the user you're looking for, that'll show you
their /home/sites directory!
--
Andy
andy @ raqpak . com
http://www.raqpak.com/ Unofficial Cobalt downloads/support