LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   editing conf files (https://www.linuxquestions.org/questions/linux-newbie-8/editing-conf-files-350227/)

Digitalsoldier 08-05-2005 06:44 AM

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

dbogdan 08-05-2005 06:59 AM

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

Nylex 08-05-2005 06:59 AM

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.


All times are GMT -5. The time now is 11:06 AM.