How do I edit and save changes to the smb.conf file in Ubuntu 8.10

Asked by Alan Trevethan on 2009-01-16

I am trying to edit the smb.conf file to reflect the user permissions and network name that I require, however I can't seem to work out how to edit and save the file with root privileges.

I have opened a terminal using sudo -i and navigated to the appropriate directory, and now need to know what terminal program to access and how to access it in order to edit and then save my changes

Question information

English Edit question
Ubuntu samba Edit question
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Last query:
Last reply:
Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :

Open a Terminal from the menu Applications → Accessories → Terminal and type:
(when the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

sudo gedit /etc/samba/smb.conf

Make change and save.

Everytime you make changes to your smb.conf file please restart samba service by typing:

sudo /etc/init.d/samba restart

Hope this helps

Revision history for this message
marcobra (Marco Braida) (marcobra) said :

This question it is now associated to "samba" package.

As additional tips, you can click on this launchpad page tabs:

- the "Answers" tab will allow you to see all already answered questions related to this package;
- the "Bugs" will allow you to see the related known bugs realted to this package.

This might helps you to solve your issue, by the way is a good starting point.

Revision history for this message
Alan Trevethan (alantrev1) said :

Thanks marcobra, that solved my question.