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
|