LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2010, 09:08 AM   #1
linuxwang
LQ Newbie
 
Registered: Sep 2009
Posts: 7

Rep: Reputation: 0
Busybox and dropbear related problem


I am running busybox. After adding dropbear, it gives me an error that dropbear not found, but it is under /sbin. Here is the shell commands:

# pwd
/sbin
# ls -l drop*
-rwxr-xr-x 1 root root 256709 Feb 1 03:44 dropbear
# ./dropbear
/bin/sh: ./dropbear: not found
#

Do I have to put dropbear as a part of busybox? Thanks.

Allan
 
Old 02-02-2010, 11:07 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Try using the canonical path: # /sbin/dropbear. If that doesn't work, try it as root. If it works as root, but you want it to run under a lower privilege level, change the permissions on the file: dropbear to o+rw: chmod o+rw /sbin/dropbear. See if that works. And busy box is not a shell. It's a program that has many of the same functions as the programs in gnu coreutils. Your shell is /bin/sh.
 
Old 02-02-2010, 11:19 PM   #3
linuxwang
LQ Newbie
 
Registered: Sep 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I tried both canonical form /sbin/dropbear and chown o+w, but it still complain file not found. From the ls -l list, /bin/sh is the soft link to busybox. dropbear's owner is root and I try to execute it under root. For some reason, dropbear can not be executed:

# ls -l
lrwxrwxrwx 1 root root 12 Feb 3 01:54 addgroup -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 adduser -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ash -> /bin/busybox
-rwxr-xr-x 1 root root 1963264 Feb 2 01:36 busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 cat -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 catv -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 chattr -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 chgrp -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 chmod -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 chown -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 cp -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 cpio -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 cttyhack -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 date -> /bin/busybox
-rwxr-xr-x 1 root root 252076 Feb 1 03:44 dbclient
lrwxrwxrwx 1 root root 12 Feb 3 01:54 dd -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 delgroup -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 deluser -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 df -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 dmesg -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 dnsdomainname -> /bin/busybox
-rwxr-xr-x 1 root root 83005 Feb 1 03:44 dropbearconvert
-rwxr-xr-x 1 root root 85083 Feb 1 03:44 dropbearkey
lrwxrwxrwx 1 root root 12 Feb 3 01:54 dumpkmap -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 echo -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ed -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 egrep -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 false -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 fdflush -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 fgrep -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 fsync -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 getopt -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 grep -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 gunzip -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 gzip -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 hostname -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 hush -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ionice -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ip -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ipaddr -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ipcalc -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 iplink -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 iproute -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 iprule -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 iptunnel -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 kill -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 linux32 -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 linux64 -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ln -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 login -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ls -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 lsattr -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 lzop -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 makemime -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mkdir -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mknod -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mktemp -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 more -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mount -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mountpoint -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 msh -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mt -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mv -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 netstat -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 nice -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 pidof -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ping -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ping6 -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 pipe_progress -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 printenv -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ps -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 pwd -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 reformime -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 rm -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 rmdir -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 run-parts -> /bin/busybox
-rwxr-xr-x 1 root root 49513 Feb 1 03:44 scp
lrwxrwxrwx 1 root root 12 Feb 3 01:54 scriptreplay -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 sed -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 setarch -> /bin/busybox
lrwxrwxrwx 1 root root 7 Feb 3 00:12 sh -> busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 sleep -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 stat -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 stty -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 su -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 sync -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 tar -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 touch -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 true -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 umount -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 uname -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 uncompress -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 usleep -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 vi -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 watch -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 zcat -> /bin/busybox
 
Old 02-02-2010, 11:20 PM   #4
linuxwang
LQ Newbie
 
Registered: Sep 2009
Posts: 7

Original Poster
Rep: Reputation: 0
# cd /sbin
# ls -l
lrwxrwxrwx 1 root root 12 Feb 3 01:54 adjtimex -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 arp -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 blkid -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 depmod -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 devmem -> /bin/busybox
-rwxr-xrwx 1 root root 256709 Feb 1 03:44 dropbear
lrwxrwxrwx 1 root root 12 Feb 3 01:54 fbsplash -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 fdisk -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 findfs -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 freeramdisk -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 fsck -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 fsck.minix -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 getty -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 halt -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 hdparm -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 hwclock -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ifconfig -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ifdown -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ifenslave -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 ifup -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 init -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 insmod -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 klogd -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 loadkmap -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 logread -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 losetup -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 lsmod -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 makedevs -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 man -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mdev -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mkdosfs -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mkfs.minix -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mkfs.vfat -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 mkswap -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 modprobe -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 nameif -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 pivot_root -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 poweroff -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 raidautorun -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 reboot -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 rmmod -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 route -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 runlevel -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 setconsole -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 slattach -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 start-stop-daemon -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 sulogin -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 swapoff -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 swapon -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 switch_root -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 sysctl -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 syslogd -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 tunctl -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 udhcpc -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 vconfig -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 watchdog -> /bin/busybox
lrwxrwxrwx 1 root root 12 Feb 3 01:54 zcip -> /bin/busybox
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
busybox cause some problem... okeyla Linux - Mobile 1 08-26-2009 03:11 PM
Busybox And Jffs2 Problem ashthet Linux - General 0 09-02-2008 01:20 AM
Installation problem- busybox? mothergoose729 Ubuntu 2 08-28-2008 03:25 AM
Temporarily Allow Remote Connections to Dropbear pete1234 Linux - Networking 4 07-24-2007 09:01 AM
dropbear ssh with floppyfw rocordial Linux - Networking 1 07-04-2004 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration