Restarting Samba and Other Programs/Services in Ubuntu Lucid-Natty

Restarting Samba

Open a new file with gedit, kate, or nano and enter the following code:

service smbd stop
service nmbd stop
service smbd start
service nmbd start

Save the file to your home directory, calling it something like “restartsamba”. Then make the file executable, by browsing to the file, right clicking and selecting preferences and checking the executable box. Alternatively open a terminal and:

sudo chmod +x restartsamba

From that point on you should be able to open a terminal and restart samba with:

sudo ./restartsamba

Restarting X

See this page:

Restart Networking

sudo /etc/init.d/networking restart

Restart Bind DNS

sudo /etc/init.d/bind9 restart


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: