LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-30-2012, 03:24 AM   #1
j0n1509
LQ Newbie
 
Registered: Jul 2011
Posts: 10

Rep: Reputation: Disabled
want to set a folder readable but prevent to copy


Hi everyone,

I have a question. I wonder how to set acl for a folder using chmod. How can i set a folder/ file readable but not allowed being copied.

would pls everybody tell me how....thx a lot everyone
 
Old 03-30-2012, 03:34 AM   #2
pubudumj
LQ Newbie
 
Registered: Jan 2012
Posts: 16

Rep: Reputation: Disabled
Don't give write permission to that folder

chmod 755 /folderpath

this tells owner have full permission group & others have rx(read & execute) permissions.They can't edit folder
 
Old 03-30-2012, 03:40 AM   #3
nglbrkr
Member
 
Registered: May 2005
Location: hiroshima
Distribution: debian
Posts: 75
Blog Entries: 9

Rep: Reputation: 17
It seems to me that you can't, because if you can read a file, then you can copy it.
The choices you have are r or rw. rw means you can edit it in place. r means you have to save a copy into another folder where you have write permission to edit it.
At least I think that's all there is to it.
 
Old 03-30-2012, 03:57 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,144
Blog Entries: 2

Rep: Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846
Simple answer: You can't. If you are reading a file you are basically making a copy of it in RAM. Once that is done you can store the data wherever you have write permissions.
 
Old 03-30-2012, 04:03 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,677

Rep: Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855Reputation: 2855
there is only one exception: for executables (real binaries) you can allow the execution but deny to read and/or copy them.
For text file you cannot do that.
 
Old 04-01-2012, 02:22 AM   #6
j0n1509
LQ Newbie
 
Registered: Jul 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
thx everyone...for pubudumj...i've already done that, but still can copy, for pan64...do you mean i have to chmod to 1 instead of 5 ?
 
  


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] Using terminal command -Find files in a folder and copy them to a different folder j-jock Linux - General 4 11-28-2011 02:20 AM
Scripts to list folder contents and copy images from folder and subfolders brunces Linux - Newbie 6 11-03-2011 01:23 PM
Folder no longer readable - can't find problem oudent Linux - Software 4 07-23-2011 12:56 AM
want to copy an inode folder from acdrom to a home directory (folder). nhbob Linux - Newbie 8 12-20-2009 11:12 AM
make a folder readable evensen Linux - Software 6 12-29-2004 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:03 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration