Received: from bush.rutgersinsurance.com (rutgersinsurance.com [38.138.71.194]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f05E5U701982 for ; Fri, 5 Jan 2001 09:05:31 -0500 (EST) (envelope-from aalang@rutgersinsurance.com) Received: from 6014cwpza006 ([10.10.10.51]) by bush.rutgersinsurance.com (8.9.3/8.9.3) with SMTP id JAA02733 for ; Fri, 5 Jan 2001 09:09:55 -0500 Message-ID: <006e01c07720$d9e20120$330a0a0a@6014cwpza006> From: "Adam Lang" To: References: <4.3.2.7.2.20010104184601.00b998a8@rccd.cc.ca.us> Subject: Re: Autologin problem Date: Fri, 5 Jan 2001 09:07:34 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200101/11 X-Sequence-Number: 76 You shouldn't post to multiple lists at one time. It is rude for very many reasons. This is the line I use to start postgres from rc.local (watch the word wrap). Password is irrelevant. If I understand correctly, root is what runs the rc.local and root never needs a password to su to another user. Log in as root and su to a user. You'll see. Very possible your comand is failing for other reasons. # Start Postgresql su -l -c " -i -D >> 2>>1 &" Adam Lang Systems Engineer Rutgers Casualty Insurance Company http://www.rutgersinsurance.com ----- Original Message ----- From: "Julio Cuz, Jr." To: ; Sent: Thursday, January 04, 2001 9:55 PM Subject: [PHP] Autologin problem > Hi-- > > I'm trying to run the following command on the "/etc/rc.local" so it will > run everytime (RedHat 7/PHP4/PostgreSQL): > > nohup su -c 'postmaster -i -D /usr/local/pgsql/data \ > >server.log 2>>1 &' > > The problem is that has a password set, and since Linux doesn't > ask for it when it's on the rc.local file, my command fails. > > Is there a way to include the password with the "su" command? > > Is there a way to CLEAR a user's password and set it to NULL? > > Julio Cuz, Jr. > Riverside Community College > jcuz@rccd.cc.ca.us