Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-05-2005, 06:44 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
editing conf files


can some1 please help me i cant edit anything in any of my config files even if i try renaming the files as smb.confog for example and that dont even work i did log in as root and also tried but still nothing. IM still a noob so just gonne say this is how i logged into root i went into the terminal and typed su and then my pass my $ changed to # then i closed the terminal and browsed to my smb dir /etc/samba.

can some1 please give me advice on how to modify my files
Old 08-05-2005, 06:59 AM   #2
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 31
When you SU in a shell, you are only root IN that shell, NOT in the Xwindow environment. You need to edit those file from within that shell while as root or use kdesu to launch an Xwindow app as root.

If using KDE, run kdesu kate (then enter the root PW when prompted) for example.


Last edited by dbogdan; 08-05-2005 at 07:00 AM.
Old 08-05-2005, 06:59 AM   #3
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
When you "su", you're changing to root in the terminal. Leave the terminal open and then at the prompt (the #), open the file you want to edit with a text editor. For example, to use Emacs to edit /etc/samba/smb.conf, you would type "emacs /etc/samba/smb.conf", without the quotes. You can also change to that directory first by typing "cd /etc/samba" and then issue "emacs smb.conf". You don't need to use Emacs, just use whatever editor you have on your system.


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 grub.conf Richlw Linux - Newbie 5 04-28-2005 03:05 PM
editing modles.conf thiqued Linux - Software 2 07-12-2004 03:56 PM
Editing lilo.conf alex101 Mandriva 2 10-15-2003 05:17 AM
editing grub.conf dave37 Linux - Newbie 7 09-30-2003 07:10 AM
Editing modules.conf jatabe Linux - Networking 1 08-01-2003 01:47 AM > Forums > Linux Forums > Linux - Newbie

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

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