PDA

View Full Version : [ubuntu] Editing xorg.conf - permission denied!


mezerik
May 28th, 2008, 09:23 AM
When I try to save the file xorg.conf after editing i get a permission denied error. Also get this error when trying to copy sp-sc to usr/local/bin

I am the only user set up on my mac book pro, 4th generation.

I have checked that i am an administrator, well i think anyway.

Anyone got any ideas

When i look at the properties of xorg.conf it is grayed out on the permissions and says that i am not the owner and cannot change them.

mfox
May 28th, 2008, 09:32 AM
You have to use sudo when you open up the file in your text editor and be able to save it afterwards. Alternatively, use the su command to put yourself in root.

mezerik
May 28th, 2008, 09:59 AM
tried typing in su in the terminal and it asks for my password then says Authentication failure

Not sure how i use sudo to edit the file either. Any chance of some code.

gali98
May 28th, 2008, 10:00 AM
sudo gedit file
Kory

gali98
May 28th, 2008, 10:00 AM
to set up su to work on ubuntu you need to do:

sudo passwd

enter a password there. After that you can use su with that password.
Kory

mezerik
May 28th, 2008, 10:04 AM
ahhha.

i typed

sudo gedit /etc/X11/xorg.conf

edited the file fine.

Only thing is i have a lot more editing to do and might be easier to do it all from the root.

What is the exact command for logging into the root?

mezerik
May 28th, 2008, 10:05 AM
Thanks a lot, sussed it now :)

gali98
May 28th, 2008, 10:08 AM
Glad to have helped. If you feel that everything is working right could you mark this thread as solved?
(in thread tools) you can still post afterward.
Kory

cyberdork33
May 28th, 2008, 10:31 AM
What is the exact command for logging into the root?You can also 'sudo su'

mfox
May 28th, 2008, 01:23 PM
Didn't know that, cyberdork; thanks. :)