Chown for all folders (solved)

how do I chown for all the folders under the one folder I am changing permissions?
thanks love you guys
Last edited by otacon (2009-02-12 02:50:05)

find /directory/to/search -type d -exec chown user:group {} \;
Works for chmod too
find /directory/to/search -type d -exec chmod 755 {} \;
And files:
find /directory/to/search -type f -exec chmod 644 {} \;
Last edited by fukawi2 (2009-02-12 02:51:24)

Similar Messages

  • How can I set a customized view in finder set as standard for ALL folders?

    As I have a large number of folders, I need a specific view in finder: symbol view, sort by program and name. I tried to use this settings as standard for ALL folders, but using the 'set as standard' button does only work for the folder I am in, but not for ALL folders. I even tried to use this settings on the hard disk level in finder, but what ever I tried, it never applies to all folders. The problem occurs on each of my devices and on Yosemite OS 10.10.1. as well as Mavericks 10.9.5. Any ideas on how I can make the 'standard' work on all folders?

    As Vinod says, unique key validator would be fine.
    However, In Gabriel's blog:
    Performing a unique key validation for an attribute that is declared to be unique in the database requires a round trip to the database. This is quite expensive and there is a fast and easy way to work around it.Is false on several fronts:
    1). it's not expensive - it's actually cheaper than the alternative
    2). Unique key validator can require many trips to the DB to validate - it must check all other rows in the EO to ensure there is no duplicate, and all of those rows must be fetched into the middle tier to do the validation: this is expensive.
    The "cheapest" way to do this: unique constraint in the DB
    John

  • Help fix my function to show status for all folders

    I have created a function (tow of them for the same purpose) but they are not working. They compile but when i call them I get null result.
    What I want to do is get folder status for all folders in the database. There is a table called folder with status code, and another table called validstatus with the statuscode description
    So when you look at the older you just see the status code which is a number but then using the function you will get the desription of what that code means.
    Here IS THE function. Maybe I am not doing it right when I call them.
    CREATE OR REPLACE FUNCTION f_folderstatus (v_folderrsn IN NUMBER)
    RETURN VARCHAR2
    IS
    v_return VARCHAR2 (128);
    BEGIN
    SELECT distinct vs.statusdesc
    into v_return
    FROM folder f, validstatus vs
    WHERE f.statuscode = vs.statuscode
    AND f.folderrsn = v_folderrsn;
    RETURN v_return;
    END;
    When I call them using this statement I get null
    select f.folderrsn, f_folderstatus3(vs.statusdesc)
    from FOLDER F, validstatus vs
    where f.statuscode = vs.statuscode
    Edited by: user9508421 on Sep 11, 2008 8:11 AM

    Now how do I create a function to give folder status for all foldertypes? I will then use this function in a package.
    The Folder table has the following columns:
    NAME Null? Type
    FOLDERRSN NOT NULL NUMBER(10,0)
    FOLDERTYPE NOT NULL VARCHAR2(4)
    STATUSCODE NUMBER(10,0)
    SUBCODE NUMBER(10,0)
    FOLDERDESCRIPTION VARCHAR2(4000)
    FOLDERCONDITION VARCHAR2(4000)
    FOLDERNAME VARCHAR2(80)
    The validstatus table has these columns:
    NAME Null? Type
    STATUSCODE NUMBER(10,0)
    STATUSDESC VARCHAR2(80)

  • Hide side bar for all folders

    How am i supposed to do to hide all side bar for all folders once for all plz ??

    May be a corrupt .plist.
    Do a backup.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.finder.plist.  Move the .plist to your desktop.
    Re-launch Finder by restarting the computer and test. If it works okay, delete the plist from the desktop.
    If the same, return the .plist to where you got it  from, overwriting the newer one.
    Thanks to leonie for some information contained in this. 

  • Setting a default folder view for all folders in Windows 7

    How do you set up a default folder view of "List" for ALL the folders in Windows 7 including the optical drive?  
    Artoo

    I just installed windows 7. Are you seriously telling me that i now have all folders with mp3s in them AUTOMAGICALLY (THANKS FOR THE HANDY HELPING HAND THERE MICROSOFT!!!) set to some designers whim of what an mp3 folder "SHOULD" look like?
    Well i was going to write a big rant, and indeed did, but then i was doing some more research and it seems like i just made everyones day and solved the problem (partially). Or well THIS guy did:
    http://www.howtogeek.com/howto/16694/customize-the-five-windows-folder-templates/
    After you’ve clicked OK, visit some of the other folders in your file system.  You should see that most have taken on these new settings.
    What we’ve just done, in effect, is we have customized the General Items template.  This is one of five templates that Windows Explorer uses to display folder contents.  The five templates are called (in Windows 7):
    General Items
    Documents
    Pictures
    Music
    Videos
    When a folder is opened, Windows Explorer examines the contents to see if it can automatically determine which folder template to use to display the folder contents.  If it is not obvious that the folder contents falls into any of the last four templates,
    then Windows Explorer chooses the General Items template.  That’s why most of the folders in your file system are shown using the General Items
    template.
    Changing the Other Four Templates
    If you want to adjust the other four templates, the process is very similar to what we’ve just done.  If you wanted to change the “Music” template, for example, the steps would be as follows:
    Select a folder that contains music items
    Apply the existing Music template to the folder (even if it doesn’t look like you want it to)
    Customize the folder to your personal preferences
    Apply the new template to all “Music” folders
    A fifth step would be:  When you open a folder that contains music items but is not automatically displayed using the Music template, you manually select the Music template for that folder.
    Anyways, sorry that explanation doesnt do it justice. I have spent waaay too much time trying to figure this out already. Also that link doesnt say how to 1) copy templates (are they file or registry based?, didnt do research) 2) if you can distable templates
    or the automatic re-templating of folders.
    THAT is what i want to know! as it is much more maintance then its actually worth...
    but once i had set 5 default types to, the exact same thing... it now doesnt matter if it automagically switches it. SUCK IT MS AUTOTUNE!!!
    Its bloody hard to frame this question too. What can you say about this? "folder changes to mp3" "customize folder types windows 7" "windows 7 folder changes to mp3" "dont automatically change folders to mp3" "how
    to change mp3 details column for good" "automatically change column order win 7 mp3"
    The search that actually solved it:
    "do not apply default template to mp3 windows 7"
    good luck, this worked for me!
    EDIT: also i just noticed that neonr already answered this above. i just didnt read it carefully enough. anyways i guess i will leave this and mark his as answer.

  • Outlook Reading Pane -- Disable for All Folders

    I am really hoping the answer to this is not "you have to do it for each folder" (because I have hundreds of them) -- how do I disable the reading pane for ALL Outlook folders with a single click?

    Hello,
    In Outlook we can define view templates to to easily apply changes to multiple folders at once. Outlook 2010 and Outlook 2013 also have a separate feature to copy the current view of a folder to other folders.
    For more information, please refer:
    http://www.msoutlook.info/question/51
    Or, we can just use the /nopreview command to open your Outook with the Reading Pane off. To do this, please refer:
    http://office.microsoft.com/en-in/outlook-help/command-line-switches-for-outlook-2010-HP010354956.aspx
    Hope this helps.
    Best Regards,
    Steve Fan
    TechNet Community Support

  • Using bulk collect and for all to solve a problem

    Hi All
    I have a following problem.
    Please forgive me if its a stupid question :-) im learning.
    1: Data in a staging table xx_staging_table
    2: two Target table t1, t2 where some columns from xx_staging_table are inserted into
    Some of the columns from the staging table data are checked for valid entries and then some columns from that row will be loaded into the two target tables.
    The two target tables use different set of columns from the staging table
    When I had a thousand records there was no problem with a direct insert but it seems we will now have half a million records.
    This has slowed down the process considerably.
    My question is
    Can I use the bulk collect and for all functionality to get specific columns from a staging table, then validate the row using those columns
    and then use a bulk insert to load the data into a specific table.?
    So code would be like
    get_staging_data cursor will have all the columns i need from the staging table
    cursor get_staging_data
    is select * from xx_staging_table (about 500000) records
    Use bulk collect to load about 10000 or so records into a plsql table
    and then do a bulk insert like this
    CREATE TABLE t1 AS SELECT * FROM all_objects WHERE 1 = 2;
    CREATE OR REPLACE PROCEDURE test_proc (p_array_size IN PLS_INTEGER DEFAULT 100)
    IS
    TYPE ARRAY IS TABLE OF all_objects%ROWTYPE;
    l_data ARRAY;
    CURSOR c IS SELECT * FROM all_objects;
    BEGIN
    OPEN c;
    LOOP
    FETCH c BULK COLLECT INTO l_data LIMIT p_array_size;
    FORALL i IN 1..l_data.COUNT
    INSERT INTO t1 VALUES l_data(i);
    EXIT WHEN c%NOTFOUND;
    END LOOP;
    CLOSE c;
    END test_proc;
    In the above example t1 and the cursor have the same number of columns
    In my case the columns in the cursor loop are a small subset of the columns of table t1
    so can i use a forall to load that subset into the table t1? How does that work?
    Thanks
    J

    user7348303 wrote:
    checking if the value is valid and theres also some conditional processing rules ( such as if the value is a certain value no inserts are needed)
    which are a little more complex than I can put in a simpleWell, if the processing is too complex (and conditional) to be done in SQL, then doing that in PL/SQL is justified... but will be slower as you are now introducing an additional layer. Data now needs to travel between the SQL layer and PL/SQL layer. This is slower.
    PL/SQL is inherently serialised - and this also effects performance and scalability. PL/SQL cannot be parallelised by Oracle in an automated fashion. SQL processes can.
    To put in in simple terms. You create PL/SQL procedure Foo that processes SQL cursor and you execute that proc. Oracle cannot run multiple parallel copies of Foo. It perhaps can parallelise that SQL cursor that Foo uses - but not Foo itself.
    However, if Foo is called by the SQL engine it can run in parallel - as the SQL process calling Foo is running in parallel. So if you make Foo a pipeline table function (written in PL/SQL), and you design and code it as a thread-safe/parallel enabled function, it can be callled and used and executed in parallel, by the SQL engine.
    So moving your PL/SQL code into a parallel enabled pipeline function written in PL/SQL, and using that function via parallel SQL, can increase performance over running that same basic PL/SQL processing as a serialised process.
    This is of course assuming that the processing that needs to be done using PL/SQL code, can be designed and coded for parallel processing in this fashion.

  • How do I automatically fetch for all folders in Inbox?

    I'm running an iPHone 4 with iOS5.  When i retrieve my email, only the inbox retrieves, but not any of the folders in the account.  I want to retrieve all the emails to that account.
    I searched online, and found this response to a question re iOS3:
    iPhone/iPod touch devices with multiple email folders tagged for synchronization, will synchronize only the Inbox folder automatically. 
    If folder mirroring is enabled on the server, the folders you select for synchronization appear in the Mailboxes list.  The Inbox is the only folder that synchronizes automatically.  On devices running OS 3.0 or later, however, you may select other folders (excluding Trash) to also synchronize automatically.
    Select Settings > Mail, Contacts, Calendars > (account) > Mail Folders to Push, then check the folders you wish to automatically synchronize.
    On devices running OS versions older than 3.0, folders other than Inbox will initiate synchronization only when they are opened or when using the reload icon (manually initiated sync). 
    Does this feature still exist on iOS5?

    Just thinking even further, new mail does even need to show up in my Inbox list. I'd be happy if showed up as the number of unread in my Accounts list

  • Lightroom 5 displays No Photos in Selected Folder for all folders.

    All of a sudden Lightroom stopped displaying all of the installed photos. The catalog folders display the correct number of photos, but every folder in the catalog displays the same message —  No Photos in Selected Folder. The photos are all in the correct folders on the hard drives — but they don't even show up as not found — just non-existent. When I hover over a folder an image apperars in the Navigator, but nothing show in the Grid or Loupe view.
    I tried a Sync, and the import dialog came up, saying there were no photos to import. If I go to Import and navigate to photos that have not been imported they appear, but if I go to a folder that contains previously imported photos Lightroom says No Photos Found. The photos themselves are not damaged and will open in Photoshop with no problem. The only change made recently is an upgrade to Maverick on my MacBook Pro Retina laptop.
    Any thoughts will be much appreciated.

    I have had this occur twice, the last time today, after I upgraded to Mac OS 10.9. I have no idea why it happens, but it is very scary to see that there are no photos. I have fixed it both times by (a) rebuilding my catalog and (b) quitting and relaunching Lightroom. I don't know if (a) is necessary, or if relaunching is sufficient. I also have had Lightroom twice "lock" the display, where the same set of photos is displayed, regardless of which folder is selected in the left-hand panel. This is just as scary, and sometimes you don't notice, so you are editing a random photo (the photo that should be displayed, not the one that is incorrectly displayed). I'm using lightroom 5.2

  • Conversation view in Mail - switch on for *all* folders?

    I'm liking the "organize by conversation" option in the new Mail, but unless I'm missing something it looks like I have to switch it on separately or each of my (many!) folders.
    Is there a way to just switch it on globally?

    I'm afraid that setting is folder specific.
    There's a very simple "Info.plist" xml file on disk inside each folder (for example):
    ~/Library/Mail/V2/[email protected]@imap.gmail.com/Label.mbox/Info.plist
    where the status of conversation view for that folder is stored.
    Enabled:
    <key>DisplayInThreadedMode</key>
    <string>yes</string>
    Disabled:
    <key>DisplayInThreadedMode</key>
    <string>no</string>
    If you're confortable with shell scripting I guess you could go on about bulk searching & replacing those values from "no" => "yes".
    Just remember to backup first and do your tests with the Mail.app turned off.

  • How to set default sort order for all folders/albums/etc

    This is driving me nuts, having to change the sort order from manual to file name every time I change projects or folders (and I have a lot of both). Is there a way to set the default to just sort by file name ascending? Or sort by timestamp (that's date + time, not just date)?

    Chuckcars wrote:
    I am in process of doing some rearrangement to make Projects as the main box (the file drawer) with headings like: iPhone, Assignments, Events, Landscape, People, Travel. Then, a specific folder under the project. Then, an Album under the Folder.
    This should be started as a new thread -- do so if you have any questions.
    Strongly recommend using Projects as intended (see comments by Frank and DLSCreative in current thread ^1^ and long comment by me in another thread ^2^ ). In your case that would mean Folders with the headings you've selected, the (most likely) Projects, then Albums (and perhaps more Folders).
    ^1^ http://discussions.apple.com/thread.jspa?threadID=2716711&tstart=0
    ^2^ http://discussions.apple.com/thread.jspa?threadID=2654297&tstart=0

  • Would like a default Filter setting for all folders!!

    Why cant I set default when I get the way I want it???
    Why cant I get the ratings and other filters in smart albums???

    Why cant I set default when I get the way I want it???
    Why cant I get the ratings and other filters in smart albums???

  • Icon Preview - Turn off for all system instead of just folders?

    I hate the icon preview. I prefer the traditional icon placeholder.
    You can go to "show view options," but it only gets rid of it for that folder.
    Anyway to get rid of it across the entire system? Thanks.

    You also need to click the button at the bottom "Use as Defaults"--I noticed it tends to be greyed out when I first open a Finder window, and I need to make some change to get it to be active again. I just now changed the option in List view to have it stop drawing custom thumbs for all folders in List view, and I had to first uncheck the "Always open..." box at the top for the folder I had open, then I could click the Defaults button at the bottom. Of course, we'll see what happens when I restart....
    Francine
    Francine
    Schwieder

  • Some questions about view options for single folders

    hi,
    I'm trying to customize the finder a little, but I'm running into some troubles. It seems that finder is not capable of saving view options for single folders, is it? What I mean is: For example I want my standard view to be "column view, sorted by name". But one specific folder I want to open in "list view, sorted by date modified". I can't get finder to do it.
    In View Options, there is a checkbox "Always open in XXX view". But it only seems to work if I cmd-click that folder so it opens in a new finder window, but not if I stay in the same window, which is really annoying.
    With file-sorting, it seems as soon as I chose "sort files by date modified" finder does this for ALL folders, not only the one I'm currently in (regardless of whether I use View -> Arrange By or View -> View Options -> Arrange By)
    Ideas? I can't believe that those basic features are actually lacking in finder.
    thanks!

    well, I think I see what the problem is.
    I usually use column view. In column view it is enough to single-click on a folder to open it. When you do that, a new column with that folder opens. When I double-click on a folder on the other hand, it behaves the way I want it to be (opens in the view I set for it). So it seems like I will have double-click every folder in order to behave it the way I want (annoying as well, but I guess there is no other solution).
    Btw, if I create a new folder on my desktop and change it's default view it works, because clicking on a folder on the desktop is pretty much the same as opening it in a new window.
    Thanks for your help though. If you have any idea if you can make the folders behave the right way by single-clicking than please let me know
    edit: ok, seems I was wrong. it worked for the desktop-folder, but doesn't seem to work for any other folder (it DOES work when cmd-double-clicking it though). strange.
    Message was edited by: nachdenki

  • [nForce] Lets solve this 1394 problem once and for all.

        
    Hi guys,
    For the past 3months I have been trying to connect my Panasonic GS150 to my comuter in order to use Avid dvxpress pro. I have the problem of when I connect the camera to the computer, nothing happens. I also have this problem with my Ipod, however testing various different devices with the computer produces a strange outcome. Various different cameras work, xp pops up witha found new hardware device (like it should). Its very strange.
    I started to think it was my system. I changed my onboard firewire to a pci card, same solution. So then, i reinstalled windows, same outcome. So i bought a new motherboard nforce2 platinum and to my total amazment, same problem. If was after i had totally failed in finding the solution that i started to look elsewhere on the net for anyone who knows the answer. It seems to be a VIA firewire chipset problem. Every post of people who had similiar problems where looking for the answer but NOONE has solved it, ive come across about 1000 posts with no reply's. Its a problem that thousands have but not many people ever use ther're firewire ports so they dont they've got the problem.
    I really dont know what the problem is anymore, is it windows, is it certain 1394 devices, or is it the Via chipset. I havent a clue, so if anyone wants to attempt to solve this problem once and forall they will be the hero of about 3000 potential customers...
    Anyone?
    Jon.

    Yes thats correct.   Regardless of the hardware, and various 1394 devices are recognised. I've bought a 4pin to 4pin cable which i will test with different devices to see if they are consistent with a 6pin to 4pin cable, it may be a power issue. Not sure what chip on pci card, heres the info from website.
    - Three external 6-pin FireWire ports
    - Interoperable with existing, as well as older, 1394 consumer electronics and peripheral products
    - Complies with OHCI requirements
    - Compliant with IEEE 1394a-2000 standard
    - Isochronous transfer support (guaranteed bandwidth) for DV video data transfer from Camcorder to PC
    - Provides three fully compliant cable ports, each supporting 400Mbits/sec, 200Mbits/sec and 100Mbits/sec traffic
    - Plug and Play & Hot-Swappable for all ports
    - Power overload and protection failure on each port
    - PCI bus master with PCI 2.2 Bus specification
     

Maybe you are looking for

  • Mac won't open certain websites

    Hey, I am having troubles in opening some websites on my mac (10.9.5). I can open them with other devices in my network without any problems. Things I already tried: Using other browers (Safari, Firefox and Opera) Creating another User account Using

  • Problem transfering video to ipod

    I bought some video files (tv episodes) from the iTunes store and for some reason some of them will not transfer onto my iPod. The first few files worked fine and play on my iPod fine too (it's a season's worth of a TV show I'm discussing here). But

  • Input Variable on Selection screen in BEx

    Hi Team, Is there a way to change the sequence of Input variables on Selection screen in BEx ? Thanks in Advance.

  • How do i look at my photo stream on osx 10.6

    Jsut wondering if i could look at my photo stream using osx 10.6 and iphoto '09

  • Help with catchlight..Portrait help please

    Hi there I am looking for someone who know's about catchlight and Portrait, I have a photo of what I am aiming for, if someone who know's their stuff could please help?