Undoing a Terminal Command

Discussion in 'Mac Basics and Help' started by toman311, Dec 3, 2015.

  1. toman311 macrumors newbie

    Joined:
    Dec 3, 2015
    #1
    I was trying to figure out how to change the permissions on the Mac I am working on and I came across an article which told me...
    "You will need to create and edit this file yourself for user-specific launchd configurations, so open the Terminal and run the following command: sudo pico /etc/launchd-user.conf
    ...When finished, press Control-O to save the file, followed by Control-X to exit the editor. Now simply log out of your account and back in, and the launchd configuration will incorporate the new umask settings."

    I did this, but the only thing that changed was when I click "Get Info" for documents on the office server was under the Sharing & Permissions. Before there was a list of names which had either "Read and Write" or just "Read Only" (these are what I was trying to change). Now, all I get under that setting is "You have custom access". I want it to say "Read and Write" or whatever the names happen to be set to.

    Here's some background info. I was trying to change these Sharing & Permission settings so that when I create a new folder, the folder is automatically set to "Read and Write" and not the standard "Read Only". I achieved this through an Apple.com tutorial (I should've trusted the product maker over an outside source anyways), but I just want the more detailed Sharing & Permissions description back. I don't know how to do this. Any ideas?


     
  2. garevans macrumors newbie

    Joined:
    Aug 26, 2008
    #2
    What you've done is change the CONTENTS of the file launchd-user.conf

    If you knew what the contents were before, change them back

    Failing that, if you have a time machine backup you can restore that file to before you messed with it

    Finally if you're doing to do things like this in the future it's worth backing up the old file

    Something like
    cp /etc/launchd-user.conf ~/Desktop/launchd-user.conf.backup
    would copy the file to your desktop

    On a slightly related note, if you're not 100% sure what you're doing you should never be editing anything in the root directory. Go crazy in the user library though, you can delete pretty much anything from ~/Library and the system will still work (you might break your user account, but you can always make another one)


    Good luck!

     
  3. toman311, Dec 4, 2015
    Last edited: Dec 8, 2015

    toman311 thread starter macrumors newbie

    Joined:
    Dec 3, 2015
    #3
    When I first used that command, I saved the information. After I got what I wanted from the other method which I found, I went back into the Terminal and deleted the text that I originally saved in the Terminal and saved that. This didn't change my Permission information back to the way it was before I did the first method that I found. So, basically, I am not sure how to set the information back to the way it was before the first command while still keeping the second command. Also, I am not sure what a Time Machine backup is, but it sounds complicated.

    In addition, I do get "You can read and write" (and not the typical "You have custom access" that I am complaining about) with the names of people and if they can Read & Write or if they cannot on the desktop. The problem comes when I am looking at files on the server. That is when I don't get the list of people and what they can do and when I only get "You have custom access".
     

Share This Page