LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-05-2005, 07:44 AM   #1
Digitalsoldier
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
editing conf files


HI

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, 07:59 AM   #2
dbogdan
Member
 
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.

Dave

Last edited by dbogdan; 08-05-2005 at 08:00 AM.
 
Old 08-05-2005, 07:59 AM   #3
Nylex
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.
 
  


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


All times are GMT -5. The time now is 12:54 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