Use SAMBA to mount sharedfolders [Linux]
First thing first!
Here we are going to mount a Samba with password and setup envy; firstly type the following code at your terminal:
apt install samba -y
#CONFIG
Set up credentials with:
smbpasswd -a $username
chown -R $username:$username /home/ #take read-write
After installed open the smb.conf (**important**)
nano /etc/samba/smb.conf
getting into the file, go to the end of the line and set up the SHARED FOLDER.
[sharedname]
path = $dirsharedfolder
available = yes
valid users = $namefolder-owner
read only = no
browsable = yes
public = yes
writable = yes
#PLACE OF DOUBTS
Use ls -l in your sharedfolder and check permitions.
TIP: use chown --help to parse all files from user and group owner .
chown -R user:group /dir/sharedfolder
# this will make all files from folder be parsed with your user + group settings.
upcomming imgages later. (underdevelopment)
my enviroment:
lsb_released -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic

Comments
Post a Comment