LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2003, 11:00 PM   #1
ashesh
Member
 
Registered: Feb 2003
Location: Kharagpur
Distribution: RH8, RH9, FC2
Posts: 112

Rep: Reputation: 15
changing permissions...


How can I shange the permissions of all the subfolders and files of a given folder?

I copied a folder from a CD and there are 100s of files and folders in that which don't have execute permissions. I would like to change the permissions of all the contents in one go...

Thanks in advance...
 
Old 08-15-2003, 11:03 PM   #2
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
Check this out
http://www.linuxpowered.com/html/editorials/file.html
 
Old 08-15-2003, 11:04 PM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
chmod -R u+x /the/file/directory/*

-R mens recursive so it will go into any sub-directories.

u+x means add execute to user. the * is the wildcard meaning everthing in that folder.

if your stuk on a command enter the command followed by --help.
 
Old 08-15-2003, 11:32 PM   #4
ashesh
Member
 
Registered: Feb 2003
Location: Kharagpur
Distribution: RH8, RH9, FC2
Posts: 112

Original Poster
Rep: Reputation: 15
Hi Leonscape...

Thanks for the command... sad that i couldn't think of using the -R flag...

ashesh
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Permissions jong357 Linux - General 5 01-25-2005 02:39 PM
Changing Many Permissions at Once food188 Linux - General 3 11-02-2003 08:17 AM
Changing permissions Mladek Linux - Software 7 07-09-2003 08:57 AM
Changing Permissions linuxfond Linux - Newbie 11 07-01-2003 02:48 PM
Permissions Changing ew2003 Linux - Newbie 1 04-29-2003 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:54 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
Open Source Consulting | Domain Registration