changing user within a post install.
Jon South
striker at lunar-linux.org
Thu Apr 1 11:59:35 GMT 2004
Dennis Veatch wrote:
--SNIP--
> su postgres &&
> cd /var/lib/pgsql &&
> /usr/bin/initdb -D /var/lib/pgsql/data
--SNIP--
This wont work, since su just returns without doing anything...Try this
instead:
su -l postgres -s /bin/sh -c "/usr/bin/initdb -D /var/lib/pgsql/data"
BTW: it looks to me like you dont need the cd, since you're passing the
whole directory to the command...if that's not the case, just add 'cd
/dir && ' to the -c arg.
-Striker
--
The system requirements said "Windows 95 or better"
So I installed Linux.
Microsoft sells you Windows; Linux gives you the house.
v1sw6CUhw5ln4pr5ck4ma6/7u8Lw3Tm5l6+8GOa21s6Mr2e5+7t5/6TNDVESLFRXMb3Hp0en6/7g9ASTHCNMP
www.hackerkey.com
Registered Linux User: 332618
<http://striker.interhact.net/striker.asc>
More information about the Lunar-dev
mailing list