Git Product home page Git Product logo

Comments (10)

gboudreau avatar gboudreau commented on August 17, 2024

Your problem is permissions of the storage pool drives.
Ref: https://github.com/gboudreau/Greyhole/wiki/Permissions-Data-Drives

Make sure you're working as root, or use sudo for commands to chown.

I'm not sure how using NTFS drives using ntfs-3g affects permissions, but the symptoms you describe mean that the user you are using to connect to Samba from Windows (fred I guess) is not allowed to read files and/or folders in your storage pool drives.

You can test that by looking at the symlink of a missing file in your landing zone (eg. /var/hda/files/Downloads for the Downloads share), and then, using the fred user on ssh, try to navigate all parent folders of that file, on your storage pool drive.

eg. if /var/hda/files/Downloads/file1 symlink points to /var/hda/drives/HDD1/gh/Downloads/file1, then as fred (or whatever user you connect with, from Windows), do:

cd /var/hda/drives/HDD1
ls
cd gh
ls
cd Downloads
ls
md5sum file1

from greyhole.

Grootent avatar Grootent commented on August 17, 2024

from greyhole.

gboudreau avatar gboudreau commented on August 17, 2024

This is most probably how ntfs-3g behaves on permissions; it simply makes everything 777.
So maybe the problem is the folders containing your storage pool drives.
Try to navigate /var/hda/drives using your fred user:

cd /var
ls
cd hda
ls
cd drives
ls
cd HDD1
ls

from greyhole.

Grootent avatar Grootent commented on August 17, 2024

from greyhole.

gboudreau avatar gboudreau commented on August 17, 2024

That is not the same thing. You need to check you have read access to all parent folders.

from greyhole.

Grootent avatar Grootent commented on August 17, 2024

from greyhole.

gboudreau avatar gboudreau commented on August 17, 2024

You could look in the Samba logs /var/log/samba/*.log for errors. You might need to change the log level to a higher number (5 or even 10), in smb.conf, to see the permission error. Don't forget to restart smbd when you change its config. With a log level high enough, try to list files in a test folder should log the permission errors.

If you can't find the problem with that, try this command to gather your system info and post the resulting URL in a new comment: https://github.com/gboudreau/Greyhole/wiki/GetHelp#gather-system-information

from greyhole.

Grootent avatar Grootent commented on August 17, 2024

from greyhole.

Grootent avatar Grootent commented on August 17, 2024

from greyhole.

gboudreau avatar gboudreau commented on August 17, 2024

Thanks for the follow-up. I'll update the documentation to mention that those missing lines could result in this behaviour.

Good day.

from greyhole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.