Difference between revisions of "Installing Samba from the command line"
Jump to navigation
Jump to search
(Created page with "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''' * sudo s...") |
|||
Line 23: | Line 23: | ||
You '''can''' see the shares from the machine by entering <code>smb://'''MACHINENAME'''/</code> into the address bar of your file browser. | You '''can''' see the shares from the machine by entering <code>smb://'''MACHINENAME'''/</code> into the address bar of your file browser. | ||
[[Category:Linux]] |
Revision as of 15:13, 18 January 2022
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
- sudo systemctl restart smbd
Set up username & password for Samba acess
- 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.