Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 28-Sep-2009, 10:35 AM
Senior Member
 
Join Date: Oct 2007
Posts: 358
W_Prindl 0 reputation points
Default Re: nss attributes, attrib and recursion..

Why not use flag? It does still work from a DOS-prompt. :-)

From the linux attrib side you have only wildcards for filenames. So *,
*/*, */*/* etc. But if you have too many files or too many
subdirectories, which match your wildcards, attrib errors out and you
have to divide your command into smaller portions of your file-tree. So
automated (scripted) use probably only possible by accessing each file
individually.

Some attributes like "execute only" you can set via standard chmod, too.

Overall is really easier, to do this from a Windows WS than from the
Server itself.

--
W. Prindl


djbrightman wrote:

>
>Is there a switch for attrib to make it recurse through a file
>structure?
>I want to clear out a load of files that have some attributes set (old
>roaming profile directories on an nss volume) but need to take off the
>attributes before rm.
>
>i.e. a bit like the old dos FLAG *.* N /S
>
>I know I could use something like "find . -exec /sbin/attrib
>--clear=all {} \;" but that seems very heavy and wasteful...running
>attrib for each and every file...
>a) there are thousands of files in a roaming profile
>b) I want to use find to locate the directories!;-)
>
>Any suggestions?
>Thanks
>David

Reply With Quote
 

Thread Tools
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 07:43 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2