Special user, .bashrc not being executed upon login
I have started using the PostgreSQL database server. It created a special user, postgres, when I installed the package. Except for one little thing, it is working great.
When I "su - postgres" or "su -l postgres" (which should be equivalent), the .bashrc I created in user postgres's home directory is not being executed. If, after login, I run ". ./.bashrc", the profile is executed and does exactly what I want, which is just setting a couple of environment variables. I have verified that the user's shell is bash and that the .bashrc profile is in its home directory, owned by user postgres.
I even tried making the file executable, but that did not help.
I have read the man pages for both su and bash, and both seem to indicate that the profile should be being executed. What am I missing?
Thanks,
Tim
Cyberpower PC, Core i5 2500 3.3 gHz, 8GB DDR3, ATI 6770 1GB, Samsung BX 2440 LED 1080p, 1 TB SATA III, 2 TB SATA III, Siduction Linux 64-bit
Bookmarks