Trace: samba

samba

Prev  
 Next

samba

I have not look at samba much since I first attempted to set up my home sever circa 2011 on Fedora before I moved to Ubuntu. I stopped using Fedora as I had noob pain with Selinux, coupled with the short service life of Fedora, so I moved to Ubuntu, where I had a lot more success.
Samba seems to pretty much just work. I was lazy and tended to just use Webmin to set this up. However as I did not use Webmin for much else I have elected to to set it up now that I moved my server to Debian. So now I need to learn about Samba again
Samba is pretty much mandatory, as a lot of services smb use it as default.
My main form of security it to limit external access to my lan, hence samba security is low. More focused on easy use.

samba basic setup

High level requirements:

  • To install: sudo apt install samba samba-client
  • Adjust the smb.conf file: sudo vim /etc/samba/smb.conf
  • Add and enable users: sudo smbpasswd -a USER, ​sudo smbpasswd -e USER. I use the same user name and passwords as main Linux log.

smb.conf

samba check commands

Some samba check commands:

  • smbclient -L 192.168.1.10 list the available shares on the host IP
  • pdbedit -w -L list the current users on the samba host
  • sudo systemctl status smbd smdb.service is the systemd services name…..
  • testparm will list the samba configuration parameters.
/app/www/public/data/pages/home_server/home_server_setup/other_services/samba.txt · Last modified: 2023-04-30 Sun wk17 17:43
CC Attribution-Share Alike 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International