Is there command line access of the Authorization dialog?
I've been trying to find a way to bring up the default privilege authorization dialog via a script instead of using C, etc. to do it. Does anyone know a way to maybe have sudo bring up the prompt or if there's a way to bring it up in any kind of way that doesn't require me to make a program in Xcode to do this?
And without using AppleScript. After looking through a list of all the various commands, I found the one I was looking for. It's called security. There are a couple of uses, the main one being:
+security authorize -uew system.privilege.admin | <program/command/etc.>+
Another variant is:
+security execute-with-privileges <program> <[args]>+
Now I'm just trying to see if I can change what it says the program is instead of security. The documentation says it's not finished yet, so I'm guessing in future releases and updates they'll perfect this tool more.
Similar Messages
-
How to pass a command line argument to the sequence?
Hi,
My GUI is written in VB.NET. I can read the command line argument in the GUI, using: Me.AxApplicationMgr.CommandLineArguments(). But I don't know how to pass it on to my sequence file which the GUI invokes. How do I read the command line argument from the sequence file?
My purpose, is to have the same basic sequence execute different subsequences depending on starting conditions...
I am using TestStand 3.0 with a VB.NET GUI, on Windows XP.
I'd appreciate any help on the subject.
AlanHi Alan,
One obvious way would be to add parameter(s) to the MainSequence and then modify the process model sequence file to use the new parameter(s) in the step "MainSequence Callback" in either Single Pass or Test UUTs but I wouldn't recommend this approach.
The sequence file to be run via the entry point can be found at "RunState.ProcessModelClient" and the lookup string to the MainSequence would be "RunState.ProcessModelClient.Data.Seq["MainSequence"] or .Seq[0] .
Therefore you could quite easy use the SetVal method to setup a Local variable in the MainSequence of your Sequence File to receive the command line string.
Also you could do this without altering the Process Model Sequence File by using the Callback Sequence ProcessSetup in your Sequence File.
As an example.
You have a string in your Locals of MainSequence called CmdLineStr.
If you add the Callback Sequence ProcessSetup to your SequenceFile, then add an ActiveX Automation Adapter step which is setup for a PropertyObject and the reference is RunState.Caller.RunState.ProcessModel.Data.Seq[0].Locals.CmdLineStr.
There is an extra RunState.Caller to the lookup string, that's because I am doing the work in a SubSequence of Entry Point Sequence.
The method to use is SetValString and the parameters of the PropertyObject will be
lookupString = ""
options = 0 or 1
newValue = where evey you have stored you command line string.
Now when you run your sequence file you will find that the Locals.CmdLineStr will contain your parameter string.
Hope this is of help to you.
Regards
Ray Farmer
Regards
Ray Farmer -
What is the command line equivalent of the *compress* tool in *Finder*
I have an automatic build setup for our iPhone Apps. The one issue i face everytime is that the zip file that i create in the build using zip command is always rejected by iTunesConnect server as invalid binary. When i compress the .APP folder manually using Compress from the *Finder menu*, that archive is always accepted. The size of the zip files generated is slightly different.
Does anyone know what would be the command line equivalent of the Compress used by the Finder ? I want to automate this process so that someone does not have to do a manual compress before uploading it to iTunesConnect.
Thanks in advance,
-TRSa Mac user wrote:
That is odd, are you sure you are using the command line correctly then? Because zip-ing from the command line should be the exact same one as from the utility in OS X.
It's not the same, though. As someone else pointed out, the Finder uses a program called "Archive Utility.app", found in "/System/Library/CoreServices". A quick look at the binary shows that it uses the following Unix command line apps:
/usr/bin/macbinary
/usr/bin/file
/usr/bin/tar
/usr/bin/applesingle
/usr/bin/binhex
/usr/bin/ditto
/usr/bin/gunzip
/usr/bin/bunzip2
/usr/bin/uudecode
/usr/bin/atos
I would have to look into how iTunesConnect accepts files.
iPhone apps are signed binaries, so if one byte is different when they arrive at the app store, they won't be accepted. The command line zip leaves out some information and so the package appears to have been tampered with and they're rejected.
charlie -
There is no access to the photos to iCloud account...
Hi
After the last OSX update i get this messege constandly.
- There is no access to the photos to iCloud account "My@Email". Review your account information in System Preferences.
But I havn't got a clue whats wrong. I have checked that I use the correct password, and I dont know what else to check.
Anyone who know why this messege pops up ?
Kind regards ThomasHi Marga, did you get a DLL file, which you could copy directly into a Firefox folder, or did you get an EXE or MSI installer file?
If you got a DLL, try pasting it here:
C:\Program Files\Mozilla Firefox\browser\plugins
''(Note: you might need to create that folder if it does not already exist)''
For EXE and MSI files, some users (and some administrators) may have "broken" some installers last year when there was a malware problem that led them to create a software policy which prevents executables from running from the TEMP folder or from the \AppData\Local folder. -
Command line to run the SCCM client installation
SCCM Client package have been distributed to all servers. It will be available in \\servername\smspkgf$\GS2002B2
Do we need a command line to run the SCCM client installation manually?More info:
About Client Installation Properties in Configuration Manager
http://technet.microsoft.com/en-us/library/gg699356.aspx
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Is there any way to DISABLE the irritating dialog to allow FP to put stuff on your drive?
Is there any way to DISABLE the irritating dialog to allow FP to put stuff on your drive?
Photoshop > Preferences > Interface > Show Transformation Values
-
Command-line access to or counterpart to Audio Midi Setup?
Is there a way to access, or better yet, change, settings in Audio Midi Setup.app, via the command-line?
Sure. Retrieve the file ~/Library/Preferences/ByHost/com.apple.MIDI.*.plist via scp, edit it locally in PlistEditor or some such, and upload the revision. It's a binary plist, so you can't edit it in place.
Message was edited by: Linc Davis -
Hi. Can i access rman from the command line on a XE installation?.
Been told rman is available in XE, however i can find rman executable (command line). I've installed XE on windows.
Thanks in advance ...!That's right.!, So which link should i use to download production version of XE?: Is it :
http://www.oracle.com/technology/software/products/database/xe/htdocs/102xewinsoft.html
Regards, Luis ...! -
I've upgraded Xcode to the latest 5.1 Installed Command Line Tools via xcode-select --install Homebrew tells me "A newer Command Line Tools release is available"
brew --config:
Xcode: 5.1 CLT: 5.1.0.0.1.1393561416 LLVM-GCC: build 2336 Clang: 3.1 build 318
Checking my clang executable:
$ /usr/bin/clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
$ /Library/Developer/CommandLineTools/usr/bin/clang --version Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
So it appears Command Line Tools didn't install clang (and perhaps other executables) into /usr/bin? I checked my other laptop (w/ Mavericks), and /usr/bin/clang is version 5.1.
So I'm guessing this is the problem? I've tried to reinstall Command Line Tools as sudo, but now it won't let me install again (says software isn't currently available).
Can anyone help me with this? I've spent hours on it now, but can't find a solution.
ThanksBTW, I installed Xcode 5.1 from the Store, but have never run xcode-select --install. Here is the verbose output from a clang.
xew ~/$:clang -v -o hello main.c
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.9.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name main.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 236.3 -v -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/bin/../lib/clang/5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.9.sdk -fdebug-compilation-dir /Users/xew -ferror-limit 19 -fmessage-length 100 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o /var/folders/zf/d5vqmmtn5mq7h6766jtlkrvr0000gn/T/main-353995.o -x c main.c
clang -cc1 version 5.1 based upon LLVM 3.4svn default target x86_64-apple-darwin13.1.0
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer /SDKs/MacOSX10.9.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer /SDKs/MacOSX10.9.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/bin/../lib/clang/5.1/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.9.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.9.sdk/System/Library/Frameworks (framework directory)
End of search list.
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.9.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.9.sdk -o hello /var/folders/zf/d5vqmmtn5mq7h6766jtlkrvr0000gn/T/main-353995.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/bin/../lib/clang/5.1/lib/darwin/libclang_rt.osx.a
xew ~/$: -
Hello,
I have been tasked with trying to come up with a script (Unix) that will be able to determine if LCRM is up and responding
Does anyone know of a command-line call that could be wrapped to return a positive or negative result ?
Thanks.I think listing or concatenating files can be done with Java methods (methods of the classes in the java.io package).
-
Hello - We are performing customize installation for Captive CS6 with the help of AAMEE tool. We have couple of licenses which we wish to supply over the installation command line during deployment. However we did not find any parameter or the command line which will allow us to enter the license key during installation. Has any one succeed in finding the command line where we can pass the license key during installation of this application?
Thanks.Can you post the last bit of your log file? 100 or so lines should be plenty to see what's going wrong.
-
Is there a quick way in the print dialog to print at 50% opacity?
I want to save toner by printing a very black document at 50% opacity. Is there a quick way to do this in the print dialog box?
Dual 1Ghz Power PC G4 Mac OS X (10.3.9)It would depend on your printer driver. The availability and location of that setting is something that varies from printer to printer. For instance at school, printing on HP LaserPrinters it is an option under Image Quality with 3 choices (Default, SaveToner, Best Quality). At home, printing on a Canon bubblejet, it is a slider for intensity. On a previous HP inkjet, it was a slider for darkness.
Once you find it (if your driver has the option) you can save the setting by clicking the Presets button. -
for example: this option is available with jedit editor.
jedit
above cmd always opens a new jedit instance.
jedit -reuseview
above cmd checks if there is a existing jedit instance if yes brings it to focus else opens up a new one.Start your '''Computer''' in safe mode with networking. Then start Firefox.
After a bit, close it. Then open it a few minutes later.
'''[http://encyclopedia2.thefreedictionary.com/Linux+Safe+Mode Starting The Computer In Safe Mode;<br>Free Online Encyclopedia]''' -
How to refer the SQL*Loader command line parameters in the control file
The problem I am trying to resolve is to insert the input file name when SQL*Loader is loading the record from the file. I have multiple files to load and it is nice to associate a record with a particular input file.
Create the control file dynamically (and fill one of the columns with the file name as a constant) before you start SQL*Loader
Another option is to use external tables
Re: Data Loading
Message was edited by:
Jens Petersen -
You can use ldapmodify found in <ServerRoot>/shared/bin
for example
./ldapmodify -h ldaphost -D "cn=directory manager" -w password -f <name of LDIF file>
Here's an example LDIF file
dn: uid=cms,ou=people,o=balius.com,o=Universe
changetype: add
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: inetUser
objectClass: ipUser
objectClass: inetMailUser
objectClass: inetLocalMailRecipient
objectClass: nsManagedPerson
objectClass: userPresenceProfile
cn: Chad M. Stewart
sn: Stewart
initials: CMS
givenName: Chad
pabURI: ldap://host:389/ou=cms,ou=people,o=balius.com,o=Universe,o=pab
mail: [email protected]
mailDeliveryOption: mailbox
mailHost: my.mailhost.com
uid: cms
dataSource: Chad by hand
userPassword: users-password-here
inetUserStatus: active
mailUserStatus: active
mailQuota: -1
on a subsequent search you'd see something like
userpassword: {SHA}S3e+L/K6
Maybe you are looking for
-
Cannot restore ipod shuffle original shows error 1418
I know this is an old shuffle. I was trying to let my grandkids use it. It will not restore or transfer music to it. I have since used a different computer from when I originallused it. Do I need separate software for this shuffle or what.
-
Accent marks not appearing in pdfs
I am in the process of generating Variable Data pdf for an HP Indigo digital press. We are having issues with the German and Spanish language versions because accents, umlauts, and other accent marks are not appearing. Instead we get a placeholder ch
-
How to attach the TERMS & CONDITIONS page
Hi SAP Experts, Could any body help me in SMART FORMS. ========================================== Reqt: I have 2 pages of TERMS & CONDITIONS . I need attach in a smart form of billing invoice. It should come at the end as an attachment. can any body
-
Print quality / resolution for iPhoto books
Hi - I am getting ready to upload my first iPhoto book for printing, and a colleague told me to beware of a potential issue. After searching these forums, and searching Google, I found that people in the past (perhaps prior to iPhoto '08?) have had p
-
Photoshop CS5 consumes a lot of RAM
Hi, While using Adobe Photoshop CS5, I am suffering of RAM loss, it consumes around 2.5 GB of my RAM, while Adobe Illustrator CS5 consumes around 500 MB of RAM. Is this normal or I have to do something to minimize memory usage with Photoshop?