Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

samba not working at all

Featured Replies

I see a lot of tutorials online and they all have seems to have different ways of going about making a share and it seems most of them are logged into a user as opposed to root. I'm logged in to root through ssh so that might the the cause of many of my issues I believe. I did a simple apt install samba and it seems to be running fine. I see other tutorials recommending you install "smbclient" and "cifs-utils", is that necessary? Some of the tutorials also say to add user groups and to add settings to the firewall. I'm just using 1 user and don't have any firewalls installed, unless armbian comes with one by default.

 

I think my my service is running fine though. When I run 'sudo systemctl status smbd' it says "active (running)" in green. I can open the sbc on the network and view the shared folders, I cannot access them however. Also the sbc does not show up when I click network on windows explorer, it will however open if i type in the ip/name manually on run or the open bar, not sure if that matters.

 

I did create a new user and gave it a samba password (mouse)

 

I did chown the folder to the user and chmod 777. Here's the what comes up when i ls -al in the root directory where the folder i'm trying to share is located:

 

drwxrwxrwx  3 mouse root 4096 Jun  5 09:25 testfolder

 

 

Here's my smb.conf

 

[testfolder]

comment = Test Folder
path = /root/testfolder
browseable = yes
read only = no
writable = yes
guest ok = no
force user = mouse
create mask = 0777
directory mark = 0777

 

On path I did /root/testfolder instead of /testfolder because I also mounted a hard drive inside that folder. When I tried mapping a drive to fstab using the directory /testfolder , it kept giving me an error about folder not existing or something, but when I typed /root/testfolder , it correctly mounted the drive. I also tried using the /testfolder on the smb config and it doesn't work either.

 

These folders structures are REALLY confusing. When I ls -al in root don't see any folders like mnt var etc I only see the "testfolder" i created and a few folders starting with a period like .bashrc .... Where are the other folders located? in /root/etc ?

 

Here's the error I get when trying to access my folder. V1bzV8U.png

I've had this issue. I believe I resolved it by ensuring that unix password sync = no is set and then I use the utility smbpasswd to set the desired password for the SMB share.  After that my Windows 10 machine could access the share.

Try this

[testfolder]

comment = Test Folder

path = /root/testfolder

browseable = yes

writeable = yes

valid users = mouse

 

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.