su: failed to execute /bin/bash: Permission denied - bash

I have installed the Postgres v-12 using this blog on my ubuntu 20.04. After installing that when I run the command
pg_ctlcluster 12 main start
I got the below error
Insecure directory in $ENV{PATH} while running with -T switch at
/usr/bin/pg_ctlcluster line 398.
To fix this error I tried to give permission 750 to /bin directory as per the blog and followed the rest of the steps mentioned there. So when I run the command su postgres I gotthe below error
su: failed to execute /bin/bash: Permission denied
I have tried many blogs but didn't get any success.
Can anyone help me to run the Postgres?

Related

Why am I unable to build pyodide?

I find myself attempting to build pyodide from sources on a linux machine. However an attempt to run the make command gives me the following permission denied error.
savakar#Qulal:/media/savakar/PROJECTS/pyodide$ make
./tools/dependency-check.sh
/bin/bash: line 1: ./tools/dependency-check.sh: Permission denied
make: *** [Makefile:201: check] Error 126
I have installed the build dependencies from the Dockerfile.
It appears to be a permissions issue, however I have attempted to give read,write and execution permissions to the directory via the command
chmod 777 -R /media/savakar/PROJECTS/pyodide/
chmod +rwx -R pyodide/
chmod +rwx -R ./tools
amongst other attempts at giving execute permission to the files.

"permission denied" on ~/.ddev/ssh-auth-compose.yaml and router-compose.yaml

I got a problem on running ddev on my ubuntu 20.04.
Installation of ddev ran without any problems (ddev version v1.15.0), but if i try starting a container it always runs into following error:
.PermissionError: [Errno 13] Permission denied: '/home/user/.ddev/ssh-auth-compose.yaml'
Failed to start api-bundle: failed to start ddev-ssh-agent: Failed to run docker-compose [-f /home/user/.ddev/ssh-auth-compose.yaml -p ddev-ssh-agent up --build --force-recreate -d], err='exit status 1', stdout='', stderr='.PermissionError: [Errno 13] Permission denied: '/home/user/.ddev/ssh-auth-compose.yaml''
I've already tried to give the ddev and home directory and all other directories above a full access (chmod -R 777) the user of the .ddev directory in my project is the same as my home directory owner.
Running .ddev with the same project on a diffrent Ubuntu 19.04 runs like charme.
If i omit the ddev-ssh-agent the container is starting, but crashing when trying to write to router-compose.yaml.
Current docker version is 19.03.11, build dd360c7
Docker-Compose version 1.25.5,
both installed via snap.
I have no clue what to try next,
so hopefully you can help me.
Thanks in advance.
Do not install docker-compose with snap (other apt). This should solve your issue: https://github.com/drud/ddev/issues/2347#issuecomment-652804548

zsh: permission denied: reading anyway

this is the error its showing now
I was installing "Laravel" through a tutorial and now i am facing this error "zsh: locking failed for /users/vishnu.zsh_history: permission denied: reading anyway"
macos:- catalina v10.15
I am using macbook air,
I don't have any idea what happened it happened while I was installing composer and a file was missing to get that file I ran some "chown" command and now I cant even open my chrome browser
Please Help
-ThankYou
You can run this command :
sudo chown -R ${LOGNAME}:staff $HOME
to make sure the owner is correct for your files.

Permission denied in mac terminal

I'm trying to write a command on mac terminal using the root, but it shows me that the permission denied, when I use the sudo it shows that the command not found
can any one please help me
aftheers-MacBook-Air:scripts root# ./ArduinoWifiShield_upgrade.sh
-sh: ./ArduinoWifiShield_upgrade.sh: Permission denied
You have to make the file executable:
chmod +x ArduinoWifiShield_upgrade.sh
To avoid permission denied prompt, type this command and continue
sudo su
Install the packages in this admin mode,
then go back to normal mode
exit

I have this error while launching the command ./runInstaller

I have this error while launching the command
./runInstaller
./runInstaller: line 95: /home/nsn/Desktop/clusterware/install/.oui: Permission denied
You need to be root. run again with sudo ./runInstaller

Resources