The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Permission change query krishmaths UNIX for Dummies Questions & Answers 4 07-19-2008 09:55 AM
Permission Change Upon Reboot gross SUN Solaris 2 06-25-2007 11:34 AM
change permission chmod Minguccio75 UNIX for Advanced & Expert Users 2 11-30-2006 04:48 AM
change files permission on Remote machine almeisan1 Shell Programming and Scripting 1 10-05-2006 12:03 PM
Change permission for directories and files mingfei2006 Shell Programming and Scripting 1 08-23-2006 07:00 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-29-2009
karthickrn karthickrn is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 17
Change permission for a set of files

Hi there,

I want to change from this permission -r-xr-xr-x to -r-xr-xr-- for a set of files under unix.

Can someone help me to go-about doing this in one shot.

Cheers,
RN
  #2 (permalink)  
Old 06-29-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
chmod does that.

You need to define 'set of files' However if all of the files are in a single directory
Code:
chmod 554 /directory/*
Warning this will also change protections on sub-directories of /directory - just the directory files, not what is in those directories.
  #3 (permalink)  
Old 06-29-2009
karthickrn karthickrn is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 17
This command will change the permission for all specified files but I want to find files with this permission -r-xr-xr-x and change it to -r-xr-xr-- for a group of files
Sponsored Links
Reply

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 09:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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