LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to copy files into ReadOnly folder? (https://www.linuxquestions.org/questions/linux-software-2/how-to-copy-files-into-readonly-folder-770194/)

AndreLi 11-19-2009 07:22 AM

How to copy files into ReadOnly folder?
 
Hi,

Is there a way to copy files into a ReadOnly folder?

I tried "cp -f". It can overwrite a readonly file, but can not copy into readonly folder.

Any information would be appreciated. Thanks in advance.

catkin 11-19-2009 07:34 AM

No. "Read only" means it cannot be changed and "change" includes adding files.

vlbaindoor 11-19-2009 07:39 AM

Quote:

Originally Posted by AndreLi (Post 3762609)
Hi,

Is there a way to copy files into a ReadOnly folder?

I tried "cp -f". It can overwrite a readonly file, but can not copy into readonly folder.

Any information would be appreciated. Thanks in advance.

I think you can't - that is the very reason why a folder is read only.

Your question does not talk about the user-group-others access rights for the folder in question other than saying that it is a read only folder. I wonder why?


All times are GMT -5. The time now is 02:21 PM.