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 11-19-2009, 07:22 AM   #1
AndreLi
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
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.
 
Old 11-19-2009, 07:34 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,551
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
No. "Read only" means it cannot be changed and "change" includes adding files.
 
Old 11-19-2009, 07:39 AM   #3
vlbaindoor
LQ Newbie
 
Registered: Oct 2009
Location: UK
Distribution: Suse, Fedora, Ubuntu
Posts: 8

Rep: Reputation: 1
Quote:
Originally Posted by AndreLi View Post
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?
 
  


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
copy files into /usr folder knobby67 Linux - Software 4 10-04-2009 01:19 PM
Find files and copy the results to desired folder? colbert Linux - Newbie 6 11-08-2008 11:21 PM
copy folder/files according to modification date bkcreddy17 Programming 14 10-15-2008 07:24 PM
To copy files from a CD to a folder on your system Gins Linux - General 20 10-30-2006 12:53 PM
How to copy in a script files to a samba folder? Julianus Linux - Networking 1 10-09-2004 07:29 PM


All times are GMT -5. The time now is 09:48 AM.

Main Menu
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