Disable Guest Access – Samba

Published on February 22, 2011, by in linux, sysadmin.




Samba by nature has guest access for various purposes. However, you can disable guest access to prevent anonymous browsing and tighten security overall.

1. Edit the smb.conf file:

$ sudo nano /etc/samba/smb.conf

Add this line to the [global] section:

restrict anonymous = 2

2. Close and save the file. Then restart samba.

This will restart samba on Ubuntu:

sudo service smbd restart

or on Centos:

# /etc/init.d/smb restart

Done!

Related posts:

  1. Securing Apache and PHP
  2. How-to Disable Third Party Flash Cookies
  3. SSH Key Pair to Login Without Password

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Home linux Disable Guest Access – Samba
© Copyleft scottlinux.com CC BY-SA 3.0