I'm tring to install PostgreSQL on Mac OS 10.6.4 and I need to authenticate as an administrator. In the command line, I have:
su Admin
Password:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
My user is a standard (non-administrator) account, Admin is an administrator account, and the directory I'm working in when I execute 'su' is in my Downloads folder. If I do 'su - Admin' then it works, but then I can't access the necessary files! However, 'su Admin' should work because it leaves the environment unchanged.
How should I do this?