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

Asked by Alan Trevethan

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

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

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 :
#2

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 :
#3

Thanks marcobra, that solved my question.