If your care is that file with private data is accessible by anyone you can 
create another user and set read permission only for the new user. Then you 
access on server with it and, run the script with this user.

Il you are on Linux machine:

# adduser myprivateuser
# chown -R myprivateuser:myprivateuser dirwithfiles
# chmod -R 600 dirwithfiles
# chmod -R u+X dirwithfiles

Is it right?

Regards,
Francesco

Inviato da iPad

> Il giorno 06/apr/2015, alle ore 11:27, Joyson D'souza <[email protected]> ha 
> scritto:
> 
> Hi,
> 
> I am really not sure what you mean by that. Basically I run the app using the 
> command node main.js. Can you please give me an example of what you said.
> 
> Regards,
> Joyson
> 
>> On Wednesday, April 1, 2015 at 3:06:44 AM UTC+5:30, Francesco Cioffi wrote:
>> Run your script with ad-hoc User without read permission for Others. 
>> 
>> Thanks, 
>> FC
> 
> -- 
> Job board: http://jobs.nodejs.org/
> New group rules: 
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> --- 
> You received this message because you are subscribed to the Google Groups 
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/nodejs/37dc1ab0-77ad-4f18-8952-b27b8adc8c1e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/6AE8F116-E44B-459D-A3CF-F802BE7FC9BB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to