Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[postgresql] /bin/false?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
water
Guru
Guru
User avatar
Posts: 387
Joined: Wed Jun 19, 2002 9:56 am
Location: Zierikzee, The Netherlands

[postgresql] /bin/false?

  • Quote

Post by water » Thu Dec 23, 2004 10:38 am

After emerging Postgresql, i tryed to start it with:

Code: Select all

/etc/init.d/postgresql start
That didin't work and finally i found out that in /etc/passwd the shell from the user postgres was set to /bin/false. Changing it to /bin/bash solved my problem.

The question is why it is set to /bin/false by default and if changing it to /bin/bash is a good idea. (googling around suggests that it should have a real shell).
Groeten uit Holland
Top
Akhouk
Guru
Guru
User avatar
Posts: 476
Joined: Fri May 23, 2003 9:09 am
Location: The Two Niles, Africa
Contact:
Contact Akhouk
Website

  • Quote

Post by Akhouk » Thu Dec 23, 2004 2:30 pm

I am not sure why your postgres user got setup as /bin/false. It should be /bin/bash and is setup as /bin/bash on all my Gentoo Postgresql installls. (About 8 Gentoo Postgres servers)
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Top
water
Guru
Guru
User avatar
Posts: 387
Joined: Wed Jun 19, 2002 9:56 am
Location: Zierikzee, The Netherlands

  • Quote

Post by water » Thu Dec 23, 2004 3:14 pm

I guess the the creation of the user is done by the ebuild? I will take a look into tehe ebuild.

I've searched the internet and found one similar case, but no solution or wathever.

i'm not really sure, bu maybe i have emerged Postgresql using sudo. Could that make sense?
Groeten uit Holland
Top
tomk
Bodhisattva
Bodhisattva
User avatar
Posts: 7221
Joined: Tue Sep 23, 2003 1:41 pm
Location: Sat in front of my computer

  • Quote

Post by tomk » Thu Dec 23, 2004 6:49 pm

Not sure how you got /bin/false in /etc/passwd, whether you used sudo or not shouldn't affect it, but the is an info message in the ebuild:

Code: Select all

einfo "Make sure the postgres user in /etc/passwd has an account setup with /bin/bash as the shell"
Search | Read | Answer | Report | Strip
Top
myuser
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sat Jan 31, 2004 7:27 pm

  • Quote

Post by myuser » Thu Dec 23, 2004 8:42 pm

I installed PostgreSQL quite recently on one machine and I had to patch it to set up the user, and /var directory. Someone has a patch script associated with gentoo, google is your friend.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic