LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Editing restricted files (https://www.linuxquestions.org/questions/linux-newbie-8/editing-restricted-files-22567/)

ebakunin 06-04-2002 12:02 PM

Editing restricted files
 
How do you edit restricted files (e.g. files that require root privileges)?

I'm trying to configure my optical mouse to use the wheel and side buttons. This requires modifying a text file in /etc/X11, which requires root access.

Thanks.

acid_kewpie 06-04-2002 12:07 PM

you become root using "su" then edit as you wish

trickykid 06-04-2002 12:13 PM

or setup sudo
or edit the permissions of the files... ;)

acid_kewpie 06-04-2002 12:18 PM

this is assuming you're not a h4x0r of course... if you are...

1 decide that being a h4x0r is morally wrong
2 obtain qualifications specific to system administration
3 become an employee of the company you once tried to fiddle with
4 edit the files in confidence that you are allowed to do it.

:D

ebakunin 06-04-2002 12:33 PM

I understand how to move to root via "su," but then how do you edit? In other words, if I'm using Kate, Advanced Editor, or VIM, how do I open the file, make changes, and then have permission to save?

acid_kewpie 06-04-2002 12:41 PM

you need to open a console / terminal and type it in at the prompt.

Mara 06-04-2002 12:49 PM

Open a terminal, type su, then root password. After this run your editor using your_editor_name &, for example vim &. Then edit the file as usual.


All times are GMT -5. The time now is 04:40 AM.