Permission denied
After extracting program, the instruction is to copy or move contents of bin folder to path directory. Unable to execute with message "permission denied." Please help.
|
Which program, what are you trying to copy and to which directory? Please provide details.
If you are working on any directory other than /home/<yourusername>, you need to be root. Code:
su - However, remember while working with root privileges its easy to mess-up, if we don't know what we are doing. |
Quote:
A ls -ld /bin would show something like drwxr-xr-w root root There are three possible remedies: 1. su as root and change the permissions of /bin folder using chown command. ( I wont't recoomed that specially if the machine is in a corporate scenerio) 2. su as root add your user to /etc/sudoers file and then login as that user and then execute sudo cp (source) destination . 3. su as root and copy the files as root to /bin folder. 4. add the existing folder (the floder which contains the executable you wish to move to bin folder) to your path variable. The PATH variable is generally defined in user's home directory in .bash_profile or .bash_rc file. |
Quote:
I cd to the bin subdirectory of Mira to copy the files to /usr/local/bin but i get the permission denied message even if I am root. Thanks. |
Quote:
Code:
sudo cp -rf /home/edpa/Downloads/Mira/bin/* /usr/local/bin/ Code:
mv ~/Downloads/Mira/bin/ ~/ |
All times are GMT -5. The time now is 08:36 AM. |