LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   smb.conf file write permission (https://www.linuxquestions.org/questions/mandriva-30/smb-conf-file-write-permission-133102/)

jbraum 01-09-2004 11:54 AM

smb.conf file write permission
 
I want to be able to edit my smb.conf file but when I go to edit it and save the file I am not able to because I not logged in a root/I don't have write permissions. I just need to temporarily access this file and don't need a root login just access.

michaelk 01-09-2004 01:01 PM

You need to be root to edit anything in the /etc.
Open up a console window use the su command.

jbraum 01-09-2004 01:16 PM

Ok got that, but I relatively new to linux and am not sure what I should do after.

Thanks

michaelk 01-09-2004 05:11 PM

You can use any of the text editors like vi,pico,emacs. Search the web for help with these editors.

To edit a file in emacs
emacs <filename>
<type in changes to your hearts desire>
Save changes press
Ctrl-x Ctrl-s
Exit emacs press
Ctrl-x Ctrl-c


All times are GMT -5. The time now is 10:00 PM.