zsh: permission denied: reading anyway - laravel

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.

Related

Permission denied when installing pwndbg

I was setting up my Kali Linux recently. I was trying to install debuggers (pwndbg, gef, peda) using the following script: https://github.com/apogiatzis/gdb-peda-pwndbg-gef
After the setup I was testing the functions, and I cannot open any of the debbugers, the permissions are denied.
What can I do to solve the issue? Thanks!
I have tried to follow the instructions in this post first: https://infosecwriteups.com/pwndbg-gef-peda-one-for-all-and-all-for-one-714d71bf36b8, but I got no permission
I used the code instead, but it didn't work too. Source: https://github.com/apogiatzis/gdb-peda-pwndbg-gef
I tried to use sudo function but it didn't work, as well as when I was trying in root
sudo chmod +x /usr/bin/gdb-*
I tried to use chattr, but another error occurs.
$lsattr /usr/bin/gdb-pwndbg
-----------e-------- /usr/bin/gdb-pwndbg/gdb-pwndbg
$chattr -e /usr/bin/gdb-pwndbg
chattr: Operation not permitted while setting flags on /usr/bin/gdb-pwndbg/gdb-pwndbg

WSL2 Permission Denied in vscode when changing file name

I recently started using WSL2 in windows 11 and in my vscode whenever I try to change a name of a file or folder, an error message pops up saying Error: EACCES: permission denied, rename '/home/akbenn/Programs/repos/ecommerce-react-nodejs-mongodb/client/src/pages/AminPages' -> '/home/akbenn/Programs/repos/ecommerce-react-nodejs-mongodb/client/src/pages/AdminPages'.
I even tried changing the name from vscode terminal using sudo command and it still gives me an error message saying 'Permission denied'.
Does anyone know how to solve this issue?
This problem can be caused by creating the folder inside VSCode. If none of the options above works, you can try removing the old folders and recreate them with the command mkdir {{ folder_name }} inside WSL terminal.

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

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?

node.js "Command failed: execvp(): Permission denied" error on MasOS X

I'm trying to run a program (e.g. "/Applications/Safari.app") from node using child_process.execFile but it fails with the error:
"Command failed: execvp(): Permission denied"
It works well on Ubuntu and Windows, but on MacOS this issue appears. Am I missing something?
/Applications/Safari.app is actually a directory (application bundle), not an executable file.
I think the simplest solution would be to use /Applications/Safari.app/Contents/MacOS/Safari instead.

Unable to understand a permission warning in Mac

I have 777 permissions for the app AquaLess installed by MacPorts.
I run
./AquaLess.app
I get
zsh: permission denied: ./AquaLess.app
This is a strange warning, since I have 777 permissions.
How can you use the program installed by MacPorts?
Type open AquaLess.app
A file with .app extension isn't an executable file. It's a directory that contains various resources in ways that Mac OS knows how to open.
You would get the same warning if you tried to execute $HOME.
Or you could run:
$ ./AquaLess.app/Contents/MacOS/AquaLess
Which runs the actual executable within the .app bundle.

Resources