View Issue Details

IDProjectCategoryView StatusLast Update
0004381Networks[All Projects] Specialpublic2023-08-25 05:26
ReporterDigitalMy 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0004381: SMB share on linux servers
DescriptionSet up unified samba server in Linux
/share/ folder in root with mount biggest storage
TagsNo tags attached.

Activities

DigitalMy

2021-12-07 01:41

administrator   ~0007117

Last edited: 2023-08-25 05:10

View 4 revisions

apt install samba
apt install smbclient

mcedit /etc/config/samba

config share
    option browseable 'yes'
    option name 'share'
    option path '/share'
    option users 'root,share'
    option read_only 'no'
    option guest_ok 'no'
    option create_mask '7777'
    option dir_mask '7777'

mcedit /etc/samba/smb.conf
service samba restart

DigitalMy

2021-12-07 02:41

administrator   ~0007118

smbpasswd -a share

DigitalMy

2021-12-07 02:53

administrator   ~0007119

/etc/init.d/samba

OpenWRT way of load config
 /etc/samba/smb.conf.template > /var/etc/smb.conf

DigitalMy

2023-07-19 11:47

administrator   ~0009211

Last edited: 2023-08-25 05:26

View 4 revisions

Without OpenWRT - clean samba installed in Debian - to set file /etc/samba/smb.conf

[global]
   workgroup = DMGR
[sharedf]
   comment = sharedfolder
   path = /sharedf
   read only = no
   valid users = demo,second
   guest ok = no
   browseable = yes
   create mask = 0777
   directory mask = 0777

and add user password:
smbpasswd -a shareduser

and apply:
chmod 777 /sharedf
service samba restart

DigitalMy

2023-07-19 13:57

administrator   ~0009213

Last edited: 2023-07-19 14:25

View 3 revisions

fdisk -l

Find ID of partition 4009ef0a-ecbe-ee29-d8e7-b872a25ffe40
lsblk -f

For mount share disk:
(or) add record to /etc/fstab
(or do not) use:
sudo crontab -e
add:
@reboot mount -t ext4 /dev/sda1 /sharefoo

DigitalMy

2023-07-20 09:12

administrator   ~0009215

Disk status monitoring:
apt install smartmontools
apt install gsmartcontrol