Home/Support/Support Forum/FLASH0 Access Premission
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

FLASH0 Access Premission

0 votes
I have a simple thread that store some persistent data into a file stored inside FLASH0 memory.

I'm noticing that file is accessible without restrictions from web browser using the url http://<ip-addr>/FS/FLASH0/<dir-name>/<file-name>

this behavior is undesirable for me.
is there a way to prevent this?
asked May 8, 2017 in NET+OS by gavello New to the Community (16 points)

Please log in or register to answer this question.

2 Answers

0 votes
I am pretty sure it asks you for a password before letting you access the filesystem.
answered May 8, 2017 by LeonidM Veteran of the Digi Community (2,821 points)
maybe I'm doing something wrong can you take a look to the code I've posted below?
0 votes
Maybe I'm configuring the security table wrong.

This is what I do.

[SECURITY.C]
void RpHSInitSecurityTable(void *serverdata)
{
int res = -1;
//res = NAHttpSetRealmSecurity (0, "NA-HTTP AWS Realm 1", NA_HTTP_SECURITY_SINGLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
res = NAHttpSetRealmSecurity (0, "NA-HTTP AWS Realm 1", NA_HTTP_SECURITY_MULTIPLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
//Please Do not implemennt Realm 2
res = NAHttpSetRealmSecurity (2, "NA-HTTP AWS Realm 3", NA_HTTP_SECURITY_MULTIPLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
res = NAHttpSetRealmSecurity (3, "NA-HTTP AWS Realm 4", NA_HTTP_SECURITY_MULTIPLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
}


[ROOT.C inside applicationStart()]
// I configure 2 users
NAsetSysAccess(NASYSACC_ADD, "admin", "somepw", NASYSACC_LEVEL_HTTP_R1 | NASYSACC_LEVEL_RW, NULL);
NAsetSysAccess(NASYSACC_ADD, "supervisor", "somepw", NASYSACC_LEVEL_HTTP_R3 | NASYSACC_LEVEL_RW, NULL);
answered May 11, 2017 by gavello New to the Community (16 points)
...