The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem with output of find command being input to basename command... new_learner UNIX for Dummies Questions & Answers 2 12-14-2008 02:56 AM
awk/sed Command : Parse parameter file / send the lines to the ksh export command rajan_san Shell Programming and Scripting 4 11-06-2008 01:29 PM
assign a command line argument and a unix command to awk variables sweta_doshi Shell Programming and Scripting 0 08-08-2008 07:54 AM
Help Required: Command to find IP address and command executed of a user loggedout Security 2 08-06-2008 09:12 PM
inconsistent ls command display at the command prompt & running as a cron job rajranibl SuSE 5 07-30-2007 09:26 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-03-2009
arsonist arsonist is offline
Registered User
  
 

Join Date: May 2008
Posts: 7
ssh command

hi to you all,

Is it possible to change all subfolder's permission to 755 and all the files' permission (regardless of its filetype) t0 644 in 1 command? if so what would be the complete command for this ?

i tried chmod -R permission /folder -- but if will give all the files and subfolders the same permission...


anticipating for your help...

thanks
  #2 (permalink)  
Old 03-03-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,794
This is kind of long but how about find


Code:
ssh find /path -type d -exec chmod 775 {} \; && find /path -type f -exec chmod 644 {} \;

  #3 (permalink)  
Old 03-03-2009
arsonist arsonist is offline
Registered User
  
 

Join Date: May 2008
Posts: 7
thanks alot ...jim mcnamara

what a relief...
  #4 (permalink)  
Old 03-04-2009
arsonist arsonist is offline
Registered User
  
 

Join Date: May 2008
Posts: 7
by the way,

do you happen to know a tutorial about ssh command of those kinds ?

i've been looking for sort of a multiple complex ssh command tutorial but i'm still unlucky...

hope someone can help.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0