A
A
Andrey2019-08-05 00:23:27
Debian
Andrey, 2019-08-05 00:23:27

How to automatically mount an smb directory?

Good afternoon! There is a server on Debian 10, the smb://10.0.1.1/ssd directory is shared,
it must be automatically mounted on another Debian 10 10.0.1.2 machine to the /media/share directory (there are rights 777)
From the root console: mount -t cifs // 10.0.1.1/ssd /media/share -o users,username=guest,password=""
everything works, when mounted in fstab:
//10.0.1.1/ssd /media/share cifs users,username=guest,password=" ",utf-8 0 0
after reboot the directory is not connected, what is the error or how to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serg, 2019-08-05
@sergrych

if something like this:
cat /root/.smbclient
username=guest
password=
/etc/fstab
//10.0.1.1/ssd /media/share cifs user,rw,credentials=/root/.smbclient 0 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question