LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-13-2006, 10:18 AM   #1
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Rep: Reputation: 30
howto chowto change file permisions in multiplhange file permisions in multiple dirs?


howto change file permisions in multiple dirs?
 
Old 01-13-2006, 10:31 AM   #2
zhelezov
Member
 
Registered: Jan 2006
Location: Bulgaria
Distribution: debian, grml, ubuntu
Posts: 69

Rep: Reputation: 15
how much multiple?

why don't you try recursively changing the permissions of the parent directories...and let RegEx help you!
 
Old 01-13-2006, 10:38 AM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,004

Rep: Reputation: 304Reputation: 304Reputation: 304Reputation: 304
Quote:
Originally Posted by pingvina
howto change file permisions in multiple dirs?
If you're talking about recursively going down through a directory ... something like:
Code:
find dirname -type f -print | xargs chmod 644
find dirname -type d -print | xargs chmod 755
The first will change only plainfile permissions, the second, directory permissions
 
Old 01-13-2006, 03:10 PM   #4
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
yes it is working... xargs rules

tnx
 
  


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
file permisions citrus Linux - Newbie 1 01-04-2006 05:06 AM
smbmount is ignoring file permisions, I've searched, but have no answer lostboy Linux - General 6 10-15-2005 10:24 AM
file permisions speedemonV12 Linux - Newbie 8 07-19-2005 11:03 AM
file permisions on /.fluxbox e1000 Slackware 1 11-22-2003 05:30 AM
looking up file permisions starwind Linux - Newbie 1 10-15-2003 07:33 PM


All times are GMT -5. The time now is 01:11 PM.

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