K
K
Koal Koalich2018-10-29 13:38:47
linux
Koal Koalich, 2018-10-29 13:38:47

How to "share" a folder in SAMBA?

All manuals describe the process as "create a folder /home/<user>/<shared_folder>", and then we will share it.
Why exactly in /home/<user>? What if I delete this user from the system? If not directly at home, then where? In /var?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Ruslan Fedoseev, 2018-10-29
@martin74ua

man hier
will give a description of the main directories
I would recommend in /srv

R
Rsa97, 2018-10-29
@Rsa97

Yes, exactly where you want. You can, for example, create a separate partition and mount it on /samba.
Just set the permissions correctly.

A
Adamos, 2018-10-29
@Adamos

And who told you that user is the user under which you log in to the site?
Create a disenfranchised user, and you can also register it in the samba settings.
At the same time, all of a sudden, users from normal systems will be able to access the same folders without any samba, via sshfs or sftp.

J
Juhani Lahtinen, 2018-10-29
@nukler

Good afternoon.
<user>- this is actually your login in the system.
Path /home/<user>is your home directory.
All tutorials assume that you are the actual user of the system and suggest that you create a folder in your home directory.
So it can be done, for example, in / mnt /

T
Teslaman, 2018-10-30
@Teslaman

Here is an excellent manual on samba. https://m.youtube.com/playlist?list=PLmxB7JSpraifs...
Another good site: smb-conf.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question