View Single Post
Old 05-11-2016, 08:23 AM   #86
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
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+0000multi-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:
    [, 
addgroupadduseradjtimexashawkbasenamebunzip2busybox,
    
bzcatcatchgrpchmodchownchrootclearcmpcpcrond,
    
crontabcutdatedddelgroupdeluserdfdirnamedmesg,
    
du, echo, envexprfalsefdiskfgrepfindfreeramdiskgetty,
    
grepgunzipgziphaltheadhexdumphostnamehwclockid,
    
ifconfigifdownifupinitinstallipipaddriplinkiproute,
    
killkillallklogdlinuxrclnloggerloginlognamelogread,
    
losetuplsmakedevsmd5summkdirmknodmktempmoremount,
    
mvncnetstatpasswdpidofpingpipe_progresspivot_root,
    
printfpwdrdatereadlinkrealpathrebootrenicereset,
    
rmrmdirrouterun-partssedseqshsleepsortstart-stop-daemon,
    
stringssttysusuloginsyncsysctlsyslogdtailtar,
    
teetelnettesttimetouchtrtraceroutetruettyudhcpc,
    
umountunameuniquptimeusleepviwcwgetwhichwho,
    
whoamixargsyeszcat


#> chmod 04755 /mnt/us/bin
chmod: /mnt/us/bin/busyboxOperation 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+0000multi-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:
    [, 
addgroupadduseradjtimexashawkbasenamebunzip2busybox,
    
bzcatcatchgrpchmodchownchrootclearcmpcpcrond,
    
crontabcutdatedddelgroupdeluserdfdirnamedmesg,
    
du, echo, envexprfalsefdiskfgrepfindfreeramdiskgetty,
    
grepgunzipgziphaltheadhexdumphostnamehwclockid,
    
ifconfigifdownifupinitinstallipipaddriplinkiproute,
    
killkillallklogdlinuxrclnloggerloginlognamelogread,
    
losetuplsmakedevsmd5summkdirmknodmktempmoremount,
    
mvncnetstatpasswdpidofpingpipe_progresspivot_root,
    
printfpwdrdatereadlinkrealpathrebootrenicereset,
    
rmrmdirrouterun-partssedseqshsleepsortstart-stop-daemon,
    
stringssttysusuloginsyncsysctlsyslogdtailtar,
    
teetelnettesttimetouchtrtraceroutetruettyudhcpc,
    
umountunameuniquptimeusleepviwcwgetwhichwho,
    
whoamixargsyeszcat


#> chmod 02755 /mnt/us/bin
chmod: /mnt/us/bin/busyboxOperation 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+0000multi-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:
    [, 
addgroupadduseradjtimexashawkbasenamebunzip2busybox,
    
bzcatcatchgrpchmodchownchrootclearcmpcpcrond,
    
crontabcutdatedddelgroupdeluserdfdirnamedmesg,
    
du, echo, envexprfalsefdiskfgrepfindfreeramdiskgetty,
    
grepgunzipgziphaltheadhexdumphostnamehwclockid,
    
ifconfigifdownifupinitinstallipipaddriplinkiproute,
    
killkillallklogdlinuxrclnloggerloginlognamelogread,
    
losetuplsmakedevsmd5summkdirmknodmktempmoremount,
    
mvncnetstatpasswdpidofpingpipe_progresspivot_root,
    
printfpwdrdatereadlinkrealpathrebootrenicereset,
    
rmrmdirrouterun-partssedseqshsleepsortstart-stop-daemon,
    
stringssttysusuloginsyncsysctlsyslogdtailtar,
    
teetelnettesttimetouchtrtraceroutetruettyudhcpc,
    
umountunameuniquptimeusleepviwcwgetwhichwho,
    
whoamixargsyeszcat


#> chmod 06755 /mnt/us/bin
chmod: /mnt/us/bin/busyboxOperation 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+0000multi-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:
    [, 
addgroupadduseradjtimexashawkbasenamebunzip2busybox,
    
bzcatcatchgrpchmodchownchrootclearcmpcpcrond,
    
crontabcutdatedddelgroupdeluserdfdirnamedmesg,
    
du, echo, envexprfalsefdiskfgrepfindfreeramdiskgetty,
    
grepgunzipgziphaltheadhexdumphostnamehwclockid,
    
ifconfigifdownifupinitinstallipipaddriplinkiproute,
    
killkillallklogdlinuxrclnloggerloginlognamelogread,
    
losetuplsmakedevsmd5summkdirmknodmktempmoremount,
    
mvncnetstatpasswdpidofpingpipe_progresspivot_root,
    
printfpwdrdatereadlinkrealpathrebootrenicereset,
    
rmrmdirrouterun-partssedseqshsleepsortstart-stop-daemon,
    
stringssttysusuloginsyncsysctlsyslogdtailtar,
    
teetelnettesttimetouchtrtraceroutetruettyudhcpc,
    
umountunameuniquptimeusleepviwcwgetwhichwho,
    
whoamixargsyeszcat 
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.
geekmaster is offline   Reply With Quote