LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 07-10-2011, 12:27 PM   #1
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 838

Rep: Reputation: 35
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.

Last edited by rblampain; 07-10-2011 at 12:34 PM. Reason: incomplete
 
Old 07-10-2011, 09:40 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
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

Last edited by chrism01; 07-10-2011 at 09:42 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 10:06 AM
[SOLVED] Lack basic understanding of permissions(apache permissions problem) cK` Linux - Newbie 7 04-09-2010 12:49 AM
Permissions error while copying files on NFS, but only on some files caggles Linux - Networking 1 07-30-2009 04:17 PM
installing programs and setting permissions Furlinastis Slackware 5 12-08-2004 08:07 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 01:52 PM


All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration