Solved

how to add bash script and plist file to execute in OS X

Posted on 2012-04-05
2
610 Views
Last Modified: 2012-04-09
hi,

i am trying to follow the post on http://www.practiceofcode.com/post/15543512691/disable-greylisting-under-lion-server

to add a bash script and plist file to execute it, however I don't know the specifics of what program to use to actually add the scripts to osx, as well as how to give root:wheel access to the plist file.

how does one go about creating a bash script on osx, and saving it to the disk.  then how, specifically, would i add the plist file and change its permissions?

thank you.
0
Comment
Question by:kaplancomputers
2 Comments
 
LVL 13

Accepted Solution

by:
maximus5328 earned 500 total points
ID: 37815921
You can use TextEdit - in your Applications - to create the script and plist. Just make sure you switch to plain text: Format menu > Make Plain Text.
To set the owner and change permissions you should use Terminal in your Utilities folder.

Easy steps to set the owner on a file:
1. Open Terminal and type (without quotes but with the space at the end):
"chown root:wheel "
2. Drag the file from the Finder to Terminal - the path to the file should be added at the end of the command.
3. Hit Return

To change permissions on a file:
1. Open Terminal and type (without quotes but with the space at the end):
"chmod 755 "
2. Drag the file from the Finder to Terminal - the path to the file should be added at the end of the command.
3. Hit Return

To check the effective owner and permissions on a file:
1. Open Terminal and type (without quotes but with the space at the end):
"ls -lah "
2. Drag the file from the Finder to Terminal - the path to the file should be added at the end of the command.
3. Hit Return
The resulting line will show permissions first then owner, group, file size, modification date, file path.
Permissions 755 should look like "-rwxr-xr-x"
Permissions 644 should look like "-rw-r--r--"
0
 

Author Closing Comment

by:kaplancomputers
ID: 37826259
Perfect, thanks for the explanation!
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you new to OS X?  This helpful advice could get you quickly up to speed if you are making the transition from windows or totally new to OS X. Finder gives you the visual connection between you and the files located on the hard drive of your A…
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question