Sudo: user: command not found

Hi there,
I'm struggling with this sudo problem.
All i've been doing with terminal was logging into another account on my iMac and running an application, so i write sudo disk (disk is username for the other account)
then i enter password and path to the application
i've been doing this for past 3-4 month every day, bet since yesterday after entering pasword i get this error - sudo: user: command not found
Any help here would be appreciated!
Thank you

which sudo returns: /usr/bin/sudo
i used First Aid to verify disk permissions 3 times.. repaired them, but it keeps giving me the same errors every time i hit Verify Disk Permissions..
List of errors:
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jconsole.ja r", should be lrwxr-xr-x , they are lrw-r--r-- .
User differs on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib", should be 0, user is 95.
User differs on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries", should be 0, user is 95.
Permissions differ on "System/Library/Java/Support/Deploy.bundle/Contents/Home/lib/security/cacerts", should be lrwxr-xr-x , they are lrw-r--r-- .
Permissions differ on "System/Library/Java/Support/Deploy.bundle/Contents/Resources/Java/deploy.jar", should be lrwxr-xr-x , they are lrw-r--r-- .
Permissions differ on "System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPluginCocoa.b undle/Contents/Resources/Java/deploy.jar", should be lrwxr-xr-x , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jconsole.jar ", should be -rw-r--r-- , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Home/lib/security/cacerts", should be -rw-r--r-- , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Resources/Java/deploy.jar", should be -rw-r--r-- , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Resources/Java/libdeploy.jnilib", should be -rwxr-xr-x , they are lrwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Resources/JavaPluginCocoa.bundle/Contents/Resources/Java/deploy.jar", should be lrwxr-xr-x , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Resources/JavaPlugin Cocoa.bundle/Contents/Resources/Java/deploy.jar", should be -rw-r--r-- , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Resources/JavaPlugin Cocoa.bundle/Contents/Resources/Java/libdeploy.jnilib", should be -rwxr-xr-x , they are lrwxr-xr-x .
Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
Permissions verification complete
Are these pretty bad errors? Are these causing sudo not to work?

