Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why .profile permission denied

Status
Not open for further replies.

koeicjm

Programmer
Sep 12, 2001
73
JP
I got the denied error when I login with user pgsql,
it said:
/usr/local/pgsql: permission denied
I donot know why the permission is denied .
and when I run ". .profile" , it get the error too.
why?

$ ls -ld pgsql
drwxr-xr-x 6 pgsql pgsql 1024 7/26 11:08 pgsql

$ ls -la .profile
-rw-r--r-- 1 pgsql pgsql 432 7/26 11:04 .profile

$ cat .profile
# both new and old layout's paths, but new path first...
PATH=/usr/local/bin:${PATH}

PGLIB=/usr/local/lib

# note: PGDATA can be overridden by the -D startup option
PGDATA=${HOME}/data

export PATH PGLIB PGDATA

#You might want to set some locale stuff here
#PGDATESTYLE=ISO
#LC_ALL=sv_SE.ISO_8859-1
#export PGDATESTYLE LC_ALL

# if you want to make regression tests use this TZ
#TZ=PST8PDT
#export TZ
LANG=ja_JP.EUC
export LANG
 
and whati is it
finger pgsql
says about pgsql's home directory???

and ls -ld ~pgsql ?

is your shell ksh? csh has setenv in place of export
 
$ finger pgsql
Login: pgsql Name: PostgreSQL Daemon
Directory: /usr/local/pgsql Shell: /bin/sh
On since ¿ 8/ 7 10:38 (åGMT) on ttyp0 (messages off) from 64
No Mail.
No Plan.

$ ls -ld pgsql
drwxr-xr-x 6 pgsql pgsql 1024 7/31 12:24 pgsql
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top