[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



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