Similar Messages

  • [SOLVED] sudo and "command not found" problems

    Ok, the problem I've got is this: sudo has suddenly started acting real strange. It can't find any programs. For example, if i type
    sudo echo
    It just goes
    sudo: echo: command not found
    And another problem I've got, is that as a regular user, it can't find programs in /sbin, or other "exotic" places. For example it can't find firefox, because it's not in /usr/bin or /bin, but in /opt/mozilla/bin.
    Please, help me!
    Last edited by mrpedroxx (2008-06-14 13:23:49)

    sudo -V outputs this
    Sudo version 1.6.9p15
    $PATH outputs
    bash: /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.: No such file or directory
    pacman -Q firefox outputs
    firefox 2.0.0.7-1
    Yeah, maybe I should update it anyway
    And /var/log/errors.log does contain stuff about hard disks, but it's just me mounting my iPod and the Windows partition on my hd

  • HT5627 when I copy it in the terminal, it tells me : " sudo: serveradmin: command not found "

    what should I do ? What did I do wrong ?

    This error?
    $ sudo serveradmin
    Password:
    sudo: serveradmin: command not found
    $
    That usually means you're not logged in on an OS X Server configuration — which is separate from having the Server.app tool loaded onto the system, when you're doing remote management —  or as Linc Davis mentions, that the PATH setting is incorrect.  The correct PATH should look something like this:
    $ sudo echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/S erverRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin
    $
    I wouldn't expect PATH to be incorrect on the root user on the server, barring some site-local tweaks to that context.  But if there have been changes to PATH, then I'd add both bin and sbin within Server.app into the path.  (This change should not be necessary, though.  The PATH should have the correct settings within Server.app by default.)
    If you're looking to use serveradmin on a remote server, then the usual approach is to enable and ssh into the target OS X Server system (ssh [email protected]), or to use ARD or related to push commands, or to use screen sharing and a remote desktop.   ssh is by far the lightest and fastest of these options.  
    AFAIK, the command-line serveradmin tool doesn't do remote management.  There's no obvious way provided to specify the identity of a target server.

  • Installing mysql:sudo launchctl: command not found

    After several days of reading about:
    Installation of MySQL
    Enabling apache server
    And getting phpMyAdmin up
    I have run into an obstacle.  See error message below **
    I am Running:
    'Mountain lion' , 'Mac OS X 10.8.3'
    I have downloaded:
    MySQL version. Mac OS X 10.7. (X86, 64-bit), DMG Archive.
    Within this forum I found a very brief but helpful 'user tip' post.
    Link1.
    https://discussions.apple.com/docs/DOC-3082
    Where this sentence lead me to believe I could use the version listed above.
    There is NO version for 10.8
    " Download MySQL from a local mirror. You want the Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive. At the time of writing this User Tip, the current version is 5.5.34. By the time you read this, there may be a newer version to use instead. Open the archive mysql-5.5.34-osx10.6-x86_64.dmg. "
    Following the instructions on link1, and all went well until
    I am getting this error message when I type the following command at the terminal prompt:
    **Error message
    -bash: launchctl: command not found.
    1. I cd - changed directories all the way back up the file structure to type the  command
    to see if it needed to be run someplace special but the same error came up.
    2. I searched here on this forum and on the web.
    3. I went back and checked over every step and everything that i typed.
    4. I ended up typing the instructions below by hand
    because somewhere I read that a copy/paste may insert invisible characters.
    Excerpt from link1.
    sudo vi /Library/LaunchDaemons/com.mysql.mysql.plist
    Use the following content:
    <plist version="1.0">
      <dict>
        <key>KeepAlive</key>
        <true/>
        <key>Label</key>
        <string>com.mysql.mysqld</string>
        <key>ProgramArguments</key>
        <array>
        <string>/usr/local/mysql/bin/mysqld_safe</string>
        <string>--user=mysql</string>
        </array>
      </dict>
    </plist>
    Can someone please explain what I am missing ?
    Why is this command
    -bash: launchctl: command not found.
    That is launch c t lowercase L not number 1
    An added note. 
    The following link also had a very nice set of instructions but unlike link1, this link uses the
    'Preference pane' and 'startup item' which link1 discourages because it causes problems down the road.
    I would rather use the command line and do not want to give up on this method.
    Link2.
    http://coolestguidesontheplanet.com/install-configure-apache-mysql-php-phpmyadmi n-osx-10-8-mountain-lion/
    Now that I am going head strong with this project, I hope that my issue can be resolved quickly with this community
    so I don't loose my momentum.
    Thanks a lot.

    1. You are really a nice person.  Thank you.  I really want to understand these file structures.  Sorry my posts are lengthy.
    Thank you for taking the time to look at the original User Tip.
    2. I hope that you do not end this thread when I tell you that I actually have gotten php running.  These concepts are still very important to me.
    I am not up to the point where I am using mySQL so that may end up another troubleshooting problem.
    3. Last week and this I have been exploring my files with terminal by cd-ing  up and down; using sudo nano to open the file to see what is in there.
    I have included some things that may be useful since you have a much better idea about how these paths work.
    4. If you have a chance - Can you elaborate.  I understand a PATH.  What to you mean when you say PATH environmental variable.
    I think of a variable in the computer programmer syntax sense.
    5. I also cannot find a .profile file anywhere. See the below.... where I found something....
    4. Searching like crazy for the load executable.  I cannot find it yet.  I thought that it might be with the  other commands in /bin
    below are some exploratory commands I am running and things I find of interest.
    I use ls -la to display 'all' files. I use -la to list hidden files. those that start with a dotFileName.
    /user/local/mysql/bin
    there is NO load executable here.
    I looked around for 'load'
    macBookPro: /shortname$  ls
    cd bin
    ls -la
    lots of commands:  launchctl  mkdir  pwd  echo ....   i thought that 'load' should live here.
    cd etc
    ls -la
    has:apache2  my.conf  named.conf  passwd paths php.ini sudoes nanorc
    apache2 empty - title: new buffer
    sudoers  i have questions about this but not a priority now.
    nanorc
    php.ini
    my.conf
    name.conf
    passwd
    paths
    sudo nano paths
    /usr/bin
    /bin
    /usr/sbin
    /sbin
    /usr/local/bin
    I did not find the .profile file. what I have found is the below which references the .profile for sh(1)
    I am unable to interpret the below file/code - well maybe a little.
    cd etc
    ls -la 
    sudo nano profile
    # System-wide .profile for sh(1)
    if [ -x /usr/libexec/path_helper ]; then
            eval `/usr/libexec/path_helper -s`
    fi
    if [ "${BASH-no}" != "no" ]; then
            [ -r /etc/bashrc ] && . /etc/bashrc
    fi
    Here is
    /usr/sbin
    sudo nano apachectl
    the following is the code in apachectl
    I see 'run launchctl load ....'
    LAUNCHCTL="/bin/launchctl"
    LAUNCHD_JOB="/System/Library/LaunchDaemons/org.apache.httpd.plist"
    run_launchctl() {
        if [ $UID != 0 ]; then
            echo This operation requires root.
            exit 1
        fi
        $LAUNCHCTL $@
    # Set the maximum number of file descriptors allowed per child process.
    if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then
        $ULIMIT_MAX_FILES
    fi
    ERROR=0
    if [ "x$ARGV" = "x" ] ; then
        ARGV="-h"
    fi
    case $ARGV in
    start)
        run_launchctl load -w $LAUNCHD_JOB
        ERROR=$?
    stop|graceful-stop)
        run_launchctl unload -w $LAUNCHD_JOB
        ERROR=$?
    restart|graceful)
        run_launchctl unload -w $LAUNCHD_JOB 2> /dev/null
        run_launchctl load -w $LAUNCHD_JOB
        ERROR=$?
    startssl|sslstart|start-SSL)
        echo The startssl option is no longer supported.
        echo Please edit httpd.conf to include the SSL configuration settings
        echo and then use "apachectl start".
        ERROR=2
    configtest)
        $HTTPD -t
        ERROR=$?
    status|fullstatus)
        echo Go to $STATUSURL in the web browser of your choice.
        echo Note that mod_status must be enabled for this to work.
        $HTTPD $ARGV
        ERROR=$?
    esac
    exit $ERROR
    Thanks again for helping me to understand these file structure.
    There is no preview option so i hope this posts well.

  • [solved] yaourt messed up pacman - "pacman: command not found"

    Hi,
    i got some "xxxxxx not found on AUR" messages after doing a "yaourt -Syu --aur" so I began to remove them with "yaourt -Rs xxxxxxx".
    When there was only one left "aqpm2" this is what happened:
    [studio@myhost ~]$ yaourt -Rs aqpm2
    verificando dependências...
    Remover (2): aqpm2-20100615-2  qjson-0.7.1-2
    Tamanho total dos pacotes a serem removidos:   2,93 MB
    Deseja remover estes pacotes? [S/n] s
    (1/2) removendo aqpm2                                                                                                     [##########################################################################] 100%
    (2/2) removendo qjson                                                                                                     [##########################################################################] 100%
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    now pacman is broken:
    [studio@myhost ~]$ pacman
    bash: pacman: comando não encontrado
    [studio@myhost ~]$ yaourt -Syu --aur
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    You are not allowed to launch /usr/bin/pacman with sudo
    Please enter root password
    Senha:
    bash: /usr/bin/pacman: Arquivo ou diretório não encontrado
    ==> WARNING: problem in pkgbuild.sh library
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    ==> Searching for new version on AUR
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    Unable to open file: /etc/pacman.conf
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    [studio@myhost ~]$ sudo pacman -Syu
    sudo: pacman: command not found
    please help
    Last edited by capoeira (2010-10-16 14:33:39)

    capoeira wrote:
    can I use pacman-static from this repro?
    I'm afraid to break system even more
    http://repo.archmobile.org/x86_64/archmobile/
    OK, that gave me a segfault, so
    I downloaded the package and copied the folders to root.
    no pacman works but gaves me this errors afterwards:
    pacman-3.4.1-1: description file is missing
    pacman-3.4.1-1: dependency file is missing
    pacman-3.4.1-1: file list is missing
    how do I solve this?
    BTW: should I make a bug-report??
    EDIT: any package I try to instal I get this error:
    erro: não foi possível abrir o arquivo /var/lib/pacman/local/pacman-3.4.1-1/depends: Arquivo ou diretório não encontrado
    (it's in portuguese but i think its understandable)
    Last edited by capoeira (2010-10-15 22:08:36)

  • [SOLVED]Shutdown Command Not Found?

    Don't worry. I'm not about to ask why updating my system didn't work and how I can fix it. This is about something that happened after I updated successfully. So, like I said, I ran through the commands just fine. Updating works. Then, I go to reboot running the command: sudo reboot. I get the response: sudo: reboot: command not found. Ok fine. So I run sudo shutdown -r now. Then I get this: sudo: shutdown: command not found. Same with shutdown -h now. I don't see why the update would do this but it's the only thing I can think of since it's the only thing I've done since shutdown stopped working.
    EDIT: I've looked through /bin /sbin /usr/bin /usr/sbin but the shutdown command is not there. So that's obviously the problem. I'm still not sure what to do about it. I figure it has something to do with the recent update and that /bin /sbin and /usr/sbin are now all symlinked.
    Last edited by xworld (2013-06-05 00:10:38)

    The Great Arch Wiki has the answer: https://wiki.archlinux.org/index.php/FA … is_X_in.3F

  • [SOLVED]mkinitcpio command not found!??

    Hello all,
    I receive the following when trying to rebuild the stock kernel:
    [taylor-unix@Legion Desktop]$ sudo mkinitcpio -p kernel26
    sudo: mkinitcpio: command not found
    [taylor-unix@Legion Desktop]$
    The same error occurs even after the re-installation of 'mkinitcpio'.
    I've had the same problem with 'hwdetect', regardless of whether I've reinstalled it.
    I seem to have commands that do not work on this system, like 'shutdown' for example.. 'shutdown: command not found'. Perhaps I've missed installing a crucial package?
    I need help..
    My sincerest thanks in advance.
    Last edited by edward.taylor89 (2010-11-10 17:39:46)

    Here as follows:
    mkinitcpio /etc/
    mkinitcpio /etc/mkinitcpio.conf
    mkinitcpio /etc/mkinitcpio.d/
    mkinitcpio /etc/mkinitcpio.d/example.preset
    mkinitcpio /lib/
    mkinitcpio /lib/initcpio/
    mkinitcpio /lib/initcpio/functions
    mkinitcpio /lib/initcpio/hooks/
    mkinitcpio /lib/initcpio/hooks/btrfs
    mkinitcpio /lib/initcpio/hooks/consolefont
    mkinitcpio /lib/initcpio/hooks/dmesg
    mkinitcpio /lib/initcpio/hooks/keymap
    mkinitcpio /lib/initcpio/hooks/memdisk
    mkinitcpio /lib/initcpio/hooks/net
    mkinitcpio /lib/initcpio/hooks/resume
    mkinitcpio /lib/initcpio/hooks/sleep
    mkinitcpio /lib/initcpio/hooks/udev
    mkinitcpio /lib/initcpio/init
    mkinitcpio /lib/initcpio/init_functions
    mkinitcpio /lib/initcpio/install/
    mkinitcpio /lib/initcpio/install/autodetect
    mkinitcpio /lib/initcpio/install/base
    mkinitcpio /lib/initcpio/install/btrfs
    mkinitcpio /lib/initcpio/install/consolefont
    mkinitcpio /lib/initcpio/install/dmesg
    mkinitcpio /lib/initcpio/install/dsdt
    mkinitcpio /lib/initcpio/install/filesystems
    mkinitcpio /lib/initcpio/install/fw
    mkinitcpio /lib/initcpio/install/ide
    mkinitcpio /lib/initcpio/install/keymap
    mkinitcpio /lib/initcpio/install/memdisk
    mkinitcpio /lib/initcpio/install/net
    mkinitcpio /lib/initcpio/install/pata
    mkinitcpio /lib/initcpio/install/pcmcia
    mkinitcpio /lib/initcpio/install/resume
    mkinitcpio /lib/initcpio/install/sata
    mkinitcpio /lib/initcpio/install/scsi
    mkinitcpio /lib/initcpio/install/sleep
    mkinitcpio /lib/initcpio/install/udev
    mkinitcpio /lib/initcpio/install/usb
    mkinitcpio /lib/initcpio/install/usbinput
    mkinitcpio /lib/initcpio/udev/
    mkinitcpio /lib/initcpio/udev/01-memdisk.rules
    mkinitcpio /lib/initcpio/udev/load-modules.sh
    mkinitcpio /sbin/
    mkinitcpio /sbin/mkinitcpio
    mkinitcpio /usr/
    mkinitcpio /usr/share/
    mkinitcpio /usr/share/man/
    mkinitcpio /usr/share/man/man5/
    mkinitcpio /usr/share/man/man5/mkinitcpio.5.gz

  • I am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found

    i am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found.

    "command not found" means ... there is no such thing.
    Has the .rpm been installed?
    http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#XEINL122

  • Single user mode . using tail -f (command not found)

    Have an empty computer with no systems disk as the installation CD start up  will not go past the grey screen with the rotating logo before the panic crash page comes up and tells me to restart the computer.
    Trying to boot into single user mode and then use the command   tail -f  to see contents of some of the logs... BUT I get the reply  tail command not found  ????

    If the hard drive is empty, then you can only boot from the CD. Regardless of whether or not it has "tail," it won't do you any good. There are no logs.

  • When i try to boot usb yosemite , i have this message (sudo: /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia: command not found)

    when i try to boot usb yosemite , i have this message (sudo: /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia: command not found)

    You are getting a kernel panic because you are trying to boot the computer with a Tiger DVD. That model requires 10.6.3 - Snow Leopard. You can purchase replacement discs from Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Apple - Support - Contact Apple Support.
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    It appears that you may not have a properly installed OS X system.
    You must be connected to the Internet to reinstall OS X.
    In the menu bar, choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    Select “Disk Utility,” and then click Continue.
    Select your startup disk from the list on the left, and then Repair Disk.
    After disk is repaired, select Reinstall OS X, then click Continue.
    Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk

  • -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.

  • Sudo: command not found

    OK, I got Jaguar installed and all updated on my trusty Wallstreet. the first time I installed it, something got messed up, and the desktop would not show up. So, I reinstalled, with a minmial install, then added in the BSD subsystem. I thought everything was fine, except the terminal would not display "welcome to Darwin!" when opened, instead, all I get is bash-2.05a$ when it starts up.
    So, when trying to run some shell scripts (to uninstall something), I typed in sudo and dragged the script to the terminal window, and pressed enter. all I got was: Sudo: command not found. So, I tried the old standby, su. it asked for my password (yes, I am running this from an admin account), and all it said was su: sorry. I know I am typing in my password correctly.
    the next step was to see where sudo is located, so i typed in
    which sudo
    and all I got was
    no sudo in /bin /sbin /usr/bin /usr/sbin
    so, from the looks of it, sudo was never installed. How am I supposed to get this back? reinstall the BSD subsystem, or is there some Quick and Dirty(tm) way to get it back?
    I am not afraid to play around in the terminal, as I am a Linux/unix junkie.
    thanks.
    -digital

    It's fixed. it was just a bad copy. I got another one, and now when I launch the terminal, it says
    Last login: Fri Mar 2 19:53:49 on ttyp1
    Welcome to Darwin!
    [Leo-Titus-LeBron-Vs-Computer:~] leolebron%
    and when I type sudo, it says:
    usage: sudo -V | -h | -L | -l | -v | -k | -K | [-H] [-P] [-S] [-b] [-p prompt]
    [-u username/#uid] -s | <command>
    So, it all works. I knew something was different, as right after running the setup assistant, it ran software update, which the other copy did not do.
    thanks for all the input.
    -digital

  • Compile smartmontools pkg from terminal: command not found

    hi there!
    when i comiple tar.gz packages i usally install it by this way:
      cd smartmontools-6.0
      ./configure
      make
      sudo make install
    everythink ok but when i prompt:
    smartctl /dev/disk1s2
    i see the error: command not found
    whats wrong? i googled it up and it seems that the command isnt in the system path but cant find to fix it!
    is a smartctl specific problem or after compiling/install am i missing something?
    thanks
    Enrico
    (osx: 10.8.2)

    Open Source installers DO NOT mess with individual user shell initialization scripts.  Open Source project may be installed on single user systems, or multi-user systems so to update every possible user's shell initialization files becomes a nightmare.   For example which accounts should be updated, and which are daemon accounts that should be left along.  Which shell does the user of each account prefer to use?  And for some shells, there are multiple different shell initialzation files, so which one does the shell initialzation file select.  And if the user already has a PATH environment variable in a shell initializaton file that gets executed AFTER the file the installer choose (.bash_profile vs .bashrc), then all the installers work would be for nothing, and worse confuse the user. And the user already has the directory in PATH, but they are not logged in, does the installer parse all the other user's shell initialzation files to figure out if that user does not need an update PATH, or does it blindly add yet another export PATH to one of the shell initialization files?
    Open Source installers worry about the getting the app built and installed.  It leaves the user's personal files alone, for very good reasons :-)

  • [solved] qdbus: command not found = Netbeans can't connect to KWallet

    I had a problem with Netbeans using its fallback keyring instead of KWallet.
    My research showed that this happened because Netbeans wasn't able to use qdbus
    exception thrown while invoking the command "[qdbus, org.kde.kwalletd, /modules/kwalletd, org.kde.KWallet.isEnabled]"
    I tried to run qdbus with
    qdbus org.kde.kwin /KWin supportInformation
    Same outcome; qdbus: command not found.
    Searching for qdbus, I found it in /usr/lib/qt4/bin which obviously isn't part of $PATH.
    I "solved" the issue by creating a softlink in /usr/bin/
    cd /usr/bin && sudo ln -s /usr/lib/qt4/bin/qdbus qdbus
    It works, both the KWin command as well as Netbean's KWallet integration, but is that how it should be done?
    Haven't I rather a package missing, like qt5 or something?
    Or is my standard "throw softlinks at the problem"-procedure alright here?
    Last edited by Caldazar (2014-01-25 20:55:02)

    Thanks! That's better although it doesn't work out of the box either.
    qtchooser apparently sends the applications to '/usr/lib/qt/bin/qdbus' which doesn't exist, Arch uses /usr/lib/qt4' instead
    qdbus: could not exec '/usr/lib/qt/bin/qdbus': No such file or directory
    So I had to link those too.
    sudo ln -s /usr/lib/qt4 /usr/lib/qt
    I don't know whether that's a problem with qtchooser or rather with some of my environment variables being wrong.
    But anyways, linking the directories 'qt' to 'qt4' makes a whole lot more sense to me than micromanaging the paths of single binaries or libraries.
    P.S. @ChemBro
    Yes, using qdbus-qt4 seems to work with commands I have control over but telling applications like Netbeans to use that is a different beast, at least from a user-perspective.
    Maybe the packagers can do something about that, but I don't know.
    Last edited by Caldazar (2014-01-21 15:03:39)

Maybe you are looking for

  • How to populate values in to drop down by index

    Hi in my application  i have dropdownby index with label State.In that dropdown i need to populate all the states of our country like..Tamilnadu,andhraprdesh,Gujrath,Maharastra,Delhi....,and by default it should be populated with Select State ,can u

  • Where to get 1.4.2._04 JVM?

    Sun had a maintainence release 1.4.2._04 on March 10, 2004. However, the official download site for 1.4 J2SE (http://java.sun.com/j2se/1.4.2/download.html) still points to the previous version 1.4.2_03. What's more confusing is that, when I did a goo

  • I get the message "too many download attempts: 5. You were allowed to download only 5 times." I kept stopping and starting as I had very slow download. What do I do now?

    How do I get the attempts back? Additionally i purchased Photoshop Elements 11 in 2012. I had a hard drive replaced and need to reload but message says "It is too late to download this file. You were allowed to download within 30 days"

  • Junos pulse on a macbook air?

    I found Junos Pulse in the app store, but that doesn't work for the macbook air.  alternatively i have visited the juniper network website, but downloads require extensive registration and from what i can tell some type of contract for access.  am i

  • SM30 Autorization

    Dear All I have created a view of Z name space table using SE54. Now I want that users can edit only that Z Table created by me. But to access the view user needs authorization of SM30 which also opens other tables for users . How authorization can b