LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2004, 11:01 PM   #1
vickr1z
Member
 
Registered: Mar 2004
Location: manila, philippines
Distribution: RH 7.3
Posts: 63

Rep: Reputation: 15
move postgres home directory how to?


Good day to all.
Can anyone help me to solve my prob with postgres home directory. Coz everytime i login as postgres this is that is says:
No Directory, logging in with HOME=/
Linux 2.4.26
Last login -"data/time" on tty3.
No mail.
postgres @Keanu:/$

although /home/postgres was alredy existing.
how can change home directory of my postgres to /home/postgres or /var/pgsql/data instead of logging into /.

thanks in advance..
 
Old 09-16-2004, 12:33 AM   #2
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Your home directory is set by /etc/passwd. For example, the postgres entry in my /etc/passwd file reads:
postgres:!:105:109:PostgreSQL administrator,,,:/var/lib/postgres:/bin/bash

This entry sets my home directory for the postgres account to:
/var/lib/postgres
 
Old 09-16-2004, 12:49 AM   #3
vickr1z
Member
 
Registered: Mar 2004
Location: manila, philippines
Distribution: RH 7.3
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by idaho
Your home directory is set by /etc/passwd. For example, the postgres entry in my /etc/passwd file reads:
postgres:!:105:109:PostgreSQL administrator,,,:/var/lib/postgres:/bin/bash

This entry sets my home directory for the postgres account to:
/var/lib/postgres
Yes your right with that..
postgres:x:1002:102::/var/pgsql/postgres
..and that is /var/pgsql/postgres directory was missing! **me-dumb!**
thanks again for your reply, solves my problem..
long-lived bro!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
Can I move /home ? MikeyDIUP Linux - Newbie 3 09-11-2005 02:36 AM
Move my Home directory... it-s Linux - General 5 07-08-2005 12:34 PM
Move home directory iain.ross Linux - Newbie 6 01-01-2005 05:37 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM


All times are GMT -5. The time now is 08:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration