Pages

Showing posts with label samba. Show all posts
Showing posts with label samba. Show all posts

September 28, 2025

Enabling SMBv1 in Samba

 Even though it's bad for security, sometimes you just have to do it.

  1.  Make sure you have a /etc/samba/smb.conf file. You would have gotten this if you installed smbclient. If you didn't, then do that now. 
  2. Edit /etc/samba/smb.conf and put somewhere below "[global]" the following line:
    client min protocol = NT1
  3.  The change will likely be instantaneous (i.e., no restart required). When you are done, be sure to comment the line out:
    # client min protocol = NT1

 References here and here.

 

September 22, 2008

Samba: passwords

Samba drove me nuts until I figured out that it keeps its own database of passwords. In other words, for each user that you intend to permit access for in Samba, you must also create a password. It's easy enough to do:

sudo smbpasswd -a <username>

but if no one tells you this, you will go nuts trying to figure it out. Not even the official Samba HOW-TO gives you a decent clue about this.

Apparently, you can set Debian Etch up to sync Samba and user passwords, but I haven't gone there yet.