Solved

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

Posted on 2012-04-05
2
599 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Deploystudio is a system which can be used to deploy OSX clients and servers within the small/medium or large business environments. The system is built onto of the OSX Server NetBoot system and uses images & workflows as its core assets. While work…
Syslogd is a utility that traps and logs messages sent by running processes. It is configured with the syslog.conf file, which consists of lines containing a pair of fields: "the selector field which specifies the types of messages and priorities to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now