Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Issues With Outlook for Mac and Exchange? 37 118
exchange support of mac 2 75
Outlook for Mac Meeting Rooms 2 36
MAC Startup Program 12 53
The /etc/authorization file in Mac OS X 10.x can be used to control access to the various panes of the System Preferences amongst other things. It’s used by some of us Mac Sys Admin’s to give Standard Users access to System Prefs panes that only adm…
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
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 …

809 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