LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "permission denied" (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-356469/)

Spyker 08-24-2005 07:50 AM

"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...

Charred 08-24-2005 08:05 AM

Welcome to LQ!
use "ls -l" to check the permissions and make sure you didn't somehow remove all write access.

Spyker 08-24-2005 08:09 AM

If i write "ls-l" in Terminal that's what it comes out: bash: ls-l: command not found

:confused:

geeman2.0 08-24-2005 08:11 AM

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.

Charred 08-24-2005 08:22 AM

We're looking for the part that says "_rwxrwxrwx" or something similar at the beginning of the entry.

Spyker 08-24-2005 08:30 AM

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?

mlangdn 08-24-2005 12:08 PM

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.

Spyker 08-25-2005 03:14 AM

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?

Nylex 08-25-2005 03:38 AM

To save, use Ctrl-X followed by Ctrl-S.

Charred 08-25-2005 10:16 PM

Well done!
Welcome to Linux!


All times are GMT -5. The time now is 05:54 PM.