LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2002, 12:02 PM   #1
ebakunin
LQ Newbie
 
Registered: May 2002
Distribution: Mandrake 8.2
Posts: 15

Rep: Reputation: 0
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.
 
Old 06-04-2002, 12:07 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
you become root using "su" then edit as you wish
 
Old 06-04-2002, 12:13 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
or setup sudo
or edit the permissions of the files...
 
Old 06-04-2002, 12:18 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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.

 
Old 06-04-2002, 12:33 PM   #5
ebakunin
LQ Newbie
 
Registered: May 2002
Distribution: Mandrake 8.2
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 06-04-2002, 12:41 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
you need to open a console / terminal and type it in at the prompt.
 
Old 06-04-2002, 12:49 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,570

Rep: Reputation: 171Reputation: 171
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
editing files zexter Linux - Software 2 11-05-2004 11:27 AM
Editing Files Rv5 Programming 3 09-08-2004 09:06 PM
Help with editing files BajaNick Linux - General 6 06-13-2004 12:53 AM
Editing files Hone101 Linux - General 3 03-22-2003 12:47 PM
Editing files nicomon Linux - General 3 12-02-2002 10:43 PM


All times are GMT -5. The time now is 12:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration