AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
In smb.conf, you can use the force user (and force group) option. Make sure Samba has the permissions to access the file system. Files don't need exec permission.Ĭhange your line in /etc/fstab to /dev/sda1 /mnt/usb vfat dmask=000,fmask=111,user 0 1 You can use this to give permissions to everybody, dmask=000 and fmask=111. The default is the umask of the current process. Set the umask applied to regular files only. Set the umask applied to directories only. Set the umask (the bitmask of the permissions that are not present). As you can't chmod a FAT file system, this means that you have to put FAT specific mount options into /etc/fstab: PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"Īs you say you can't write to the device, I assume that reading works.Ĭhange the permissions when mounting the file system. Successfully mapped on windows 10, but cannot create or delete files only read.Īdditional information regarding the OS: $ uname -a When I try to chmod: $ sudo chmod 1777 /mnt/usbĬhmod: changing permissions of '/mnt/usb': Operation not $ dev/sda1 /mnt/usb auto defaults,user 0 $įilesystem Size Used Avail Use% Mounted on # a swapfile is not a swap partition, no line here PARTUUID=ed2ff758-02 / ext4 defaults,noatime 0 1 PARTUUID=ed2ff758-01 /boot vfat defaults 0 2 In case any new readers start here, to save you going back through it all, what worked for me was - change the Samba password on the Pi (to itself, if you like) then reboot the Windows PC.I have samba installed on the Pi and mounted a usb drive, I can access it on windows but I cannot write to it, I suspect it’s because I need to chmod the drive, but FAT32 does not support permissions, so what are my options here? $ cat /etc/fstab I wonder what makes the difference so that something now works. I've followed all the same steps I used for the previous build, except this time I added a third partition on the SD card and put the LMS data there.įurther Update: I thought I would do one more reboot of the Windows 10 PC and - Windows Explorer is now showing me the files in the Samba shares on the rebuilt Pi. But I still can't get past the "access denied" message.Īnd as far as I can recall, setting up Samba shares the first time I built pCP + LMS on the Pi 3B in question just worked as it should. Update: A second reboot of the Windows 10 PC seems to have made Windows Explorer work properly again. Thanks!Sadly, no change after rebooting the PC. I'll try the Windows reboot when I'm back home later in the day. It feels like the issue is most likely either with Windows, or with file ownership and permissions on the Pi. That sounds like a good suggestion to me. However, is there some authentication token involved that has to be cleared from a W10 cache before you can successfully use new credentials (even the same ones for a share created at a different time)? I don't know Samba under the hood and might fall flat on my face with this thought. But, after a W10 re-boot, entering the new credentials worked just as expected. W10 retained access to the share after the password has changed on LMS, without needing new credentials. It finally worked as expected with one quirk. However, I have just tried changing the LMS/Samba password via the pCP GUI and then accessing the share from Windows 10. I have an LMS/Samba share accessible from W10. This is a long shot but have you tried re-booting Windows 10 after setting (or changing) the LMS/Samba password but before trying to access the share? Permissions somewhere, maybe, or Samba version changes?. I've been round and round the same loop numerous times, resetting the Samba password, using a plain text source to copy/paste the password to ensure no typing errors creep in, so I need to find what the actual problem is - it's not simply id and password. And trying to map the share as a network drive gets the same error. Windows Explorer is saying "Connection refused" when I enter the Id (tc) and password that I used on the Samba setup page. I've set up Samba shares for the music files and the LMS server data, exactly matching what I had before the previous SD card in the Pi died from a power blip. All done over the pCP GUI from my Windows 10 PC. I've just rebuilt my Pi 3B with LMS and external powered hard drive mounted at /mnt/LMSfiles.
0 Comments
Read More
Leave a Reply. |