Igmar Palsenberg wrote:
> 
> > I could not su as root to my user account when I issue "su user". the
> > error message is as the subject. As a result, I could not start my
> > postgresql service. It gave me the same error.
> 
> You're in a directory that the user you're trying to su to doesn't have
> access to.
> 
>         Igmar
> 

so you wanna do "su - user" instead

what is happening is that su is trying to just change your user info.
Your entire environment stays exactly the same because su just spawns a
shell with the different id info. hence, as Igmar says, you want to su
to a user as root, if you are in a directory that has no permissions for
that user, you will get that error.

Probably a better way would be "su - user" because that makes the shell
a login shell, ie: it will change you to the users home direcory, run
you login scripts and all the other stuff that happens in a normal
login.

Chris.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to