"permission denied"
Hi! I have a problem. When I want to access to /etc/X11/xorg.conf it tells me that I don't have a permission. I tryed to acces there as user and as root but it always tells me that I don't have a permission. What could it be wrong?
P.S.: it also shows me that error on many other paths... |
Welcome to LQ!
use "ls -l" to check the permissions and make sure you didn't somehow remove all write access. |
If i write "ls-l" in Terminal that's what it comes out: bash: ls-l: command not found
:confused: |
Did you type "ls-l" or "ls -l" (notice the space in the latter)
You need the space there. ls is the command, and -l is an option which tells ls to list the file permissions. |
We're looking for the part that says "_rwxrwxrwx" or something similar at the beginning of the entry.
|
OK i typed it wrong, but now it shows me this:
total 33 -rwx-------- 1 spyker_ users 14658 Aug 21 22:27 aaa.xorg.conf drwxr-xr--x 2 spyker_ users 552 Aug 24 15:14 mp3 drwx------- 2 spyker_ users 200 Aug 24 15:21 slike -rwx------- 1 spyker_ users 14640 Aug 22 17:43 xorg Is here anything wrong? I don't think that I've removed all write access. P.S.: how can I copy text from Terminal so I won't have to retype it all? |
How are you trying to access the file? If you are just typing: /etc/X11/xorg.conf - you will get a no permission warning.
You need to open this with a text editor. Try: emacs /etc/X11/xorg.conf Or, if you just want to read it, try: more /etc/X11/xorg.conf. Or use any editor from the command line that you are comfortable with. You should be root though to change this file. |
Ok I tryed to access this file now with Emacs but now I don't now how to save my changes :(
So how do I save changes in Emacs? |
To save, use Ctrl-X followed by Ctrl-S.
|
Well done!
Welcome to Linux! |
All times are GMT -5. The time now is 05:54 PM. |