1844183 Members
2402 Online
110229 Solutions
New Discussion

Re: file permission

 
ashwani_1
Occasional Contributor

file permission

We are implementing database security . Some sql command are executed with sys priviledges . We have created users that uses a manually created password file for authentication of sql commands.

Its happening perfect except that users are able to view the password file which is in clear text.

Is this a way that i can restrict users to view the file ?

2 REPLIES 2
Kent Ostby
Honored Contributor

Re: file permission

Take away read permssion for all users.

So maybe chmod 600 on the file ?

This means the owner of the file will have read and write and no one else will be able to read it:

chmod 600
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Ng Oon Tian
Occasional Advisor

Re: file permission

Also please be careful that the plaintext transmission of password is not done on the command line else a command of "ps" will mean that protecting the plaintext password file is for naught