Howto Samba: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
No edit summary
Line 26: Line 26:
  IPC$            IPC      IPC Service (Samba Server)
  IPC$            IPC      IPC Service (Samba Server)
  SMB1 disabled -- no workgroup available
  SMB1 disabled -- no workgroup available
mount share on linux command line:
mkdir /mnt/samba
mount -t cifs -o username=samba,password=mysambapass //localhost/share /mnt/samba

Revision as of 16:56, 8 January 2024

install docker

first we need to install docker and docker compose:

https://wiki.vidalinux.org/index.php/Howto_docker

deploy samba container

clone the following repo from github:

git clone https://github.com/vidalinux/docker.git

enter docker-samba directory:

cd docker/docker-samba

if you want to change container parameters you need to edit docker-compose.yml file:

vi docker-compose.yml

deploy samba container using docker-compose:

docker-compose up -d

view containers deployment log using this command:

docker-compose logs -f

mount samba share

show the samba share name with the following commmand:

smbclient -L localhost

output results for this command: lpcfg_do_global_parameter: WARNING: The "encrypt passwords" option is deprecated

Password for [WORKGROUP\root]:
Anonymous login successful

	Sharename       Type      Comment
	---------       ----      -------
	share           Disk      samba share
	IPC$            IPC       IPC Service (Samba Server)
SMB1 disabled -- no workgroup available

mount share on linux command line:

mkdir /mnt/samba
mount -t cifs -o username=samba,password=mysambapass //localhost/share /mnt/samba