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.
|