Can't see files created by other Jails

David McKeen

Dabbler
Joined
Sep 5, 2016
Messages
10
I recently upgraded to the latest freenas and recreated my plugins to update them. I mounted my shared dataset to each jail but one jail can't seem to see the filed created from another. Not really sure what to do from here. I tried chmod to make them 7777 but nothing seems to work.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
if the chmod 777 didn't work, something else is happening here, but normally it would be file permissions/ownership as the cause.

What user are your respective jails using (UID and GID is important more than the name)?
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
Check if the files or directories in question have ACLs. You can check them from the shell with the getfacl command or via windows in the explorer via properties->security.
 

David McKeen

Dabbler
Joined
Sep 5, 2016
Messages
10
@sretalla
Looks like "root" is running the jails from what I can see by the GUI. Userid is 0

@Fredda
running that command didn't seem to return anything for quite awhile. I ran it in the directory I wanted to know this information. When i look in windows, everything has "special" permissions. Not sure how to tell if there is an ACL.
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
running that command didn't seem to return anything for quite awhile. I ran it in the directory I wanted to know this information. When i look in windows, everything has "special" permissions. Not sure how to tell if there is an ACL.
What did the getfacl command return or not return? The command output for a file or directory in question would surely help.
 

David McKeen

Dabbler
Joined
Sep 5, 2016
Messages
10
When i did a ls -l it shows all files as owned by root and with 1111 permissions. I tried running chmod -R 7777 *.* and it doesn't give me and error but just looks like it does something. Files still show 1111. Not sure if i am not doing something right here.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Can you share the output of ls -l ? File names are not important.
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
And additionally to the ls -l output you should also give the getfacl output of that filenames.
I tried running chmod -R 7777 *.*
I see two possible mistakes here:
  1. *.* might not really do what you intend. Probably a . would have been what you wanted to use.
  2. don't use the fourth octal here, this is not for file permissions u/g/w but is for special flags, that might have unwanted effects.
 

David McKeen

Dabbler
Joined
Sep 5, 2016
Messages
10
@sretalla
Every file is the same with this after the file name:
drwxrwxrwx 2 root 1111

getfacl of file
1580523529202.png


@Fredda
I'm trying to chmod all files and directories in that folder. I tried "chmod -R 777 ." like you suggsted but files are still set at 1111
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Getfacl and chmod are two separate permission models. Are you usually acl's or Unix mode bits? What is the dateset aclmode setting?
 

David McKeen

Dabbler
Joined
Sep 5, 2016
Messages
10
I am using whatever the default model is. Assumed it was unix mode bits. Before I upgraded to 11.x i was using chmod to change permissions. I recreated the jails after i upgraded to 11.x and have had this issue since.

Properties of the dataset.
1580783233644.png
 
Top