OpenIndiana/NAPP-IT issue with SMB

coolrunnings

Limp Gawd
Joined
Nov 21, 2004
Messages
511
I currently have an OpenIndiana server setup with a single share that has NFS and SMB sharing turned on. All setup has been done through Napp-It except for the automatic updates to OI. I am using the NFS share as a datastore in ESXi 5. When I create a folder over SMB, it works fine for all my Windows clients to see it but the folder seems to be invisible to ESXi. However, if I create the folder through ESXi, I see the folder via SMB on my Windows clients but cannot copy anything to it without getting an error saying Access Denied.

It sounds like a permissions issue to me but I'm stumped on how to address it. Below is a pic of the folder list in napp-it. Any help would be greatly appreciated!



Uploaded with ImageShack.us
 
Unless you allow root access for your ESXi host via NFS root-share option,
you must allow everyone=modify or full in you shared folder-ACLs

(You have set ACL to everyone=create, Only SMB creator=owner has access)

solution:
set folder ACL to everyone=modify (new files only)

for current files
set folder ACL to everyone=modify recursively
either via newest napp-it acl extension or via Windows when connected as root
 
Last edited:
Hey thanks for the quick response, Gea! Following your instructions, I was able to get the permissions corrected for new files but I didn't quite understand the instructions for recursively modifying permissions on existing files. Could you elaborate a little more on how I would do that using Windows? Also, I don't currently use Napp-it commercially, just for my own testing. How much does it cost for me to get access to the extensions?
 
I did this (I think, it was a little while ago)

/usr/bin/chmod -R A- /pool/share
/usr/bin/chmod -R A+user:mynonrootuser:full_set:allow /pool/share
 
pitne: tried that but I must have missed some step because it didn't seem to work. I have a hunch it's because of the user I used? I put in my openindiana non-root username on that second line. Both commands completed successfully but it didn't allow access to all. Sorry for the noobishness of my post. Just trying to learn what I can.
 
Can you get to the root of the CIFS share via windows? or not even that far?
 
Windows can see everything and navigate directory structure. It just can't modify folders or files created from esxi. Esxi can't see files or folders created in Windows.
 
Ohh I see one thing now in that screen shot.

1) Where NFS column says "on" for bench, click it and set it to off (turn off any VM's on this share first)
2) Then it will say "off", click on it again and it will give an example at the bottom. something like "rw=@". You want to copy the entire string and paste it in the text box. I think by default it says "on", but this text box is not a boolean only.

also turn on NBMAND .. it adds some compatibility between NFS and CIFS accessing the same share
 
Hey thanks for the quick response, Gea! Following your instructions, I was able to get the permissions corrected for new files but I didn't quite understand the instructions for recursively modifying permissions on existing files. Could you elaborate a little more on how I would do that using Windows? Also, I don't currently use Napp-it commercially, just for my own testing. How much does it cost for me to get access to the extensions?

Basic user settings in ACL extension are free. You can try if works for you.
With Windows, you must SMB connect as root. You can then set right klick a folder,
property - security- advanced to delete inherited permissions, set new permissions or
inherit them recursively.
 
Ok I am totally and utterly confused. I tried mapping a network drive in Windows 7 to the shared folder. I told it to use "different" credentials then specified root as the username and put in the root password for my OpenIndiana box. It mapped the drive. However, when I try to change the permissions on it, I get access denied.
 
Ok I am totally and utterly confused. I tried mapping a network drive in Windows 7 to the shared folder. I told it to use "different" credentials then specified root as the username and put in the root password for my OpenIndiana box. It mapped the drive. However, when I try to change the permissions on it, I get access denied.

That should work with a default install

some possible problems:
guest account on the share is enabled: (share without guest=on, can be the case due to your screenshot. guest=on=login without pw=no root permission)
there are idmappings (delete all idmappings)
there are restrictions on share level (set to default=full)
problem with some Windows versions (ex home editions, use other Windows or use napp-it acl-extension - free for basic ACL settings, use newest!)
 
Ok so I did more digging and realized that I apparently had not reset the root password using the 'sudo passwd root' command as per the Minimal SMB HowTo on the users page. Once I did this, and I turned off guest access, I was able to connect and change permissions as per _Gea's instructions.

However, what I don't get is this: when I make a new Virtual Machine on this share using vSphere Client connected to ESXi, it sets the owner as "Anonymous Logon". Unless you're connected to the share as an authenticated user, you can't modify any of the files using Windows over SMB. Connecting as guest, you're unable to do anything with the file, in fact. Is that by design or am I missing something? I thought full control for the everyone group meant that for guest access too...
 
Last edited:
Back
Top