Comments (10)
I do not use apple devices, so I can't test this. But I just browsed the folders via filebrowser/smb without any problems.
When I login via ssh and check the permissions, I get this:
pi@raspberrypi:~ $ ls -la /media/
total 152
drwxrwxrwx+ 5 www-data www-data 4096 Sep 20 21:22 .
drwxr-xr-x 18 root root 4096 Sep 17 09:12 ..
drwxrwxrwx+ 3 www-data www-data 4096 Sep 12 20:17 backgroundimages
-rw-r--r-- 1 www-data www-data 368 Sep 17 09:26 buttons.private.cfg
drwxrwxrwx+ 3 www-data www-data 4096 Sep 18 15:43 internal
drwxrwxrwx 6 www-data www-data 131072 Sep 20 21:22 local_target
-rw-r--r-- 1 www-data www-data 1005 Sep 17 09:26 rclone.conf
All folders are owned by www-data and permissions are rwx to the world. Is it the same on your device?
from little-backup-box.
I do not use apple devices, so I can't test this. But I just browsed the folders via filebrowser/smb without any problems. When I login via ssh and check the permissions, I get this:
pi@raspberrypi:~ $ ls -la /media/ total 152 drwxrwxrwx+ 5 www-data www-data 4096 Sep 20 21:22 . drwxr-xr-x 18 root root 4096 Sep 17 09:12 .. drwxrwxrwx+ 3 www-data www-data 4096 Sep 12 20:17 backgroundimages -rw-r--r-- 1 www-data www-data 368 Sep 17 09:26 buttons.private.cfg drwxrwxrwx+ 3 www-data www-data 4096 Sep 18 15:43 internal drwxrwxrwx 6 www-data www-data 131072 Sep 20 21:22 local_target -rw-r--r-- 1 www-data www-data 1005 Sep 17 09:26 rclone.conf
All folders are owned by www-data and permissions are rwx to the world. Is it the same on your device?
Here's what I get with the same command:
pi@lbbox-ii:~ $ ls -la /media/
total 20
drwxrwxrwx+ 4 www-data www-data 4096 Sep 20 21:54 .
drwxr-xr-x 18 root root 4096 May 3 03:26 ..
drwxrwxrwx+ 3 www-data www-data 4096 Sep 20 18:22 backgroundimages
-rw-r--r-- 1 www-data www-data 368 Sep 20 21:39 buttons.private.cfg
drwxrwxrwx+ 4 www-data www-data 4096 Sep 21 16:43 internal
-rw-r--r-- 1 www-data www-data 0 Sep 20 21:39 rclone.conf
from little-backup-box.
This means, permissions on file system level are correct. smbd also allows full access to user lbb. I added a samba server restart command after creating a media folder now. Because I can't reproduce the error, I can't check the effect. Any changes?
Just for understanding: You are using an apple device and wont to browse the samba shares, right? If I'm right, Netatalk isn't used to mount network paths but to share, right? It's a server, not a client. Isn't it?
from little-backup-box.
This means, permissions on file system level are correct. smbd also allows full access to user lbb. I added a samba server restart command after creating a media folder now. Because I can't reproduce the error, I can't check the effect. Any changes?
Just for understanding: You are using an apple device and wont to browse the samba shares, right? If I'm right, Netatalk isn't used to mount network paths but to share, right? It's a server, not a client. Isn't it?
I am not sure about the specifics of Samba vs. Netatalk, so I may be using incorrect terminology. I am using Apple devices (Mac & iPhone), and I want to browse the folders on the LBB that are shared over the network. Mostly because that is the easiest way for me to access the backed-up files on the internal micro SD card of the LBB (since I only have Apple devices, which can't read Ext4).
When I try to see the files on my Mac, I get an "incorrect permissions" message. However, when I try to do the same from an iPhone, I have no problem drilling down into the folders to see the image files.
What makes this particularly weird, is that it is still possible on the Mac for me to manually set the relevant sub-folders to "Read/Write" -- using the Mac GUI (not the terminal)... I'm not sure if this is a bug in Mac OS or some specific quirk of LBB (or Raspberry Pi, or Linux, or ???), but this is how it is.
from little-backup-box.
from little-backup-box.
https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X As I can not test it, could you figure out the changes needed in /etc/samba/smb.conf? You can test it by editing it: sudo nano /etc/samba/smb.conf and sudo service smbd restart
Just to clarify: I should make the edits to the samba file on LBB (not on my Mac). Please confirm.
from little-backup-box.
from little-backup-box.
Yes, please edit the LBB samba configuration. I hope this will bring compatibility.
Done. And it worked.
The original smb.config file starts like this:
### Global Settings ###
[global]
workgroup = WORKGROUP
wide links = yes
unix extensions = no
dns proxy = no
### Debugging/Accounting ###
...I did not delete anything or change any existing parameters -- I just added in the "recommended fruit config" from wiki.samba.org:
### Global Settings ###
[global]
workgroup = WORKGROUP
wide links = yes
unix extensions = no
dns proxy = no
vfs objects = fruit streams_xattr
fruit:metadata = stream
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:nfs_aces = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
### Debugging/Accounting ###
Then I restarted Samba and that seemed to solve the problem. I do not know which of the added lines did the trick, or if there is some other problem that was introduced by the addition, but as of now the permissions issue seems to be solved.
from little-backup-box.
from little-backup-box.
Would you please update development version and check the function again? I just added the samba config part.
I reverted to the old samba config to make sure the problem came back (it did). Then I updated to the latest development version to confirm that the problem was gone. It was.
So that's it for me. As far as my testing goes, you are ready to ship.
;-)
from little-backup-box.
Related Issues (20)
- "Power down after idle-time" does not work HOT 30
- Wifi connection stopped after backup started HOT 9
- Can't back up to cloud services HOT 2
- Backup not starting [dev branch; specific Hardware ] HOT 4
- Code injection vulnerability
- Problem or Operator Failure HOT 32
- bookworm causes problems
- Installation problems fixed
- Network connection fails - wireguard broken: fixed HOT 2
- Instructions for defining source and target devices (and paths) HOT 5
- Raspberry Pi 5: GPIO functions (display and buttons) do not work HOT 6
- Mail does not work when "user" is not an e-mail address HOT 6
- Unable to login after global password set HOT 7
- Raspberry Pi Zero W - No display on I2C display (sh1106) HOT 1
- Unable to backup to Samsung T7 Touch HOT 14
- EN Translation error HOT 1
- Update freezes at "Setting Up Comitup (1.41-1) ..." HOT 2
- Question About Transfer Speed HOT 3
- Try starting the backup via buttons USB->USB fails. After confirming USB-USB backup - backup is just stopped but no new backup cycle is started HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from little-backup-box.