LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-06-2004, 12:25 PM   #1
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Rep: Reputation: 30
File permsissions for some backup files saved onto cd


Hi, I saved some work I had done onto a cdrom. Although I cannot write over it because the file permissions are -r--r--r-- instead of drwxr-xr-x. How do I change the files with -r--r--r-- to drwxr-xr-x?

Note: I got the -r--r--r-- files from a cd that I used to back those up.

Thanks
 
Old 08-06-2004, 12:32 PM   #2
Tamsco
Member
 
Registered: Jul 2004
Location: 1st Brillouin Zone
Distribution: Gentoo (not ricer Gentoo)
Posts: 165

Rep: Reputation: 30
In terminal you need to use the chmod command running as either root or the owner of the files

The permissions go like the is. read is 4 , write is 2 and execute is 1 . If you want read and write, added 4 +2 =6

so you would use chmod 751 (file)

The d means directory. If your directories aren't recognized as such I don't know how to help you.

Last edited by Tamsco; 08-06-2004 at 12:42 PM.
 
Old 08-06-2004, 12:57 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
If the files exist on a CD-ROM, you aren't going to be able to change them because the CD is write-once. My recommendation would be to copy the files to a temporary directory on your hard drive, chmod the permissions, then reburn them to a new CD. -- J.W.
 
Old 08-06-2004, 01:00 PM   #4
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Thanks! That worked, but..do I really have to do one file at a time? It isn't a big deal, but sort of a hassle to have to do that to every file. And I don't think I could do it to a directory because the directory gives me all the permissions I need (drwxr-xr-x)...
 
Old 08-06-2004, 01:26 PM   #5
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
I think I could just cd to the directory, then do dir. Copy the files and chmod 751 paste the files. But are there any other ways ? Or is that the best?

Thanks.
 
Old 08-06-2004, 06:02 PM   #6
Tamsco
Member
 
Registered: Jul 2004
Location: 1st Brillouin Zone
Distribution: Gentoo (not ricer Gentoo)
Posts: 165

Rep: Reputation: 30
Familiarize yourself with the *. It means everything

suppose I have five files in /whatever

foo
foo1
foo2
greg
gre1

rm * means remove everything
rm f* means remove everything starting with f (foo foo1 foo2)
rm *1 means remove everything ending with 1.

It is very helpful.

You would have wanted to go to the temporary directory on your hardrive and type chmod 751 *
 
  


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
Saved files on floppy aren't read in Windows SirLancelotX Linux - Newbie 6 12-30-2005 01:48 PM
How to call a saved file using Gtk programming m.harshavardhan Linux - Software 2 08-20-2005 07:10 AM
how to write n saved a string to a file? geminigal Programming 3 06-08-2005 08:40 AM
Where is my file being saved, linux IO sopiaz57 Linux - Security 2 01-20-2005 09:55 AM
Managing saved html files in easily queryable fashion? bramadams Linux - Software 2 08-01-2004 06:32 AM


All times are GMT -5. The time now is 03:39 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