Sudo Command with installation

Hi,
I am trying to install a software called Fullprof suite. Upon downloading, I have to follow the directions listed here:
http://www.ill.eu/sites/fullprof/php/downloads.html
I'm supposed to use the sudo command in terminal, which may lead to data loss. I'm pretty new to this sort of thing, so I would like to confirm that the text I am entering is safe, and only allows installation of the program:
sudo ln -s /Applications/Darwin/openmotif-2.2.3-universal /usr/OpenMotif
I am running on MacBook (2008), 10.5.8.
Any help would be appreciated. I tried running this program on our pc and now that computer doesn't start....

1. Revokes the permissions the first command granted so that nothing else can take advantage of them.
2. Because it's making changes to system-level folders. This is the same reason why most of Apple's software updates require an administrator password.
(77525)

Similar Messages

  • Can't run bash or sudo commands

    I have a Mac Pro with OS X 10.8.2 and also an older iMac running OS X 10.6.8. On neither Mac can I run any bash or sudo commands! I always get command not found.
    Both Macs have fresh installs of OS X, did I forget to install something? Is X11 needed? or Xcode?
    Thanks for any help.

    Back up all data.
    Select
    Shell ▹ New Command
    from the Terminal menu bar. Copy and paste the following line into the text box that opens:
    mkdir disabled_shell_files; mv .profile .bash* $_
    Your old shell initialization and history files will be saved in a directory with the indicated name at the top level of your home directory.

  • Error executing sudo command

    When I try to execute a sudo command I get the following message:
    "sudo: /etc/sudoers is mode 0644, should be 0440
    Segmentation fault"
    What does it mean?
    Thanks for all the help.

    When I try to execute a sudo command I get the following message:
    "sudo: /etc/sudoers is mode 0644, should be 0440
    Segmentation fault"
    What does it mean?
    It means someone has incorrectly modified the /etc/sudoers file, and as a side effect its permissions were changed to an insecure form, so sudo refuses to use the file. It is also possible that the /etc/sudoers file syntax is also invalid, which might also cause the segmentation fault.
    'visudo' should be used to edit the /etc/sudoers file, which would have properly preserved the permissions, as well as verified that the updated /etc/sudoers file contained valid syntax so that sudo would continue to work. See 'man visudo'.
    You now have a problem, in that you can no longer use sudo to fix the permissions.
    You should first try booting your installation DVD. Via the Menu, you can run Disk Utility and run Repair Permissions. Hopefully this will repair the /etc/sudoers file. You could try running Applications -> Utilities -> Disk Utility, however, if it wants to use sudo to elevate its privileges, that would fail, as a broken /etc/sudoers file is still a broken /etc/sudoers file.
    If you have by any chance enabled the 'root' account, you could try logging in as root and fixing the /etc/sudoers file's permissions.
    You should also run visudo, so that the file's syntax is valid.
    I think you can use the Installation DVD to enable the root account. that might be another way to login as root.
    If repair permissions does not work, then maybe you can put your Mac into firewire target mode, mount your Mac's disk on another Mac via firewire, and repair the /Volume/Macintosh HD/etc/sudoers permissions from the working Mac.
    If that failes, the next step is booting your Mac in Single User mode. Search for "Single User Mode" in the forums, and you should find instructions on both booting, as well as how to make the root file system writable so you can change the permissions from single user mode.
    And if that does not work, I think you are left with reinstalling the OS.
    Message was edited by: BobHarris

  • Getting a fatal relocation error while using a sudo command.

    I am getting the following error while trying to execute a sudo command:
    ld.so.1: sudo: fatal: relocation error: file /usr/local/bin/sudo: symbol closefrom: referenced symbol not found
    the sudo version I use is: 1.6.8p9
    the SUNWcsu package that contains the ld.so.1 library is version: 11.8.0,REV=2000.01.08.18.12
    any ideas?

    Just had the same error
    ld.so.1: sudo: fatal: libintl.so.8: open failed: No such file or directory
    Killed
    was solved by adding the Dependances
    libintl-3.4.0-sol10-sparc-local.gz Libintl is used with gettext and is needed by a few programs when libintl in not in /usr/lib - installs in /usr/local/lib. The 3.4.0 package number indicates that this provides /usr/local/lib/libintl.so.3.4.0 (and also the new /usr/local/lib/libintl.so.8.0.2). Dependencies: libiconv and to have /usr/local/lib/libgcc_s.so.1 and /usr/local/lib/libstdc++.so.6, either the libgcc-3.4.6 or gcc-3.4.6 packages.
    http://www.sunfreeware.com/indexsparc10.html

  • -bash: sudo: command not found

         Hello all,
    I have had WAY too many problems with this laptop, and at this point in its miserable little life, I've decided to just wipe the hard drive and start fresh, not caring at all what happens to the files left on there. As previously stated in one of my earlier questions (That was, might I add, never fully answered.), this late 2008 MacBook (aluminum) has a problem where it does not boot up, and just endlessly shows the gray spinning pinwheel. Four months later, that just stops, and now when trying to boot up with my normal startup disk, it brings me right to the Recovery disk and tries to reinstall OS X. I tried, it failed 5 minutes in. So I tried to wipe the hard drive, and it says:  Disk Erase failed with the error: Couldn't unmount disk.   I looked it up and I saw that if I went into the Terminal and typed: sudo diskutil unmountDisk /dev/disk0 , it would unmount the disk. But whenever I type that, it says: -bash: sudo: command not found. I have no idea how to fix this, and I would really like to be able to use my laptop again without giving somebody my money to do it for me.
                                                 Thanks,
                                                      Luke

    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1. You may then open App Store, click on the Purchases icon in the toolbar, and re-download any OS X upgrade you purchased except Mavericks. Since Yosemite has been released the App Store may not let you re-download Mavericks, but it will let you download Yosemite.

  • What is sudo command for? can I undo sudo commands?

    what is sudo command for? can I undo sudo commands?

    Niel wrote:
    If a dialog box appears that asks for your password, ask yourself whether you're doing anything that requires it, such as logging in, using sudo, moving or copying items in some system-level folders, or installing software. Mistyping a command may delete files that should remain intact, or damaging the Mac OS X installation by moving files around or altering permissions on certain components.
    (30169)
    Is there any way that I could know that those problems are occuring>>> i'm referring to "moving files" and altering permissions on certain components?
    and when you say altering permissions? what do you mean by that?
    is there anyway that I can fix it? or buy a certain software for mac that would fix the system problems? like in windows there are Norton system work
    I was wondering I copy and paste the said command to my terminal but it didn't work. Do you know what would happen to my system if I messed up with that command? >>>im referring to this command http://docs.info.apple.com/article.html?artnum=307354
    Message was edited by: Mac Ken

  • Can't install Cold Fusion; pasword invalid? sudo command?

    When I try to install Cold Fusion, the installer states that my password is invalid or I do not have sudo command privleges. What gives? Where can I update this?
    Thanks Ed

    slithery wrote:
    dominicm wrote:
    slithery wrote:
    The --asroot option has been removed from makepkg, which you would know if you searched the forum before posting...
    https://bbs.archlinux.org/viewtopic.php?id=191635
    I googled the error with no relevant results, then I searched the forum to make sure it wasn't solved with no relevant results returned for the search term "makepkg: invalid option '--asroot')". It's ironic that you accused me of not searching when you haven't bothered to search the error message yourself. If you had you would know the search does not return useful results until this post.
    Sorry, I only searched for --asroot which brought up several relevant threads.
    No big deal, but in general you shouldn't post things like "search the forum" as it's rarely helpful, and when it is the thread should probably be closed it those cases anyways...

  • Applescript for running sudo commands in terminal

    I'm a newbie when it comes to Applescript and was wondering if someone could help with a basic request. I need to write a small script to do the following:
    1. Launch terminal
    2. Run the 'Sudo -s' command
    3. Enter the administrator password (in plain text)
    and then
    4. run some sudo commands like "sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add administrator"
    I actually WANT the administrator password to be in the script in plain text even though I understand the security risks (I will literally be the only person to ever see the script). I've trawled forums all over but can't seem to find what I am looking for and cannot get it working by patching together the various commands I have found. Thanks in advance for any help you can give!
    Sean

    I've included two examples.  The preferred way & the hacker way.
    with administrator
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run
    This version has an inline password.
    Notice the echo 'password' |
    The single quotes are no accident.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "echo 'password' | sudo ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • Not used my G5 Powermac (late 2004) for ages. Only boots in with Installation disk, but colour dots on white screen and message comes up to reboot machine. Nothing happens.

    Not used my G5 Powermac (late 2004) for  about 2 years. Was going to set it up for the lads to do school work.
    However it only boots in with Installation disk, but colour dots on white screen and message comes up to reboot machine. However nothing happens apart from me keep trying. Also the numerous fans get louder and louder and louder.....
    Any ideas folks

    Can you please provide details on the exact model?
    For a start, the PRAM battery is likely dead.  PRAM tells the computer which drive to start with, other basic information.  Still, you can usually get the computer to start, though bad PRAM is unpredictable and could be stopping that.
    Some computer models use software to control cooling fans.  If there's no software commands they automatically go into high speed to prevent overheating.  Your software obviously isn't loading, so runaway fans.

  • HT4103 my sudo command is not working

    Hello, when i type sudo it show bellow message
    Arifur-Rahmans-MacBook-Pro:~ arif$ sudo
    -bash: sudo: command not found
    when i type ls
    Arifur-Rahmans-MacBook-Pro:~ arif$ ls
    -bash: ls: command not found
    Please help me i am not able to work anythings.

    When I said type
    echo $PATH
    I did mean PATH in ALL CAPITALS.  When working on the Unix side of Mac OS X, as weill all Unix systems upper and lower case do matter.
    But from the error message, I can see that somewhere along the way, mongodb (a database package), and the modification of PATH was done incorrectly.
    If you installed MongoDB, AND if the instructions had to modify your .profile (or perhaps .bash_profile), then either their instructions were wrong, or you missed a step, which explains why you can not enter commands are not found
    PATH is a Unix environment variable that contains a colon separate list of directories where the shell will look for commands when you enter them at the command prompt.
    So your choices are delete the offending .profile (or perhaps .bash_profile) and forget about MongoDB, or if you do need MongoDB, then fix your .profile (or .bash_profile) so it has a properly formed PATH environment variable.
    Fixing this would look like
    /bin/ls -a         # this will show you all the files starting with a period (dot) as in .profile or .bash_profile
    /usr/bin/nano .profile
    now in this text editor use the arrow keys, and the delete key to find and delete offending text, then type in the corrected text.  Nano gives you a menu at the botton of the editor with additional commands.  ^O (Control-O) writes out any changes you made.  ^X (Control-X) exits from Nano.
    You want your PATH variable to look like (REMEMBER UPPER/lowercase is IMPORTANT)  ALSO spaces or nospaces are important.
    export PATH="/usr/local/mongodb-osx-x86_64-1.8.2:$PATH"
    NOTICE there is a colon between the MongoDB directory path, and the $PATH.  The $PATH will append your existing PATH to the end of the new PATH environment variable you are setting up.  The entire PATH string is enclosed in double quotes.  ALSO NOTICE, there is only 1 space between export and PATH.  No spaces anywhere else in the line.
    Again, I used .profile as the most likely file name, HOWEVER, your shell will look for 1 of 3 different initialization files starting with
    .bash_profile
    .bash_login
    .profile
    If will use the first file it finds in the above order and stop looking as soon as it finds a match.  So it is important that you edit the correct file.  The
    /bin/ls -a
    command will tell you want leading period filenames exist in your home directory
    I'll also give you one word of caution.  When playing on the Unix side of Mac OS X, and following instructions you do not understand, it is generally wise to have a very recent full backup of your system.  There are some commands that can make your system unusable should you enter them blindly.
    Message was edited by: BobHarris

  • Sudo Command in Bash Script

    So I created a simple bash script to run on login.....
    one of the commands is the following:
    sudo "something something something"....
    One thing I haven't learned in my years of Unix is how do you get a bash script to run a sudo command without having to enter a password?  I know this is trival, but just a quick 'this is how you do it' would be cool.
    Thanks ahead of time on this really dumb question.

    There's a few ways to do this.  Here's two (pick the method you like):
    Method 1: Using "askpass".
    With this you always do sudo -A command.  The -A argument tells sudo to execute a command that echos the password to stdout.  That command is something you write.  For this explaination let's call the command pw and stick it /usr/local/bin.  So it's full pathname would be /usr/local/bin/pw.
    sudo -A can get the pathname to pw a number of ways.
    1. From the sudoers file.
    Use visudo to add the following line to the sudoers file:
    Defaults:ALL    askpass=/usr/local/bin/pw
    2. Using the SUDO_ASKPASS environment variable.
    export SUDO_ASKPASS=/usr/local/bin/pw
    This might work too (assuming SUDO_ASKPASS has been previously exported):
    SUDO_ASKPASS=/usr/local/bin/pw sudo -A command
    Method 2: Have sudo read the password from stdin
    echo -n password | sudo -S command
    The -S option tells sudo to read the password from stdin so echo pipes it in (without the ending newline).
    The only relatively secure scheme of these two methods is the askpass (-A) method.  At least with that method you have a chance of encrypting/hiding your password down in the command that echoes it to stdout.  The -S method would contain your password explicitly in a script somewhere unless you make other provisions to encrypt/hide it with that technique.

  • Command-line installation issue : InstallMediaPath parameter?

    Hello,
    I have an unsuccessful command-line installation of SQL Express 2008 R2. I need to do it to install a new local instance so that a Winforms application could use it (I'm packaging the app thus installing pre-requisites through my installer).
    I hit "InstallMediaPath" blank parameter issue, if I look into "C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Detail.txt".
    System.ArgumentNullException: Value cannot be null.
    2014-09-08 09:40:17 Slp: Parameter name: InstallMediaPath
    I read on the forums that this error can solve by uncompressing before running setup, so here are my two commands. I still have the issue.
    "Resources\SQLEXPR_x86_ENU.exe" /Q /X:"%TEMP%\SESetup"
    "%TEMP%\SESetup\Setup.exe" /ACTION=Install /QS /IAcceptSQLServerLicenseTerms=True /Features=SQL,Tools /InstanceName=MSSQLSAFETIFY /SQLSVCACCOUNT=\"NT AUTHORITY\\NETWORK SERVICE" /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD="somePassword"
    Earlier in log file I see a correct value for InstallMediaPath so am clueless.
    2014-09-08 10:00:51 Slp: Setting: SQLSVCACCOUNT
    2014-09-08 10:00:51 Slp: Value specified: "NT,AUTHORITY\\NETWORK,SERVICE /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD=somePasssword /ACTION=RUNRULES /RULES=GlobalRules /WORKFLOW=Install /TIMESTAMP=20140908_100041 /LOGMARKER=_GlobalRules /MEDIASOURCE=C:\Users\bpo\AppData\Local\Temp\2\SESetup\ /INSTALLMEDIAPATH=C:\Users\bpo\AppData\Local\Temp\2\SESetup\x86\setup\ /ENU /MEDIALAYOUT=Core
    2014-09-08 10:00:51 Slp: New setting source: CommandLine; previous setting source: Default
    2014-09-08 10:00:51 Slp: ----------------------------------------
    2014-09-08 10:00:51 Slp: Completed Action: ProcessFeatureCommandLineArguments, returned True
    Thank you so much for helping. Do I have some incorrect parameters?

    I finally found a solution, using a Configuration.ini file. Blog entry dealing with MS SQL unattended setup
    I suceeded with a configuration file, adding though two parameters to file, IAcceptSQLServerLicenseTerms="True" and SAPWD="passwordOfMyChoice".
    With command line only, I had "path2" parameter null value error, once I added /InstallMediaPath undocumented (?) option to my initial command line switches...

  • Command line installation - exit code 32 error

    We are installing Adobe Acrobat 7.0 via command line installation in our network. When the installation is completed the clients reboot and our software-delivery-server quits with an error ("Exit code 32 indicates possible error"). To install the Adobe Updates we have to renew the complete installation.
    I think the installation routine does not send an "installation complete" message to the server, but that is just an idea. The exit code 32 error means nothing to me. Does anyone have an idea what I can do ?
    We are using a W2003 server, CA Unicenter Software Delivery Software and WinXP/SP2 as clients.

    We are installing Adobe Acrobat 7.0 via command line installation in our network. When the installation is completed the clients reboot and our software-delivery-server quits with an error ("Exit code 32 indicates possible error"). To install the Adobe Updates we have to renew the complete installation.
    I think the installation routine does not send an "installation complete" message to the server, but that is just an idea. The exit code 32 error means nothing to me. Does anyone have an idea what I can do ?
    We are using a W2003 server, CA Unicenter Software Delivery Software and WinXP/SP2 as clients.

  • How to undo a sudo command?

    I used the following sudo command " sudo rm -rf ~/ .Trash/"  because my trash can wouldn't empty.  Unfortunately this deleted everything on my computer.  Any way to undo this command?  Please help????

    Linc Davis wrote:
    I'm not sure what you mean, but if you gave those instructions, please don't do it again. There is absolutely no reason ever to run such a command, even if the syntax were correct. Also, make sure you test any advice you give on this site on your own computer, as required by the terms of use.
    I have given that command, but with the proper syntax, any number of times, with absoutely no adverse affects. When I do give that command, or any command with rm, I take great pains to emphasize that it absolutely must be copied and pasted in. And I triple and quadruple check the syntax before I post it. And then I make sure that the Jive formating hasn't screwed with it in any way after posting. Given certain situations, it can be very useful.

  • Trying to automate a Terminal command with a password

    Hi,
    I'm a long time Mac user, but not a Terminal expert.
    I've come upon a simple hack that enables me to run two instances of Skype simultaneously. This enables me to use it with two different user names.
    The idea is to create another user on the computer and run the other Skype like this:
    sudo -u user "/Applications/Skype.app/Contents/MacOS/Skype"
    In order to simplify this for daily use, I'd like to create a small applet which runs this terminal command.
    Trying to do so with Automator's +Run Shell Script+ fails with an execution error, probably due to the fact that this sudo command requires an admin password.
    Is there any way to accomplish this?
    Thanks

    hmm... I'm afraid that didn't do the trick. It now opens the Terminal window and launches Skype with the message "another copy of Skype is already running".
    Maybe I should add another step to workflow instead?
    Thanks again, I really appreciate your help.
    Guy

Maybe you are looking for

  • Tax on cash discount

    Hello All, Here is the situation: PO for 10 lb @ $10/lb Tax 10% Cash Discount - $ 10 if paid within 10 days. GR for 10 lb Invoice for 10 lb @ $10 = 100 (invoice posted as gross invoice) Tax - $ 10 Total – $ 110 At Payment Vendor bank gets $ 99 ($100-

  • Blurred Text in PDF Form

    Created a form by converting a pre-existing PDF to a form-fillable one using Acrobat Pro. The form-fillable PDF was created fine. In editing the form, I changed the text fields to allow multiple lines of text. Saved the form as a new PDF filename Whe

  • Help ------ Property node in Array

    How the properties of each element of the array are managed? I cannot find anything that works well ! Thank you in advance. Umberto.

  • PowerPivot 2013 | Drill to Details returns all rows

    When double-clicking on a measure, or a value within a powerpivot pivot table, the drill to details sheet returns all the rows in the dataset.  Is this normal behavior? Is there a workaround for this? Thank you!

  • Why does system exec cause a memory leak to occur?

    Sorry if this has been posted before, but I can't quite figure out why this VI is causing a gigantic memory leak (losing nearly 500K of memory a second). It's a simple system exec call, and I even trivialized everything in order to try and discover t