error retrieving current directory running psql commands under sudo
Your script is being run from somewhere (such as /root
-- or possibly a previously-deleted temporary directory) where the postgres
user does not have access to the current working directory.
These messages are effectively harmless (unless you're invoking scripts that depend on $PWD
or similar variables or commands), but if you want to avoid them, change directories to somewhere certain to exist and which the postgres
user has access to. For instance, put the line:
cd /
...at the top of your script, just under the shebang.
Error in Jenkins Mac Catalina - cannot access parent directories: Operation not permitted
Catalina has a more complex set of permissions than previous versions of macOS X, and therefore requires you to do some additional work if you want the process to access files in certain folders, including the Desktop folder.
For normal applications, you can grant access using the System Preferences and the Privacy tab. For background applications, it's a bit more difficult, and especially with the java interpreter, but you should be able to add the java interpreter to the list of excluded Apps.
However, you may want to consider not using a folder on your Desktop to avoid this.
Related Topics
Xdp Program Ip Link Error: Prog Section Rejected: Operation Not Permitted
Git Sparse-Checkout Ignore Specific File Type
How to Set a Variable Used in a Perl Script as Environment Variable
Perl Fails to Set Locale Even Though It Is Installed
Rename Part of File Name Based on Exact Match in Contents of Another File
How to Get Details of All Modules/Drivers That Were Initialized/Probed During the Linux Kernel Boot
How to Do 'Ret' Instruction from Code at _Start in MACos? Linux
String Comparison Not Working Properly
While Do Loop and Variables in a Bash Script
Python Socket.Error: [Errno 13] Permission Denied
Netfilter-Like Kernel Module to Get Source and Destination Address
Bash "Declare -A" Does Not Work on MACos
Concurrency of Posix Threads in Multiprocessor MAChine
How to Cut an Existing Variable and Assign to a New Variable in Bash