Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to work with this friendlyarm 9 board I got recently but it can't find some basic bash commands and I couldn't find a solution for it anywhere. When I type any command with sudo or even when I type sudo alone I get

/bin/sh: sudo: not found

It is the same when I type bash:

/bin/sh: bash: not found

Should I add something to its PATH? or anything like that?

I asked it here cause I thought it's a linux problem. If it's not can you tell me where to ask about it?

Thank you

share|improve this question

migrated from stackoverflow.com Jun 6 '13 at 9:39

This question came from our site for professional and enthusiast programmers.

    
Can you find the sudo binary? By the way, maybe it's better to ask this on Stack Exchange –  fedorqui Jun 6 '13 at 8:06
1  
Usually, but not necessarily. It might be installed anywhere else, if at all. Note that friendlyarm probably doesn't house a complete desktop linux installation and so might not have all commands installed that you are used to. You can use su instead to gain superuser powers (if you aren't root already) and you can use whatever shell is available. There's not only bash. –  blubberdiblub Jun 6 '13 at 8:11
1  
Also try to login as root directly by whatever means you use to login into the board. –  blubberdiblub Jun 6 '13 at 8:14
1  
Also note that su is called differently in comparison to sudo. sudo test.sh would translate to su -c test.sh. And you have to give the root password to su if you don't specify a different user. In contrast, on several desktop distros, sudo is configured to ask for the calling user's password instead by default. –  blubberdiblub Jun 6 '13 at 8:30
1  
It's hard to diagnose your problem without the exact circumstances when it prints the error message. Did su ask you for a password at all? If not, it probably lacks the necessary permissions to be executed by non-root users (Try changing them as root). Also, since it's not a programming question, I'd consider Unix & Linux more appropriate. –  blubberdiblub Jun 6 '13 at 8:42

1 Answer 1

it seems this version of linux im using doesn't support some bash commands and thus i didn't need them. getting permission denied was a result of the script not having executable permissions. Thanx to blubberdiblub I set the permissions for it to run.

share|improve this answer
1  
You seem to be running bin/sh, which might not be a bash shell at all. Maybe the title should be "My shell can not find the command "sudo" or "bash" ". –  Hennes Jun 6 '13 at 9:41
    
Also remember that sudo is not a standard app, it is standard in the Debian world, not in Linux in general. It is definitely not a bash command and it is not strange not to find it installed by default. –  terdon Jun 6 '13 at 11:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.