Received: from gwextclu.seagate.com (gwextclu.seagate.com [204.160.183.18]) by postgresql.org (8.11.3/8.11.1) with SMTP id f4IE3UA81699 for ; Fri, 18 May 2001 10:03:30 -0400 (EDT) (envelope-from Rebecca.R.Hepper@seagate.com) Received: from 172.18.17.4 by gwextclu.seagate.com with ESMTP ( (MMS v4.7)); Fri, 18 May 2001 07:03:24 -0700 X-Server-Uuid: 1569d162-b3be-4edd-8d78-ab9187b54f11 Received: from auth0.it.stsj.seagate.com (auth0.it.stsj.seagate.com [192.168.109.16]) by seastamp.seagate.com (8.11.2/8.11.2) with ESMTP id f4IE3Mw21423 for ; Fri, 18 May 2001 14:03: 22 GMT Received: from sv-gw1.notes.seagate.com (sv-gw1.stsv.seagate.com [134.204.14.95]) by auth0.it.stsj.seagate.com with ESMTP id OAA29097 for ; Fri, 18 May 2001 14:03:22 GMT Subject: Script to createuser To: pgsql-admin@postgresql.org From: Rebecca.R.Hepper@seagate.com Date: Fri, 18 May 2001 09:03:15 -0500 Message-ID: X-MIMETrack: Serialize by Router on SV-GW1/Seagate Internet(Release 5.0.6a |January 17, 2001) at 05/18/2001 07:03:22 AM MIME-Version: 1.0 X-WSS-ID: 171BF4261045578-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200105/88 X-Sequence-Number: 1435 Hello All, I am running Redhat 7.0. I am trying to create a script that will add a user. My script looks like this: echo 'createuser becky -d -a' | su postgres When I run my script, I receive the following message even though the user is created. bash: /home/username/. bashrc: Permission denied CREATE USER Why do I get this error and is there a way to get rid of it? Thanks for the help!! Rebecca