fbpx

Samba – the server service for providing Windows file and print sharing – automatically launches after each Ubuntu 10.10 installation. However, if you need the Samba Server on your Ubuntu Desktop system only sporadically, you can disable the automatic startup of Samba .

Upstart configuration

Samba starts in Ubuntu 10.10 via Upstart when booting the system. The configuration can be found in the file /etc/init/smbd.conf :

description "SMB / CIFS File Server"
author "Steve Langasek <steve.langasek@ubuntu.com>"

start on local-filesystem
stop on runlevel [! 2345]

respawn

pre-start script
	RUN_MODE = "daemons"

	[-r / etc / default / samba] &&. / Etc / default / samba

	["$ RUN_MODE" = inetd] && {stop; exit 0; }

	install -o root -g root -m 755 -d / var / run / samba
end script

exec smbd -F

Stop automatic starting

Samba gets through the configuration line

start on local-filesystem

So only started when the local file systems are involved.

By commenting out this line

# start on local-filesystem

prevent the automatic start of Samba and can start it normally as needed via the initscript /etc/init.d/smbd start .

Categories: Tutorials

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.