[nmglug] messed up permissions!

Gary Sandine gars at laclinux.com
Mon Apr 10 11:20:45 PDT 2006


On Mon, Apr 10, 2006 at 10:23:38AM -0600, js at jasonschaefer.com wrote:
> The echo $UID does not work in tcsh, not sure why. Newer versions of OSX
> switched to bash, which is much more popular. To find  your user id you
> need to read the contents of /etc/passwd in OSX. You can do this with
> grep, cat, less, vi, etc. (i.e., 'cat /etc/passwd'). Look for your user
> and it will tell you  which uid you have. Its the first number after
> your name. The second number is group ID.

Have you ever tried doing standard "unix stuff" like this in OS X?
I don't think you'll find user accounts in /etc/passwd.  :)  Run

/Applications/Utilities/Netinfo\ Manager

to find it.  IMO this is preferable over netinfo manager if it works,
at a tcsh prompt do:

% bash
$ echo $UID

-- 
Gary Sandine <gars at laclinux.com>




More information about the nmglug mailing list