Difference between revisions of "Installing Samba from the command line"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2" | {{{!}} class="wikitable" style="float: right; width: 322px;" border="2" | ||
{{!}}+ Proven on: | {{!}}+ Proven on: | ||
{{!}}- | {{!}}- <!-- Debian --> | ||
{{!}} style="text-align: center; width: 60px;" {{!}} [[File:Logo Debian.png{{!}}60px{{!}}link=https://www.debian.org/{{!}}center{{!}}middle{{!}}frameless]] | {{!}} style="text-align: center; width: 60px;" {{!}} [[File:Logo Debian.png{{!}}60px{{!}}link=https://www.debian.org/{{!}}center{{!}}middle{{!}}frameless]] | ||
{{!}} style="text-align: center; width: 40px;" {{!}} 11 (bullseye) | {{!}} style="text-align: center; width: 40px;" {{!}} 11 (bullseye) | ||
{{!}} | {{!}} | ||
<br> | |||
{{!}}} | {{!}}} | ||
Basic Samba install & minimal configuration | Basic Samba install & minimal configuration | ||
Line 22: | Line 22: | ||
Read only = no | Read only = no | ||
guest ok = no | guest ok = no | ||
valid users = '''USER''' # This user is the only one who can access toe share | <span style="text-decoration: line-through;" >valid users = '''USER''' # This user is the only one who can access toe share</span> | ||
* sudo systemctl restart smbd | * sudo systemctl restart smbd | ||
Set up | Set up usernames & passwords for Samba acess (Samba uses it's own password list. Therefore, you'll need to set up each user...) | ||
* sudo smbpasswd -a '''USER''' | * sudo smbpasswd -a '''USER''' | ||
Additional bits to install (Client & utils & such...) | Additional bits to install (Client & utils & such...) |
Revision as of 17:22, 18 January 2022
11 (bullseye) |
|
Basic Samba install & minimal configuration
Create a test folder & file to be shared. (Assuming you'll replace USER with your own username...)
- mkdir ~USER/share
- touch ~USER/share/Foo
Install Samba
- sudo apt install samba -y
Configure the test share
- sudo vi /etc/samba/smb.conf
[New_share]
comment= my share
path = /home/USER/share
browseable = yes
Read only = no
guest ok = no
valid users = USER # This user is the only one who can access toe share
- sudo systemctl restart smbd
Set up usernames & passwords for Samba acess (Samba uses it's own password list. Therefore, you'll need to set up each user...)
- sudo smbpasswd -a USER
Additional bits to install (Client & utils & such...)
- sudo apt install cifs-utils samba-client -y
NOTE: At this point, the share can be accessed, but you need to know where it is because Samba does not advertise it's presence.
You can see the shares from the machine by entering smb://MACHINENAME/
into the address bar of your file browser.