I want to remove an Adobe folder with empty subfolders. I am using Git Bash on Windows 8 to chmod -R 777 Adobe/ but I am getting this error: changing permissions of 'insert_directory_here': Permission denied. Does anyone know what I can possibly do to delete this empty folders/subfolders? Thank you.
Related
Problem
I have a corrupt file on a network NAS:
/bad/bad_file.file
Which I want to remove but I cannot. The file name is extremely long, so this may be part of the problem.
Finder
The file has the permission user:Read&Write, everyone:No Access
If I try to change it with in macs file info, it basically tells me that the file is not found:
An unexpected error occurred (error code -43).
Terminal
If cd to the folder containing the bad file's folder
sudo chmod -R 777 bad
I get
chmod: Unable to change file mode on bad_file.file
If I want to make myself the owner of the file:
sudo chown -R $(whoami) bad
I get the error:
chown: bad_file.file No such file or directory
Question
How can I remove this file, or if it is not there make it disappear under the path in case it's not there?
I'm trying to copy a directory in terminal from the Downloads directory to a sub-directory within the Applications/ directory, and I keep getting "Permission denied" error. Why is this so?
try
ls -lt
to see access permission of the folder you want copy file into
then use
chmod 777 your_folder_name
to change the access permissions of the folder
If you "right-click -> Get info" the Applications folder you will notice that the permissions for the Applications folder are Read/Write for 'system' or 'admin'. For 'everyone' it's Read-only. If you are not an admin you need to use 'sudo cp -R Downloads/___Test /Applications'. Obviously, you need to enter a password.
MacOS prevents interaction with downloaded files until you confirm that they are safe. You can effectively do this programmatically by running:
xattr -d com.apple.quarantine ~/Downloads/your_file_here
Then you should be able to copy the file.
Can anyone tell me how to change a files permission to write access in Ubuntu? I can't seem to get it to work.
This is the files location
/usr/local/lib/python3.4/dist-packages/moviepy/video/fx/resize.py
Thanks
To change the file permission you use the chmod command followed by the value.
To change the file to write access you can use
chmod 777 /usr/local/lib/python3.4/dist-packages/moviepy/video/fx/resize.py
BEWARE this will make the file write-able to anyone!
More about file permissions here https://www.linux.com/learn/understanding-linux-file-permissions
chmod a+w fileName //gives write permission to everyone
Like you can decide whether you want to give the permission to user(u), group(g) or other(o) to give right to
read(r), write(w), execute(x)
+ to give permission and - to deny them
in general it will be
chmod member +/- permissions
I have a file I downloaded from the Internet. When I run it in the osx terminal, one of the automated things it does is make a new directory in my /usr/local/bin, but this fails as terminal says that permission is denied. How do I give this file permission to execute the mkdir command? I know how to give myself permission with sudo, but not how to give this file permission to do the same on its own.
You can give your user permission to that folder by running sudo chown -R $(whoami) /usr/local/bin/. Once you make sure you own the directory and sub-directories (ls -l /usr/local and ls -l /usr/local/bin) your script should be able to write to those directories as well.
As a general rule of thumb, sudoing to work around permission errors just makes the problem worse. Fixing the underlying permissions take a few extra minutes but is better in the long run.
I am trying to set up java on XCODE and it needs to access /usr/bin/java at some point. But I cannot get hold of this folder and I get this message:
The folder “java” can’t be opened because you don’t have permission to see its contents.
Even when I try to reach the permission through Get Info the system does not open the folder because of the same restriction. I think it is possible to change the permission through Terminal but I am afraid to blow up something on my mac.
How can I change the permission safely?
As the root user ("sudo su -" from the command line and then enter system password), execute the following from the command line -- "chmod 777 /usr/bin/java" . That won't blow anything up, and will allow read/write/execute (rwx) to the directory's owner, group, and guests.
-TU