I'm trying to run a Python Script through Terminal, but whenever I try to open my Desktop files in the terminal using commands it gives me this:
evergarden838#Abrahans-MacBook-Air ~ % Desktop/
zsh: permission denied: Desktop/
How do I get Terminal to give me permissions?
Related
I am trying to start Bitnami AWS with Putty in mac, but when i start Auth in SSH with both Catalina and Big Sur i get this error:
(putty: 3637): Gtk-WARNING **: Attempting to set the permissions of `/Users/daniele/.local/share/recently-used.xbel ', but failed: No such file or directory
I tried to install the folder:
sudo mkdir -p /root/.local/share
I get this error:
mkdir: /root/.local/share: Read-only file system
As per the error message, we should create the folder at the following path:
/Users/daniele/.local/share/
And not:
/root/.local/share
Therefore, the correct command is:
mkdir -p /Users/Daniele/.local/share
Require the result in command: csrutil status
If result is enabled, you need to restart machine and press command + R, open the terminal in the recovery, so input csrutil diabled.
Restart, and check the status: csrutil status.
Here are two methods:
you are root.
sudo mount -uw /
so, you could mkdir or touch new file.
If you still can't read or write any, you maybe try this:
cd ~ # cd home directory
sudo vim /etc/synthetic.conf # create new file if this doesn't exist
In the conf files, add new line
data /User/xx/data # Notice: the space between this two strings is tab
Restart, and you will find a link named /data in the root.
I have simple file opening spotify.
#!/bin/sh
spotify 1>/dev/null 2>&2 &
OR (the same result)
#!/bin/sh
spotify &
When I run command sudo sh test.sh message in console:
mkdir: cannot create directory '/run/user/0': Permission denied
No protocol specified
(spotify:23946): Gtk-WARNING **: 13:14:26.995: cannot open display: :0
And when I run sh test.sh spotify opens normally without any error.
Can anyone help me understand why it behaves like this? What's the reason and how I can execute command differently with sudo?
-bash: /var/lib/rancid/.bash_profile: Permission denied bash command not found
I am trying to switch between the users ( krypton & rancid) in ubuntu 16.04 with
su - . A few days back it worked perfectly, but don't know what happened now. The above warning message is coming.
When I am working as krypton user ~$ is showing
But when I am trying to switch to rancid using su - rancid, the above error is coming and entering into the user with /$ at the beginning. I am not able to run some commands and it's interrupting me.
Please give me a solution. I am wasting all my time with this.
First, check the permission of your /var/lib/rancid/.bash_profile file, and all parent folder. You can ls -ld them each, and put output here.
Then, you may check what there is in your ~/.bashrc file.
I was experimenting with my root user on macOS, and performing a zsh installation for the root user and now I can not access my root user. When wanting to enter the school
sudo su
The console returns the following message, and I do not know how to fix this problem.
"su: /usr/bin/zsh: No such file or directory"
The error message tells you, that for the user root the default shell is configured to be /usr/bin/zsh and su is trying to start this programm, but it is not there.
You can do a
sudo /bin/bash
to get a root shell and fix your problem. Either copy your zsh to the right location or change the shell for root back to the default. on my mac it is "/bin/sh"
If you don't have zsh installed on mac, try this:
brew install zsh
I try to redirect output from a command in a terminal window in Max OSX (10.9.4) and get an error message. When I try this easy command:
ls > file_list.txt
I get this error:
-bash: file_list.txt: Operation not supported
Anybody an idea?
Thanks
This is the error you get if you try to create a file somewhere like /dev, which is the mount point for a special filesystem that doesn't (ordinarily) allow you to create files:
$ cd /dev
$ ls > file_list.txt
bash: file_list.txt: Permission denied
# Oops, we get permission denied before we even try to create the file.
$ sudo -s
Password:
# ls > file_list.txt
bash: file_list.txt: Operation not supported