/Downloads/vmd-1.9.2/src$ make install  cp: cannot create regular file ‘/usr/local/lib/vmd/Announcement’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/README’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/LICENSE’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/doc/ug.pdf’: Permission denied cp: cannot stat ‘../LINUXAMD64/vmd_LINUXAMD64’: No such file or directory cp: cannot stat ‘../lib/stride/stride_LINUXAMD64’: No such file or directory cp: cannot stat ‘../lib/surf/surf_LINUXAMD64’: No such file or directory cp: cannot stat ‘../lib/tachyon/tachyon_LINUXAMD64’: No such file or directory tar: plugins: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors cp: cannot create regular file ‘/usr/local/lib/vmd/.vmdrc’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/.vmdsensors’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/vmd_completion.dat’: Permission denied Info: /bin/csh shell not found, installing Bourne shell startup script instead cp: cannot create regular file ‘/usr/local/bin/vmd’: Permission denied Make sure /usr/local/bin/vmd is in your path. VMD installation complete.  Enjoy! sumit@sumit-Ubuntu:~/Downloads/vmd-1.9.2/src$ vmd rlwrap: Cannot execute /usr/local/lib/vmd/vmd_LINUX: No such file or directory
1393
I have downloaded tar.gz files. But I don't know how to install it. How do I install this kind of file?
41141
I messed around with the sudoers file without really knowing what I was doing using   Assume I did everything that was in the top answer along with editing it with vim and not visudo. How do I fix this?  I'm running Xubuntu 12.04, and I didn't set a root password.
46409
I've been assigned to lock down all /var/log files so that they cannot be read except by the root user.  I've been stumped by the /var/log/boot.log file.  It seems that after every boot the file no matter what what previous permission state gets set to 644 permissions.   I've gone through the exercise of changing the umask in a number of key /etc/init.d files and functions to no avail.  Anybody got any idea as to the specific program doing this and maybe how to get the perms on /var/log/boot.log to be 600?
94820
Symbolic link not working, using standard UBUNTU 16 LTS... It shows "Permission denied" where I expected to get access, not working even after chown.  Full example:  sudo rm /tmp/file.txt  # if exist, remove  cd ~ sudo chmod 666 data/file.txt ls -l data/file.txt    # "-rw-rw-rw-" as expected more data/file.txt     # working fine sudo ln -sf $PWD/data/file.txt /tmp/file.txt  # fine ls -l /tmp/file.txt    # "lrwxrwxrwx",  /tmp/file.txt -&gt; /home/thisUser/file.txt more /tmp/file.txt     # fine  sudo chown -h postgres:postgres /tmp/file.txt  sudo more /tmp/file.txt   #  NOT WORK! but its is sudo! and 666!
76195
Per   # Download latest stable release using the code below or browse to github.com/drush-ops/drush/releases. php -r "readfile('http://files.drush.org/drush.phar');" &gt; drush # Or use our upcoming release: php -r "readfile('http://files.drush.org/drush-unstable.phar');" &gt; drush  # Test your install. php drush core-status  # Make `drush` executable as a command from anywhere. Destination can be anywhere on $PATH. chmod +x drush sudo mv drush /usr/local/bin  # Optional. Enrich the bash startup file with completion and aliases. drush init   So I try it but get the following error:  [Michael@devserver ~]$ php -r "readfile('http://files.drush.org/drush.phar');" &gt; drush [Michael@devserver ~]$ php drush core-status PHP Warning:  pcntl_exec(): Error has occurred: (errno 13) Permission denied in phar:///home/Michael/drush/includes/startup.inc on line 359  Warning: pcntl_exec(): Error has occurred: (errno 13) Permission denied in phar:///home/Michael/drush/includes/startup.inc on line 359 Error has occurred executing the Drush script found at /home/Michael/drush (errno 13) Permission denied [Michael@devserver ~]   So then I try running it as root.  [Michael@devserver ~]$ su - Password: [root@devserver ~]# php /home/Michael/drush core-status  PHP configuration      :  /etc/php.ini  PHP OS                 :  Linux  Drush script           :  /home/Michael/drush  Drush version          :  8.1.2  Drush temp directory   :  /tmp  Drush configuration    :  Drush alias files      :  [root@devserver ~]#   So, all is good, and I just need to install it as root?  Any way I can install it as a normal user?  Thanks
18506
See Also:          I changed file permissions recursively on the root directory / by executing sudo chmod -R / 777, and after that my system won't boot (I'm getting a lot of "permission denied" errors).  Please help.
38564
Situation :  $ mkdir foo &amp;&amp; touch foo/.test $ cp foo/* . zsh: no matches found: foo/* (or bash : cp: cannot stat ‘foo/*’: No such file or directory)   I have a directory full of hidden folders and files. What is happening and what is the solution?
74297
This conundrum is caused by running git pull from root.   There are various reasons for me to do so... I want my device to update code when booting up, and rc.local is run by root.  It all works mostly fine (npm install tends to fail when run by root, but that's a whole 'nother topic), the problem arises when I try to use the git repository with a non-root user afterward... some of the git files have been written by root, so now I can't use it anymore (permission denied).   So I'd like to recursively chown it back but there doesn't seem to be anything that really works on all of the little git files. I tried the -R flag and ./**/* path.  My guess is that neither of those techniques descend into dot-directories.
52161
I have a Canon Pixma P200 and I have downloaded the Linux drivers from their site. I extracted them and I found 4 .rpm files. I decided to open terminal and type in  /home/rsbayani/Desktop/cnijfilter-p200series-4.00-1-rpm/packages/cnijfilter-p200series-4.00-1.x86_64.rpm -i   but it doesn't work, it just gives me permission denied. I also tried the code below  /home/rsbayani/Desktop/cnijfilter-p200series-4.00-1-rpm/packages/cnijfilter-p200series-4.00-1.x86_64.rpm --install   But like the one above it, it ssill gives me a permission denied. I am using Ubuntu 14.04 LTS. Any help would be gladly appreciated.
39811
I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use something like, sudo "./a.out" but that too doesn't work.  Edit:  Here is the message I get when I try "./a.out".  bash: ./a.out: Permission denied
116987
I always get messed up when need to use cp or mv: "do I need -R option when working with dir?" In GNU coreutils cp does need -R and mv doesn't.   I just can not find any reason why cp needs -R option for copying dirs and mv doesn't. I think that cping dirs without -R (but behaving recursively like there's -R and like mv does) wouldn't cause any problems except breaking someone's habits on using the tool.  Do you know any explanation? May be it had a reason long time ago?    Additional question: why don't coreutils developers make cp copy dirs recursively by default?
106969
In Ubuntu 18.04, I can create a file as one user in /tmp, and write to it as user root (despite the sticky bit being set on /tmp). In Ubuntu 20.04, I get a Permission Denied error as user root. Ubuntu 18.04: # As user &quot;ubuntu&quot;: touch /tmp/tmplock  # As user &quot;root&quot;: echo &quot;foo&quot; &gt; /tmp/tmplock  cat /tmp/tmplock # Outputs &quot;foo&quot;  ls -lah /tmp drwxrwxrwt 32 root   root    20K Jun 16 18:36 . -rw-rw-r--  1 ubuntu ubuntu    4 Jun 16 18:36 tmplock  Ubuntu 20.04: # As user &quot;ubuntu&quot;: touch /tmp/tmplock  # As user &quot;root&quot;: echo &quot;foo&quot; &gt; /tmp/tmplock # Outputs: bash: /tmp/tmplock: Permission denied  ls -lah /tmp drwxrwxrwt 12 root   root   4.0K Jun 16 18:15 . -rw-rw-r--  1 ubuntu ubuntu    0 Jun 16 18:14 tmplock  I can't find any information on if this is related to the sticky bit, or an underlying Linux kernel change, or anything. Does anyone know what can explain the change in behavior?
84284
One of our customers has just found a problem when trying to create a file on the root of the C Drive (C:\), on a Windows 7 Professional PC.  I know they shouldn't be keeping files here, but there is a valid reason in this case, so I've relaxed the security on C:\ by giving the users group users modify permissions.  Before I relaxed the security, the user was receiving access denied, but now they are receiving the message:     An unexpected error is keeping you from creating the file. If you continue to recieve this error, you can use the error code to search for help with this problem. Error 0x80070522: A required priviledge is not held by the client.    for this suggests that it is caused by UAC, but how can I get around this when the user doesn't have admin rights on their PC?
4847
I wanted to execute a shell script:  -rwxr-x--x 1 root root   17234 Jun  6 18:31 create_mgw_3shelf_6xIPNI1P.sh   I tried to do a standard procedure, but I got this error:  ./create_mgw_3shelf_6xIPNI1P.sh  localhost 389 -l /opt/fews/sessions/AMGWM19/log/2013-06-06-143637_CLA-0  DEBUG   cd/etc/opt/ldapfiles/ldif_in ; ./create_mgw_3shelf_6xIPNI1P.sh  localhost 389 -l /opt/fews/sessions/AMGWM19/log/2013-06-06-143637_CLA-0 **ERROR  sh: ./create_mgw_3shelf_6xIPNI1P.sh: /bin/bash^M: bad interpreter: No such file or directory**   What does it mean? I was doing this as the root user under the root group.  Does it mean that the file does not have the correct permission for the root user?
50816
I am trying to learn C++, but I can't even make the first (hello world) example from cplusplus.org work with g++ command or c++. I created a file just like the example and ran g++ myfile, then ./myfile.  I get a permission problem, then I use chmod +x myfile and the permission problem is gone but this problem happens:  gzuspower@gzuspower:~/Desktop$ ./4 ./4: line 1: //myfirst: No such file or directory ./4: line 4: syntax error near unexpected token `(' ./4: line 4: `int main ()'   I called my file 4 because it is my 4th attempt. This is on Xubuntu 16.04.The duplicate question answer did not work i tried .c ,.cpp ,as file extension and tried firstc++ (my first attempt file) instead of 4(my fourth attempt file) and nothing works. i'm going to try different form of hello-world code.
34389
I am using Microsoft Visual C++ on Windows and Qt Creator on Ubuntu. I can't change permissions on my flash drive (FAT32), even as root.  How can I change permissions on a FAT32 flash-drive?
96276
I have tried:  sudo "some string" &gt;&gt; test.txt   But I am getting permission denied warning.  Can anyone help?