My sudo command doesnt work.

hello everyone i am new to terminal and when i write sudo /sbin/service ssh start  at first it looks as if working by asking my password but after it tells me that command not found so if you could help me throught it would be perfect.
thanks.

If it asks for your password, sudo is working. The problem is it cannot find the /sbin/service command because it doesn't exist.
ssh is in /usr/bin and it normally doesn't need sudo.
My guess would be you are trying to start sshd, which can easily be done by enabling Remote Login in Sharing System Preferences.

Similar Messages

  • My MacBook Pro os 10.6.8 find command doesnt work

    My MacBook Pro os 10.6.8 find command doesnt work.  Someone mentioned indexing the hard drive but I dont know how.  Any help would be appreciated

    Importing photos and videos to computer
    http://support.apple.com/kb/ht4083

  • Changing Permission when sudo cmd doesnt work

    This is what the permission says:
    " d-wx-wx--- 3 Spitfir3x admin 102 15 Feb 16:13 /Library/Folder"
    This is what happens when I use the sudo command in terminal:
    "unknown-00-23-12-27-ef-32:~ Spitfir3x$ sudo chmod 775 /Library/Folder
    Password:
    chmod: Unable to change file mode on /Library/Folder: Operation not permitted"
    I tried it the regular way to, and used disk utility to try to fix permissions, but nothing worked and I can't gain access to the file.
    Help

    Post to the Unix forum under OS X Technologies.

  • Sudo command not working in terminal

    When I was trying to perform a action in terminal it was saying "permission denied". When I tried it with the sudo command it was showing the following error.
    Can anyone please help me out in resolving this error.
    Thanks & Regards,
    Teja.

    Hi,
    Thanks for the response. I have tried the procedure suggested by you. But I was struck up with this issue. "repair disk permissions" option is disabled. So can you help me out in finding a solution.
    Thanks & Regards,
    Teja

  • Host function plus sudo command not working

    Hi,
    For normal command such as ls, it works.
    But when I run the following
    v_host := '/usr/bin/sudo -u devuser /test/app/dev/scripts/test.sh
    host(v_host);
    it does not work.
    anyone has idea ? Thanks.
    Ivan

    I imagine sudo is probably attempting to prompt for a password. I think it depends on who you are logged in as and who you are trying to log in as (and whether you have logged in recently within the last few minutes).
    The host command won't support this kind of interaction. It needs to be a command that returns its results without requiring any further prompting.
    That would be my guess.

  • Do "sudo" commands still work on Mavericks?

    I've upgraded to Mavericks and the silly grey progress bar thing kicked back in.
    Is the command "sudo pmset autopoweroff 0" still valid for Mavericks? I was about to type it and wondered if maybe they changed things that would hurt me if I typed that? Thanks!

    Your 2010 MBP would be able to handle Yosemite, but I would strongly suggest that you get the current problem sorted out before trying to upgrade to Yosemite. I'd also recommend another backup that isn't created by Time Machine if you are thinking of upgrading. SuperDuper and CarbonCopyCloner can make bootable clones of hard drives. If you clone your existing system to a fresh external drive, you would be able to boot from that drive and recover quickly in the event that your Yosemite upgrade didn't work out. Time Machine backups are not 100% reliable.
    It's possible that, if your internal HD is the one that shipped with your MBP in 2010, it may be failing. If it keeps needing repairs, that is probably a sign that it is approaching the end of its useful life.
    Have you run Disk Utility's Repair tool on the external drive as well?
    I mentioned the hub because some people have reported here that attaching their USB 3 drives through a USB 2 hub solved some disconnection problems. A good-quality powered USB 2 hub won't cost much.
    My most recent brush with random disconnections involved a nice new OWC drive enclosure. I used the cable that came with the drive, but the drive kept disconnecting. Using a different cable solved the problem. You wouldn't expect that what appeared to be a high quality cable would be a problem straight out of the box, but it was.

  • Make command doesnt work

    i need to recompile the linux kernel..
    when I type make menuconfig , Iam getting the message command not found.
    Can someone tell me how can I make the 'make ' command work.
    when Iam doing a man make..it is not returning me any help.

    It looks like cc is trying to make a directory where you executed '/usr/ccs/bin/make', and it's failing. You don't need to 'run' the Makefile, make will see it and use it - which it has in this case. It could also be a app that needs to be installed as root. Are you root?
    Also, better more usefull tools, are at www.sunfreeware.com. Download 'make' and 'gcc'. They will install to /usr/local/bin, so you will need to update your PATH, but things will complie with fewer problems. The local 'make' and 'cc' aren't really meant for anything other than Sun's patches.
    temporarily changing your $PATH,
    PATH=$PATH:/usr/local/bin ( you could put whatever you like, whatever makes sense for what you are doing ).
    You may have also installed some freeware from Sun, check /usr/sfw/bin.
    Tom de

  • Copy Command Doesnt work in Premiere CS6!

    When you set your in and out points on your timeline, and then do the copy command, it will not paste your in and out to your selected timeline! I did some research and found a workaround:
    Set your in/out
    Lift
    Undo (cnrtl Z)
    Copy (cntrl C)
    Paste to selected timeline (control V)
    It's nice to know the feature is in there, and that it is simply broken...please fix!
    -Joe

    Unfortunately, CC does seem to be more finicky than CS6.  Once it's running, it's usually very stable.  But there do seem to be a LOT of people that have trouble just getting it running.
    If you ever solve that, CC allows you to use even unsupported cards for GPU acceleration just by turning it on.

  • The 'Replace with clip from Bin' command doesnt work... or freezes and crashes Premiere

    I'm not exactly sure where I should begin on this issue... re-install?
    Thx,
    David

    Yes, of course.    And even if I hadn't, that wouldn't explain Premiere freezing
    or crashing.    Let me ask this.    Is there a maximum amount of clips or some kind of RAM use tipping point where Premiere just can't handle anymore references?    That is the only thing I can think of that would possibly cause this sudden glitch or some kind of coding error, like the 'replace with clip from bin' command can only handle 'x' file references somehow...  I have about 300 AVCHD clips and 200 HD .mov files in the project panel.    What do you think?

  • How do i get the ' make ' command to work?

    This is probably an easy one for you guys...
    I have tried to install a few apps and some of them require the make command. But this command doesnt work and i get make: not found in the terminal
    I have read i need something called SunPRO make ??

    It looks like cc is trying to make a directory where you executed '/usr/ccs/bin/make', and it's failing. You don't need to 'run' the Makefile, make will see it and use it - which it has in this case. It could also be a app that needs to be installed as root. Are you root?
    Also, better more usefull tools, are at www.sunfreeware.com. Download 'make' and 'gcc'. They will install to /usr/local/bin, so you will need to update your PATH, but things will complie with fewer problems. The local 'make' and 'cc' aren't really meant for anything other than Sun's patches.
    temporarily changing your $PATH,
    PATH=$PATH:/usr/local/bin ( you could put whatever you like, whatever makes sense for what you are doing ).
    You may have also installed some freeware from Sun, check /usr/sfw/bin.
    Tom de

  • I am locked out of my computer (macbook air) I just got it back from the apple store and they reset it. I put in a new password, and now it doesnt let me log in anymore. Command R doesnt work, all i hear is a sound, but nothing happens.

    I just got it back from the apple store and they reset it (becuase it kept shutting down and not turning back on).
    I put in a new password because i needed to start over from factory settings, but now it doesnt let me log in anymore. (I don't know if this is because it doesnt accpet my password, or I forgot my password in less than 5 minutes, or because when i typed in my new password, i typed it in wrong twice)
    Command R doesnt work, all i hear is a sound, but nothing happens.

    What I don't understand is why it is rejecting a password I am creating.
    Perhaps the password you are creating is too short, or has characters that are not allowed, or is not secure enough because it is a word in a dictionary.
    FileVault may have standards for what it considers an acceptable password. If the password is part of the 128-bit encryption scheme, it might have to be 16 characters, for example. (Don't know if that is true, but it's a possibility.) Check your documentation for password requirements.

  • Isight not working anymore after a sudo command i put on terminal

    i have not been able to get the smc to work.. but i am almost positive what the problem is that sudo command killall for coremedia command i did..b ecause not my isight built in camera will not work for any application.// this has me freaking out.. please if anyone could guide me through whatever it takes to get this isight camera working that would be a life saver.. i do not believe that it is hard ware because it was working just fine that entire day until i did something in terminal trying to stop the coremedia processes not knowing what they were..

    Post the exact command you entered in terminal.
    You can copy and paste the single command from the output of:
    history

  • 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

  • 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

  • Problems to conect imac 10.5.8 (2.66 GHz) to macbook pro 10.9 (2.5 GHz) by thunderbolt cable? Command F2 doesnt work! HELP!

    I have problems to conect imac 10.5.8 (2.66 GHz) to macbook pro 10.9 (2.5 GHz) by thunderbolt cable?
    Command F2 doesnt work!
    Its possible? Or it has to be the same operating system?
    HELP!
    Thank you

    Welcome to Apple Support Communities
    You have got two problems:
    1. You haven't got a 27-inch iMac or a Thunderbolt iMac, because you are running 10.5.8, and;
    2. Your iMac has got Mini DisplayPort, so it won't detect a Thunderbolt cable.
    Your Mac is not compatible with Target Display mode. If you want to use your iMac as an external display for the MacBook, use ScreenRecycler, which will allow you to mirror your MacBook Pro's display to your iMac over the network

Maybe you are looking for