473,385 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

start postmaster as root : problem

Hi all,

I have to develop an embedded database with PostgreSQL.
I have a Linux Distribuction that works only in single user mode as root.

The postmaster daemon starts only if I 'm not root user.

Do you have a solution for this problem ??

Thanks.
__________________________________________________ ________________
Tiscali Adsl 2 Mega Free: naviga gratis tutto l'anno!
Supera tutti i limiti di velocita' con Tiscali Adsl 2 Mega Free.
Sei libero da costi fissi e, se ti abboni entro l'8 novembre,
navighi gratis tutto l'anno.
http://abbonati.tiscali.it/adsl/


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #1
2 3892
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,

On Fri, 5 Nov 2004 st*****@tiscali.it wrote:
I have to develop an embedded database with PostgreSQL.
I have a Linux Distribuction that works only in single user mode as root.

The postmaster daemon starts only if I 'm not root user.

Do you have a solution for this problem ??


AFAIK, It's backend/main/main.c that checks the username with geteuid().
If you disable it and re-compile the file, postmaster will not check the
username.

Regards,
- --
Devrim GUNDUZ
devrim~gunduz.org devrim.gunduz~linux.org.tr
http://www.tdmsoft.com
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBi6G0tl86P3SPfQ4RAjhHAJ4gogrFVCDM3rUrPxYyH6 VPWj1sKwCfdqjT
OdA+UMEjURkQrgBkNyy94SI=
=SO5W
-----END PGP SIGNATURE-----

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #2
st*****@tiscali.it writes:
I have a Linux Distribuction that works only in single user mode as root.
That's about as brain dead a setup as I've ever heard of :-(.
Get a real operating system, not a CP/M emulation.
The postmaster daemon starts only if I 'm not root user.


That's an intentional security measure. You could defeat it by altering
the source code but we do not recommend doing so.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark Adams | last post by:
I am a relative newbie to MySQL. I had a Postfix+Courier+MySQL mail server running for several months. It took me a week or so to get it up and running in September. Now, I did a clean upgrade to...
12
by: Sander Smeenk | last post by:
Hi, After a very recent postgresql update, the postmaster failed to start because of this: | PANIC: The database cluster was initialized with LC_CTYPE | 'nl_NL@euro.UTF-8', which is...
0
by: Kaushik Roy | last post by:
Problem : When starting the postmaster ( DB Server ) we can see the following on the console : Incorrectly built binary which accesses errno, h_errno or _res directly.. Needs to be fixed. DEBUG: ...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
7
by: Thomas F.O'Connell | last post by:
I'm about to try to implement a simple pg_autovacuum script that can be used in conjunction with or integrated entirely with the contrib start-scripts for postgres. I just want to check that what...
1
by: Alexander Cohen | last post by:
Im getting this error when trying to start postgres: FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied im running under an unprivileged user, and have set up...
3
by: Josh Close | last post by:
I keep getting this error. DETAIL: Failed system call was shmget(key=5432001, size=34037760, 03600). HINT: This error usually means that PostgreSQL's request for a shared memory segment...
1
by: Stefano Farina | last post by:
Hi all, I have to develop an embedded database with PostgreSQL. I have a Linux Distribuction that works only in single user mode as root. The postmaster daemon starts only if I 'm not root...
4
by: Madhu | last post by:
Hi, I am unable to start the 'db2fs' after successful installation of Db2 Express-C software on `fedora Core 5`. Before that I installed Java JRE from Sun in "/usr/java/jre1.5.0_11/". I also...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.