LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   relation between programs permissions and permissions of the files they use (https://www.linuxquestions.org/questions/linux-security-4/relation-between-programs-permissions-and-permissions-of-the-files-they-use-890928/)

rblampain 07-10-2011 11:27 AM

relation between programs permissions and permissions of the files they use
 
I do not have a clear idea of how to set ownership and permissions for 'home-made' assembly programs and the data files they use. My main expectation is to be able to make the files accessible r or w or rw only to the programs.

Could someone describe a common, safe approach or point to relevant info on the subject.

Thank you for your help.

chrism01 07-10-2011 08:40 PM

This may help http://rute.2038bug.com/node17.html.gz.
The main thing is (in your case) to ensure that the progs and files are owned by the same dedicated user and no other (ie group & other/world) perms are on.
eg
Code:

#prog perms
rwx------

#data file perms
rw-------

#ownerships: user, group
myuser mygroup

http://linux.die.net/man/1/chmod
http://linux.die.net/man/1/chown


All times are GMT -5. The time now is 01:58 PM.