Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-13-2006, 10:18 AM   #1
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
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
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,192

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Originally Posted by pingvina
howto change file permisions in multiple dirs?
If you're talking about recursively going down through a directory ... something like:
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
Registered: Nov 2005
Distribution: slack
Posts: 188

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



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 > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration