Keeping credentials safe on the server

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

Keeping credentials safe on the server

Postby leke » Sat May 21, 2011 2:40 pm

If I have a text file full of user credentials, is it enough just to set the file permissions to 500 on the server to keep it protected?

Thanks
User avatar
leke
LXF regular
 
Posts: 506
Joined: Mon Oct 22, 2007 5:45 pm
Location: Oulu, Finland

Postby Dutch_Master » Sat May 21, 2011 2:53 pm

No. Don't keep it on the server, unless you really must. Even then it's probably wise to keep it outside the DocumentRoot...

As for permissions, 400 allows only read by the owner, 600 also allows write operations. An uneven number indicates executable permissions, quite unnecessary for a simple text-file ;)
Dutch_Master
LXF regular
 
Posts: 2449
Joined: Tue Mar 27, 2007 1:49 am


Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests