I’m new to rockstor and has boxes in general. I’m on stable updates running 3.8-14. I have 6x 3TB drives 2 are independent for low important data backups and 4 are setup as a raid1 for mission critical backups. I’ve got 3 shares setup on my redundant pool and I have an smb share on each. I have a user setup that’s an admin on each smb share.
On my windows 10 computer I can browse the available shares at \ipaddress after logging in but I get a permission denied error or an invalid handle error.
I’ve changed the root user on the shares under access control but that does help.
Can you please provide a screenshot of your Rockstor Share ACL (or just tell us if is 700, 755, etc etc etc) + a screen of a Samba share from Rockstor Web UI??
Please note this could be related to this too (no auto inherited permissions over samba shares):
I’ll post again with changing photo share to cpuchip/cpuchip 775
And let me know if those aren’t the acl’s you need I’m not sure exactly what you’re asking, like finding the acls by ssh’ing into the box and seing it’s smb config and permissions bits?
I’ve created a user called cpuchip on my nas, and that’s the user I’m logging in with on windows. It wont list the dir of ]172.17.4.102 unless I’m logged in with cpuchip
He is an “ls -l” of /mnt2/photos
[root@chipnas photos]# ls -l
total 0
current /mnt2 dir listing
[root@chipnas mnt2]# ll
total 64
drwxrwxr-x. 1 cpuchip cpuchip 62 Oct 15 09:09 chip-tm
drwxr-xr-x. 1 root root 24 Oct 14 13:02 home
drwxrwxr-x. 1 root root 0 Oct 14 22:47 photos
drwxr-xr-x. 1 root root 12 Oct 14 22:45 redundent
drwxr-xr-x. 1 root root 0 Oct 14 12:53 regular
drwxr-xr-x. 1 root root 144 Oct 15 08:40 rockons
drwxr-xr-x. 1 root root 30 Oct 13 19:22 rockstor
dr-xr-xr-x. 1 root root 168 Oct 15 08:41 root
drwxr-xr-x. 1 root root 14 Oct 14 13:10 timemachine
Here’s a from samba /var/log/samba/log.maclappy2 (the windows name of the computer I’m trying to connect to share from)
I’ve not resolved my issue, but I did a fresh install in a VM and I don’t have this issue in the VM. So I think I’m inclined to just format the boot drive and try again on my physical hardware. I’ll have to do that when I get home tonight. Thank for your help @Flyer!
Well, I could still use the help. I freshly installed and… the same issue. I don’t know why in a vm it works perfectly but then on real hardware I have issues. I’m running an amd apu a8-7600 with 16gb ram the motherboard has a rieltek nic. I’m a bit lost at this point.
I was able to start accessing and writing to my cpuchip home directory after running: setsebool -P samba_enable_home_dirs on
My guess is SELinux interfering with the shares. For some reason it seems to work out of the box in my VM but no matter how many times I format the boot drive and install I can’t get the defaults to just work out of the box on my physical box.
When I create a new share say, data.
[root@chipnas mnt2]# ls -ldZ data/
drwxr-xr-x. root root system_u:object_r:unlabeled_t:s0 data/
Is there any reason why on installing in a VM SELinux would be disabled and not on physical hardware? I did not change any settings while installing except where to install to. Any thoughts? I like having SELinux running, but that means I’ll need to run that command on any new shares I create.
That’s an interesting idea. So you’re running Rockstor in a vm on your nas box? I was just playing around with installs on my MacBook Pro with Parallels just to see how the defaults work with smb shares. Currently I have Rockstor running on bare metal. Simple AMD A8-7600 APU with 16GB non-ecc ram on a Gigabyte a88xm mother board with 6x3TB drives with 4 in raid1 and 2 independent. and a 120GB ssd as the boot. I had a USB3.0 32GB boot drive, but it gave up the ghost too quickly for my taste.
It didn’t occur to me to run it in a virtualized environment on that box. That would also allow me to install a dual or quad port NIC and run PFSense on it too. That’s tempting.
Yep, my Rockies (production & dev) run over a VM, actually just missing disks passthrough on the production VM (having that should provide smart capabilities too).
It’s the first time I read about SeLinux issues over Rockstor, maybe related to Parallel way to have VMs?!? Don’t know, but happy to hear we have a new Mac guy ( Check this one → Simple AFP Setting Request - #12 by sfranzen , we need Mac testers & coders )