Locate a user's bashrc file
Posted
by
Starkers
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Starkers
Published on 2013-11-06T15:49:01Z
Indexed on
2013/11/06
16:12 UTC
Read the original article
Hit count: 270
Really confused.
Upon running
cat etc/passwd
I have found this:
postgres:x:117:126:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash
meaning I have a postgres user, right?
I want to change the bashrc environment file of this user to make commands available to it.
/var/lib/postgresql
doesn't contain a bashrc file, and
/bin/bash
doesn't contain it either, so I don't really know what's going on. All I know is a created postgres using the
useradd
command, so why do I have some weird user with no home directory? So confused :(
© Ask Ubuntu or respective owner