Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Well, that's interesting. The behavior seems to have changed since yesterday.
PHP Code:
#> ls -al /bin/busybox
-rwsr-sr-x 1 root root 620140 Mar 31 2008 /bin/busybox
#> rm /mnt/us/bin/busybox
#> cp /bin/busybox /mnt/us/bin
#> ls -al /mnt/us/bin/busybox
-rwxr-xr-x 1 root root 620140 May 11 07:15 /mnt/us/bin/busybox
#> /mnt/us/bin/busybox
BusyBox v1.01 (2008.03.31-00:04+0000) multi-call binary
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as!
Currently defined functions:
[, addgroup, adduser, adjtimex, ash, awk, basename, bunzip2, busybox,
bzcat, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, crond,
crontab, cut, date, dd, delgroup, deluser, df, dirname, dmesg,
du, echo, env, expr, false, fdisk, fgrep, find, freeramdisk, getty,
grep, gunzip, gzip, halt, head, hexdump, hostname, hwclock, id,
ifconfig, ifdown, ifup, init, install, ip, ipaddr, iplink, iproute,
kill, killall, klogd, linuxrc, ln, logger, login, logname, logread,
losetup, ls, makedevs, md5sum, mkdir, mknod, mktemp, more, mount,
mv, nc, netstat, passwd, pidof, ping, pipe_progress, pivot_root,
printf, pwd, rdate, readlink, realpath, reboot, renice, reset,
rm, rmdir, route, run-parts, sed, seq, sh, sleep, sort, start-stop-daemon,
strings, stty, su, sulogin, sync, sysctl, syslogd, tail, tar,
tee, telnet, test, time, touch, tr, traceroute, true, tty, udhcpc,
umount, uname, uniq, uptime, usleep, vi, wc, wget, which, who,
whoami, xargs, yes, zcat
#> chmod 04755 /mnt/us/bin
chmod: /mnt/us/bin/busybox: Operation not permitted
#> ls -al /mnt/us/bin/busybox
-rwxr-xr-x 1 root root 620140 May 11 07:15 /mnt/us/bin/busybox
#> /mnt/us/bin/busybox
BusyBox v1.01 (2008.03.31-00:04+0000) multi-call binary
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as!
Currently defined functions:
[, addgroup, adduser, adjtimex, ash, awk, basename, bunzip2, busybox,
bzcat, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, crond,
crontab, cut, date, dd, delgroup, deluser, df, dirname, dmesg,
du, echo, env, expr, false, fdisk, fgrep, find, freeramdisk, getty,
grep, gunzip, gzip, halt, head, hexdump, hostname, hwclock, id,
ifconfig, ifdown, ifup, init, install, ip, ipaddr, iplink, iproute,
kill, killall, klogd, linuxrc, ln, logger, login, logname, logread,
losetup, ls, makedevs, md5sum, mkdir, mknod, mktemp, more, mount,
mv, nc, netstat, passwd, pidof, ping, pipe_progress, pivot_root,
printf, pwd, rdate, readlink, realpath, reboot, renice, reset,
rm, rmdir, route, run-parts, sed, seq, sh, sleep, sort, start-stop-daemon,
strings, stty, su, sulogin, sync, sysctl, syslogd, tail, tar,
tee, telnet, test, time, touch, tr, traceroute, true, tty, udhcpc,
umount, uname, uniq, uptime, usleep, vi, wc, wget, which, who,
whoami, xargs, yes, zcat
#> chmod 02755 /mnt/us/bin
chmod: /mnt/us/bin/busybox: Operation not permitted
#> ls -al /mnt/us/bin/busybox
-rwxr-xr-x 1 root root 620140 May 11 07:15 /mnt/us/bin/busybox
#> /mnt/us/bin/busybox
BusyBox v1.01 (2008.03.31-00:04+0000) multi-call binary
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as!
Currently defined functions:
[, addgroup, adduser, adjtimex, ash, awk, basename, bunzip2, busybox,
bzcat, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, crond,
crontab, cut, date, dd, delgroup, deluser, df, dirname, dmesg,
du, echo, env, expr, false, fdisk, fgrep, find, freeramdisk, getty,
grep, gunzip, gzip, halt, head, hexdump, hostname, hwclock, id,
ifconfig, ifdown, ifup, init, install, ip, ipaddr, iplink, iproute,
kill, killall, klogd, linuxrc, ln, logger, login, logname, logread,
losetup, ls, makedevs, md5sum, mkdir, mknod, mktemp, more, mount,
mv, nc, netstat, passwd, pidof, ping, pipe_progress, pivot_root,
printf, pwd, rdate, readlink, realpath, reboot, renice, reset,
rm, rmdir, route, run-parts, sed, seq, sh, sleep, sort, start-stop-daemon,
strings, stty, su, sulogin, sync, sysctl, syslogd, tail, tar,
tee, telnet, test, time, touch, tr, traceroute, true, tty, udhcpc,
umount, uname, uniq, uptime, usleep, vi, wc, wget, which, who,
whoami, xargs, yes, zcat
#> chmod 06755 /mnt/us/bin
chmod: /mnt/us/bin/busybox: Operation not permitted
#> ls -al /mnt/us/bin/busybox
-rwxr-xr-x 1 root root 620140 May 11 07:15 /mnt/us/bin/busybox
#> /mnt/us/bin/busybox
BusyBox v1.01 (2008.03.31-00:04+0000) multi-call binary
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as!
Currently defined functions:
[, addgroup, adduser, adjtimex, ash, awk, basename, bunzip2, busybox,
bzcat, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, crond,
crontab, cut, date, dd, delgroup, deluser, df, dirname, dmesg,
du, echo, env, expr, false, fdisk, fgrep, find, freeramdisk, getty,
grep, gunzip, gzip, halt, head, hexdump, hostname, hwclock, id,
ifconfig, ifdown, ifup, init, install, ip, ipaddr, iplink, iproute,
kill, killall, klogd, linuxrc, ln, logger, login, logname, logread,
losetup, ls, makedevs, md5sum, mkdir, mknod, mktemp, more, mount,
mv, nc, netstat, passwd, pidof, ping, pipe_progress, pivot_root,
printf, pwd, rdate, readlink, realpath, reboot, renice, reset,
rm, rmdir, route, run-parts, sed, seq, sh, sleep, sort, start-stop-daemon,
strings, stty, su, sulogin, sync, sysctl, syslogd, tail, tar,
tee, telnet, test, time, touch, tr, traceroute, true, tty, udhcpc,
umount, uname, uniq, uptime, usleep, vi, wc, wget, which, who,
whoami, xargs, yes, zcat
As seen from earlier posts, I was having problems executing scripts too, at first. I have no idea why busybox works now after a copy, when it failed yesterday. One thing different -- I added a step to delete /mnt/us/bin/busybox. Maybe there was a stray bad version sitting there? If so, the cp should have reported an error, I would think...
EDIT: Also, as expected, the chmod commands have no effect on a vfat partition (where some of the file permissions are faked).
Last edited by geekmaster; 05-11-2016 at 08:48 AM.
|