You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing that shell file there are many commands which take files from current directory namely updatepg.sql and explorerpg.sql.
Commands are executed as postgres user like sudo -u postgres psql ... -f updatepg.sql. I don't know if it is only me but most probably postgres user will not have access to default /home/user directory and files under that. There is a command given for that chmod -R 775 db/ but probably they missed that permission has no meaning because just parent of db/ wouldn't allow postgres user to access anything. More explanation here.
What did you expect to happen?
So rather shell scripts should consist of commands like psql -U postgres ... -f updatepg.sql this allow files to get accessed by psql and commands is executed as postgres user in database.
How can we reproduce it (as minimally and precisely as possible)?
Simply follow the README.md and make sure to check you already haven't allowed other users to access your home directory.
Anything else we need to know?
No response
OS version
# On Linux:
$ cat /etc/os-releaseNAME="Arch Linux"PRETTY_NAME="Arch Linux"ID=archBUILD_ID=rollingANSI_COLOR="38;2;23;147;209"HOME_URL="https://archlinux.org/"DOCUMENTATION_URL="https://wiki.archlinux.org/"SUPPORT_URL="https://bbs.archlinux.org/"BUG_REPORT_URL="https://bugs.archlinux.org/"PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"LOGO=archlinux-logo
$ uname -aLinux amit-dell 6.4.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 24 Aug 2023 00:38:14 +0000 x86_64 GNU/Linux
# On Windows:C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
The text was updated successfully, but these errors were encountered:
What happened?
When executing that shell file there are many commands which take files from current directory namely
updatepg.sql
andexplorerpg.sql
.Commands are executed as
postgres
user likesudo -u postgres psql ... -f updatepg.sql
. I don't know if it is only me but most probablypostgres
user will not have access to default/home/user
directory and files under that. There is a command given for thatchmod -R 775 db/
but probably they missed that permission has no meaning because just parent ofdb/
wouldn't allowpostgres
user to access anything. More explanation here.What did you expect to happen?
So rather shell scripts should consist of commands like
psql -U postgres ... -f updatepg.sql
this allow files to get accessed bypsql
and commands is executed aspostgres
user in database.How can we reproduce it (as minimally and precisely as possible)?
Simply follow the README.md and make sure to check you already haven't allowed other users to access your home directory.
Anything else we need to know?
No response
OS version
The text was updated successfully, but these errors were encountered: