Can't access HDD Raspberry Pi Samba share


Robin Dijkhof

I have a raspberry pi 2 and an old hard drive, so I want to create a samba share for this old hard drive. I mounted my HDD on /media/usb with ntfs-3g and it worked fine.

I added this to the smb.conf file:

[smb]
    path = /media/usb
    available = yes
    read only = no
    browseable = yes
    public = yes
    writable = yes

I set the permissions sudo chmod 777 -R /media/usband restarted the samba service. Next, I tried to access my SMB from Windows, but couldn't. It says: "Cannot access xxx.xxx.x.xxx/smb" and something like asking your network administrator for permission (translated from Dutch). Check my permisions with ls -ld /media/usbmedrwxrwx---

I have tried other configurations but none seem to work. At this point I created a second share for my smb.conf using the same configuration but with /home as the path. Now, this share works, but my first share still doesn't work, but it has the same configuration.

I don't understand what's wrong and can't find a solution. Can someone help me. Is this something to do with the hard drive mount?

Robin Dijkhof

Obviously the permissions are incorrect. I set permissions but the changes are lost multiple times. I automounted the hard disk with the following line in the fstab file:

sudo mount -t ntfs-3g -o uid=1000,gid=1000,umask=007 /dev/sda1 /media/NASDRIVE

I noticed that umask=007 was causing my problem. I changed it to 000, which I know is not saved.

Related


Can't access HDD Raspberry Pi Samba share

Robin Dijkhof I have a raspberry pi 2 and an old hard drive, so I want to create a samba share for this old hard drive. I mounted my HDD on /media/usb with ntfs-3g and it worked fine. I added this to the smb.conf file: [smb] path = /media/usb available

Can't access Samba share

gimmick I have three shared folders in my local home directory, that is, on /home/me/ on my Ubuntu desktop. All of these are set using "Share Options" in Nautilus' right-click menu. The standard Music and Videos folders are configured the same: the "Guest Acce

Can't access Samba share

gimmick I have three shared folders in my local home directory, that is, on /home/me/ on my Ubuntu desktop. All of these are set using "Share Options" in Nautilus' right-click menu. The standard Music and Videos folders are configured the same: the "Guest Acce

Can't access Samba share

gimmick I have three shared folders in my local home directory, that is, on /home/me/ on my Ubuntu desktop. All of these are set using "Share Options" in Nautilus' right-click menu. The standard Music and Videos folders are configured the same: the "Guest acce

Can't access windows share via samba

shadow warrior I can't access a windows machine via samba service in Ubuntu 16.04. I uninstalled and reinstalled the samba service as follows: sudo apt-get remove samba* sudo apt-get purge samba* After doing this, I executed: sudo apt install samba samba-comm

Can't access samba share, but visible in network

Bishwanath Das In Windows it asks for username and password, while in Ubuntu it asks for username, domain and password. I entered root and local user passwords and it says "cannot access". #======================= Global Settings ======================= [glob

Can't access Samba share on other LAN

username I have two different LANs in my home network, 192.168.0.1 (modem/switch) and 192.168.1.1 (router). The switch is connected to the modem and it has access to my PC, the 192.168.0.0/24 range. There is also a router attached to the modem that gives wirel

Can't access windows share via samba

shadow warrior I can't access a windows machine via samba service in Ubuntu 16.04. I uninstalled and reinstalled the samba service as follows: sudo apt-get remove samba* sudo apt-get purge samba* After doing this, I executed: sudo apt install samba samba-comm

Can't access samba share, but visible in network

Bishwanath Das In Windows it asks for username and password, while in Ubuntu it asks for username, domain and password. I entered root and local user passwords and it says "cannot access". #======================= Global Settings ======================= [glob

Can't access Samba share on other LAN

username I have two different LANs in my home network, 192.168.0.1 (modem/switch) and 192.168.1.1 (router). The switch is connected to the modem and it has access to my PC, the 192.168.0.0/24 range. There is also a router attached to the modem that gives wirel

Can't access windows share via samba

shadow warrior I can't access a windows machine via samba service in Ubuntu 16.04. I uninstalled and reinstalled the samba service as follows: sudo apt-get remove samba* sudo apt-get purge samba* After doing this, I executed: sudo apt install samba samba-comm

Raspberry Pi NTFS SAMBA SHARE share permission denied Windows 7

flammable I'm running a RaspberryPi machine that I'd like to turn into a low power network share that is completely unprotected on my home network in order to make it a general purpose network dump and media share. I have the USB drive mounted and can read and

Raspberry Pi NTFS SAMBA SHARE share permission denied Windows 7

flammable I'm running a RaspberryPi machine that I'd like to turn into a low power network share that is completely unprotected on my home network in order to make it a general purpose network dump and media share. I have the USB drive mounted and can read and

Access Samba Shares via Raspberry Pi SSH

Ibrahim Mezouar I have a raspberry pi at home and can access it over the internet using SSH behind a TP-Link router (using key authentication only). The router has a hard drive attached to it that I can access locally as a samba share using the router's IP add

Access Samba Shares via Raspberry Pi SSH

Ibrahim Mezouar I have a raspberry pi at home and can access it over the internet using SSH behind a TP-Link router (using key authentication only). The router has a hard drive attached to it that I can access locally as a samba share using the router's IP add

Samba: Can access share from UNC but can't browse to it

yknivag Background: Small home network that includes a media server that doubles as a NAS. The server runs both the smbd and nmbd samba components with the intention of running it as a workgroup rather than a domain (there aren't enough machines to make a doma

Samba: Can access share from UNC but can't browse to it

yknivag Background: Small home network that includes a media server that doubles as a NAS. The server runs both the smbd and nmbd samba components with the intention of running it as a workgroup rather than a domain (there aren't enough machines to make a doma

Can't access Dolphin samba share in Win10

Helvoye I use Kubuntu 17.10. I mount an ntfs partition at boot and use uid=1000 and gui=1000 like my user. In Dolphin I can share it via right click, properties, share, share with samba. Under Everyonemy settings ---, under my name, I set Full Control. I can't

Can't log in to samba share

Eddie I recently reinstalled ubuntu on my laptop and can no longer log into the samba share on the server. It works on a Windows machine and it works fine on a laptop, then reinstall the OS. I set it to guest access and it still doesn't let me in, I don't know

Can't access Jenkins running on Raspberry Pi using port 8080

Not Bisonica I'm trying to access a jenkins service running on port 8080 over my local network, but for some reason it doesn't allow me to connect. I can remote into the pi and start a web browser, then enter localhost:8080 and it works fine. This is a basic i

Can't access Jenkins running on Raspberry Pi using port 8080

Not Bisonica I'm trying to access the jenkins service running on port 8080 over the local network, but for some reason it won't allow me to connect. I can remote into the pi and start a web browser, then enter localhost:8080 and it works fine. This is a basic

Can't access Jenkins running on Raspberry Pi using port 8080

Not Bisonica I'm trying to access the jenkins service running on port 8080 over the local network, but for some reason it won't allow me to connect. I can remote into the pi and start a web browser, then enter localhost:8080 and it works fine. This is a basic

Can't access Jenkins running on Raspberry Pi using port 8080

Not Bisonica I'm trying to access the jenkins service running on port 8080 over the local network, but for some reason it won't allow me to connect. I can remote into the pi and start a web browser, then enter localhost:8080 and it works fine. This is a basic

Can't access simple bottle webpage in Raspberry Pi from PC

Ibolf I followed the guide https://bottlepy.org/docs/dev/tutorial.html on a Raspberry Pi with the following example . from bottle import route, run @route('/hello') def hello(): return "Hello World!" run(host='0.0.0.0', port=81, debug=True) Then I run the

Can make the Raspberry Pi cause a retract cycle (HDD)

Royal Rookie I'm wondering if the Raspberry Pi 3B+ can make the HDD have power-off retraction every time the OS I'm using shuts down/reboots? Will this affect my hard drive lifespan? I am using a 1TB Seagate Extended Drive 2018. Whenever the Pi shuts down/rebo

Can make the Raspberry Pi cause a retract cycle (HDD)

Royal Rookie I'm wondering if the Raspberry Pi 3B+ can make the HDD have power-off retraction every time the OS I'm using shuts down/reboots? Will this affect my hard drive lifespan? I am using a 1TB Seagate Extended Drive 2018. Whenever the Pi shuts down/rebo

Can't connect to Samba share after reinstall

Jay Sheridan I have a home file server on which I recently reinstalled the OS. I replaced the 32bit Ubuntu Server 10.04.2 with 10.04.3 64bit due to hardware upgrade. I've copied the previous Samba configuration, recreated the shared user, and made sure the per

I can't log into my Samba share

television I've been using samba for years without any issues, I've configured some shares that won't ask for a password (guest is ok)...Unfortunately I've updated the packages on the server (Ubuntu 14.04.4 TLS ), after that I can no longer access them, it kee

I can't log into my Samba share

television I've been using samba for years without any issues, I've configured some shares that won't ask for a password (guest is ok)...Unfortunately I've updated the packages on the server (Ubuntu 14.04.4 TLS ), after that I can no longer access them, it kee