Re: Sharing a USB drive with Samba ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mon, 25 Nov 2019 at 18:06, linux guy <linuxguy123@xxxxxxxxx> wrote:
I never thought of selinux causing the issue.  I'm not getting an selinux error ?

Where did you look?   You can use "sudo ausearch -m avc" to show the log entries.

selinux is about what programs are allowed to do.

might be useful.

https://fedoraproject.org/wiki/SELinux/samba is "man 8 selinux_samba" which used to come in
 selinux-policy-devel but dnf can't find it for Fedora 31.


I did a setsebool -P samba_enable_home_dirs on

I can't see why selinux would disallow remote users to access a device mounted to a shared directory.   Am I wrong ?

The link I provides says "If you  want to share files other than home directories, those  files  must  be labeled samba_share_t."
When I created a new samba share in Fedora 60 I had to label the files. 

If your external drive uses a low-rent filesystem you may not be able label files.


On Mon, Nov 25, 2019 at 2:17 PM George N. White III <gnwiii@xxxxxxxxx> wrote:
On Mon, 25 Nov 2019 at 14:59, linux guy <linuxguy123@xxxxxxxxx> wrote:
Hi people.

I'm running Samba on Fedora 31.  It's working great.

I want to share a USB drive using Samba.  I've tried mounting it to a directory within a Samba share and it does work due to permission errors. 

- I create the mount directory (USB) as a normal user, thus giving it "normal" permissions.  Fore test purposes, I can r/w/x files to this directory with no problems.

- I mount the USB device to the mount directory using mount /dev/sdb1 USB.  

- I can access the USB directory from the server and r/w/x everything just fine.

- When I try to access the share/USB directory from the client, like Dolphin, it requests permission in the form of user and password.  The user and password that I use to access the share do not work.  Nor does the user and password I use to access the server.

What am I missing ?

How does one share a USB device via Samba ?

Have you checked to see if selinux is causing the permission denied issues?

--
George N. White III

--
George N. White III

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux