Error Opening File Ubuntu
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this error opening security policy file /etc/x11/xserver/securitypolicy ubuntu site About Us Learn more about Stack Overflow the company Business Learn more about opening a file in ubuntu terminal hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is opening rar file in ubuntu a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best ubuntu error opening the cache answers are voted up and rise to the top Cannot open output file: Permission denied up vote 3 down vote favorite so I'm completely new to Ubuntu. I've set up a shared folder with a few c programs and when I go to compile in Ubuntu, such as: gcc file.c -o fileTest I get the following error: /usr/bin/ld: cannot open output file fileTest: Permission denied collect2:
Bash Permission Denied
error: ld returned 1 exit status I'm sure that my permissions for the C files are correct, all files have 'rwx' permissions. Do I have to change the permission of the directory as well? I'm a complete newb, so apologies. command-line share|improve this question edited May 16 '14 at 6:35 Javier Rivera 25k56495 asked May 15 '14 at 21:56 user282094 18113 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted Yes, you have to change the permissions of the directory as well. This is because if you only have write permissions to the files inside the directory, you can't just create a new file because you don't have write permissions for that file (it doesn't exist, so no permissions to create it). If you have write permissions for the directory you can create a file inside it because you have write permissions for the directory itself. To make yourself the owner (terminal way): Check your user name: whoami Make yourself the owner of the directory and its contents: sudo chown -R username:username /path/to/the/directory Replace username by your actual username. The -R flag stands for recursive, so that directory and all its su
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of
Chmod Recursive
this site About Us Learn more about Stack Overflow the company Business Learn chown more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask chmod 777 Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can http://askubuntu.com/questions/466605/cannot-open-output-file-permission-denied answer The best answers are voted up and rise to the top XAuthority Error [duplicate] up vote 1 down vote favorite This question already has an answer here: Ownership of .Xauthority transferred to root 2 answers When I try to login to my ubuntu 12.04 it accepts my account info and password but then a black terminal page appears and disappears very fast and it goes http://askubuntu.com/questions/462582/xauthority-error back to login page. I killed lightdm and then used this command: sudo lightdm then tried to login (while terminal keeps the log). this is the error I receive: Warning **error reading existing Xauthority: Error opening file : Permission denied Error writing X authority:Error opening file ,/home/sam/.Xauthority': Permission denied All of this started when I pressed M in answer to this question during boot. The Disk Drive for /tmp is not ready yet. S to skip mount or M for manual recovery Here is the result to sudo df /etc/fstab Here the result for sudo cat /etc/fstab ask for more info if needed 12.04 login lightdm share|improve this question edited May 8 '14 at 22:02 girardengo 2,4741022 asked May 7 '14 at 22:37 Sam 847 marked as duplicate by Wilf, Warren Hill, bain, Richard, Radu Rădeanu Jul 8 '14 at 8:42 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. @Simptnon I tried that didnt solve my problem still cannot login –Sam May 7 '14 at 23:12 I post my lightdm link again
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack http://stackoverflow.com/questions/11519245/unicorn-says-error-opening-file-for-reading-permission-denied Overflow the company Business Learn more about hiring developers or posting ads with us https://bugs.launchpad.net/bugs/1014487 Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unicorn says “Error opening file for reading: Permission denied” up vote 0 down vote favorite I'm error opening running a rails 3 application running on unicorn, every now and then I get this message: Error opening file for reading: Permission denied and that's it. I don't know what file or what component is trying to opening it. It doesn't happen on each request or any other external event that I can figure out. Any ideas what might be going on or how to try to figure it out? I file in ubuntu tried searching for "Error opening file for reading" on all the gems I'm using, with no luck. ruby-on-rails ruby permissions unicorn share|improve this question asked Jul 17 '12 at 9:04 Pablo 78.3k87237357 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted I started seeing this from time to time in Passenger logs after upgrading to ubuntu 12.04. I narrowed it down to some image processing and it apparently comes from Ubuntu's patches to libjpeg-turbo library. It is trying to access /proc/self/auxv to determine some system capabilities, but that proc file seems not to be always readable, presumably after a process setuid()s to another user when dropping privileges. As far as I can tell, the library works even if that fails, so it shouldn't cause any major issues. There seems to be a related bug report at https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1014487 share|improve this answer edited Aug 8 '14 at 13:23 Carpetsmoker 11.5k113961 answered Aug 1 '12 at 10:38 Tuomas Silen 261 add a comment| up vote -2 down vote I started running following command in Ubuntu 12.04 sudo apt-get update after running above command, the "Error opening file for reading: Permission denied" was solved. share|improve this answer edited Aug 8 '14 at 13:23 Carpetsmoker 11.5k113961 answered Aug 8 '1
error messages caused by ubuntu patch. Edit Remove 80 This bug affects 16 people Affects Status Importance Assigned to Milestone virtualbox (Ubuntu) Edit Confirmed Low Unassigned Edit Also affects project (?) Also affects distribution/package Nominate for series Bug Description I have just upgraded my Kubuntu system from 11.10 to 12.04, and then installed virtualbox. I have gotten far enough to install Oracle_VM_VirtualBox_Extension_Pack, so that I can use USB 2.0, and to add myself to the vboxusers group. I have not yet started installing Windows XP inside my new virtualbox. I am seeing the following error on both version 4.1.12 (in the 12.04 release) and in the latest downloadable version from Oracle 4.1.16. Everytime I start up virtualbox, I get the error: [CODE]Error opening file for reading: Permission denied[/CODE] Running strace on this process (well, seems I have to run it on the shell within which I start virtualbox) I can see the following: [CODE] 15128 open("/proc/self/auxv", O_RDONLY) = -1 EACCES (Permission denied) 15128 dup(2) = 19 15128 fcntl(19, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) 15128 fstat(19, {st_mode=