Files In Use Notification - Greyed Out in Finder

Status
Not open for further replies.

ProjectMorris

Dabbler
Joined
Dec 16, 2013
Messages
34
Hi

I hope you can help.

I'm new to FreeNas but reasonably proficient technically.

I have just configured my FreeNAs box and have a ZFS dataset with a "Public" CIFS Share and have been busily uploading files to my server.

Everything seems to be working ok and files seem to be uploading but I noticed some files are Greyed out in Finder and when try to access them from the MAc I have been using to move the files I get an "In Use Message" see below.

InUse.png


I can preview the PDF in the file info window on my MAC, I can access the file from my Ipad and have successfully emailed it to myself. I can't open it on my MAC (the one I uploaded the file from) but strangely I can delete the file.

Rather worryingly I have now noticed there are a few other files with the same issue.

It feels like some sort of a permissions issues. Reboots of the FreeNas box and Mac have not cleared the "In Use" issue.

I have used the shell on the web interface of FreeNas and navigated to the file but can't seem to get CHMOD to work or even be recognised at the command prompt even using "sudo chmod file.pdf" even though there are MAN pages for CHMOD am I missing something here?

How do I regain ownership of the files so I can work with them again?

Many thanks in advance.

Peter
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Hi

I hope you can help.

I'm new to FreeNas but reasonably proficient technically.

I have just configured my FreeNAs box and have a ZFS dataset with a "Public" CIFS Share and have been busily uploading files to my server.

Everything seems to be working ok and files seem to be uploading but I noticed some files are Greyed out in Finder and when try to access them from the MAc I have been using to move the files I get an "In Use Message" see below.

View attachment 9904

I can preview the PDF in the file info window on my MAC, I can access the file from my Ipad and have successfully emailed it to myself. I can't open it on my MAC (the one I uploaded the file from) but strangely I can delete the file.

Rather worryingly I have now noticed there are a few other files with the same issue.

It feels like some sort of a permissions issues. Reboots of the FreeNas box and Mac have not cleared the "In Use" issue.

I have used the shell on the web interface of FreeNas and navigated to the file but can't seem to get CHMOD to work or even be recognised at the command prompt even using "sudo chmod file.pdf" even though there are MAN pages for CHMOD am I missing something here?

How do I regain ownership of the files so I can work with them again?

Many thanks in advance.

Peter
Chmod doesn't work on CIFS shares in FreeNAS. FreeNAS uses ZFS ACLs to handle permissions for samba shares. The proper command to view ACLs is "getfacl". The best way to set ACLs is to use "File Explorer" on a windows client. Otherwise you should look into using either smbcacl or setfacl.

Post the following information:
  • contents of /etc/local/smb4.conf
  • error messages from /var/log/samba4/log.smbd
  • output of "getfacl /mnt/<pool>/<share>" (where you fill in the proper path for your system).
 

ProjectMorris

Dabbler
Joined
Dec 16, 2013
Messages
34
Hi Anodos,

Thanks you for your reply. I will do as you have asked. Unfortunately I work away from home during the week, so it will be Friday before I can get to the server again.

Given I still have to provide you with the above information do you have a hunch as to why these ACL's have decided to be as they are. Have I done something wrong or is there an attribute which I need to watch out for?

Thanks anyway and I will send these details on as soon as I'm back home.

Regards

Peter
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Hi Anodos,

Thanks you for your reply. I will do as you have asked. Unfortunately I work away from home during the week, so it will be Friday before I can get to the server again.

Given I still have to provide you with the above information do you have a hunch as to why these ACL's have decided to be as they are. Have I done something wrong or is there an attribute which I need to watch out for?

Thanks anyway and I will send these details on as soon as I'm back home.

Regards

Peter
Honestly, it's hard to tell what's going on without actually looking at log and config files. It might be a permissions issue, it might be some unrelated configuration problem.

On second thought, you should generate a debug file and post it here. In the webgui, you'll click on 'system' -> 'advanced' -> 'save debug'. This will help quickly narrow down the problem.
 

ProjectMorris

Dabbler
Joined
Dec 16, 2013
Messages
34
OK smb4.conf file

[global]
server max protocol = SMB2
encrypt passwords = yes
dns proxy = no
strict locking = no
oplocks = yes
deadtime = 15
max log size = 51200
max open files = 467390
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
getwd cache = yes
guest account = nobody
map to guest = Bad User
obey pam restrictions = yes
directory name cache size = 0
kernel change notify = no
dfree command = /usr/local/libexec/samba/dfree
panic action = /usr/local/libexec/samba/samba-backtrace
nsupdate command = /usr/local/bin/samba-nsupdate -g
server string = FreeNAS Server
ea support = yes
store dos attributes = yes
lm announce = yes
acl allow execute always = true
acl check permissions = true
dos filemode = yes
multicast dns register = yes
domain logons = no
idmap config *: backend = tdb
idmap config *: range = 90000001-100000000
server role = standalone
netbios name = FREENAS
workgroup = MANORROAD
security = user
pid directory = /var/run/samba
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
create mask = 0666
directory mask = 0777
client ntlmv2 auth = yes
dos charset = CP437
unix charset = UTF-8
log level = 1


[Peter]
path = /mnt/Zpool1/Peter
printable = no
veto files = /.snapshot/.windows/.mac/.zfs/
writeable = yes
browseable = yes
recycle:repository = .recycle/%U
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:directory_mode = 0777
recycle:subdir_mode = 0700
vfs objects = zfsacl aio_pthread streams_xattr
hide dot files = yes
guest ok = no
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = true
zfsacl:acesort = dontcare


[Public]
path = /mnt/Zpool1/Public
printable = no
veto files = /.snapshot/.windows/.mac/.zfs/
writeable = yes
browseable = yes
recycle:repository = .recycle/%U
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:directory_mode = 0777
recycle:subdir_mode = 0700
vfs objects = recycle zfsacl aio_pthread streams_xattr
hide dot files = yes
guest ok = yes
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = true
zfsacl:acesort = dontcare
 

ProjectMorris

Dabbler
Joined
Dec 16, 2013
Messages
34
File /var/log/samba4/log.smbd

Not sure what your after with this file. here is an example of an error message

[2015/12/29 16:59:54.480399, 1] ../source3/smbd/process.c:488(receive_smb_talloc)
receive_smb_raw_talloc failed for client ipv4:192.168.1.48:59042 read error = NT_STATUS_CONNECTION_RESET.

Is this what you are after?
 

ProjectMorris

Dabbler
Joined
Dec 16, 2013
Messages
34
getfacl output

# file: Zpool1/Public
# owner: nobody
# group: nobody
owner@:rwxpDdaARWcCos:fd----:allow
group@:rwxpDdaARWcCos:fd----:allow
everyone@:r-x---a-R-c---:fd----:allow
 

ProjectMorris

Dabbler
Joined
Dec 16, 2013
Messages
34
Hi Anodos,

And this is the debug file too.

Hope this helps.

As an aside I did a NFS share of the same area and I could open the files but there were still some restrictions.

If this becomes complex then I'm prepared to use an NFS Share and Copy all the files to a USB drive, toast the sever and copy it all back but I'd really like to understand what is going on and how to configure what I want. As I'm only starting here and when the server is full I won't be able to unload all the data again.

Many thanks for your help in advance.

Peter
 

Attachments

  • debug-freenas-20160116122448.tgz
    1.1 MB · Views: 334
Status
Not open for further replies.
Top