Jump to content

Recommended Posts

Posted (edited)

I just discovered that /usr/bin/su in my Armbian:

 

 v26.2.1 for Orange Pi PC running Armbian Linux 6.12.58-current-sunxi
 

is a x86_64 binary:

 

$ ls -l /usr/bin/su
-rwsr-xr-x 1 root root 50800 Mar  6 13:10 /usr/bin/su

 

$ file /usr/bin/su
/usr/bin/su: setuid ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, no section header
 

I installed the rust version, su-rs, but I thought it would be useful to warn about this. 

 

I checked /usr/bin and /usr/sbin and this is the only x86-64 executable.

Edited by AlexaDP
Posted (edited)

Yes, applications are compiled into binaries, su is not a script.

 

This is on for example Arch:

$ file $(which su)

/usr/bin/su: setuid ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=d47af40eeb87fea42d555df0d1385bc9a4b4df2c, for GNU/Linux 4.4.0, stripped

 

Quote

I installed the rust version, su-rs, but I thought it would be useful to warn about this. 

 

Ok? So it's compiled with rust instead of C, still a binary.

 

Quote

I checked /usr/bin and /usr/sbin and this is the only x86-64 executable.

 

I find that extremely hard impossible to believe.

 

https://www.reddit.com/r/learnprogramming/comments/lyw9gf/can_someone_explain_what_people_mean_by_binaries

Edited by bedna
Posted (edited)

Bedna

 

I know that su  command is a compiled binary but Orange Pi PC has a 32 bit ARM processor and not a 64 bit Intel (x86_64) processor.

 

I find that extremely hard and impossible to believe that you missed the point.

Edited by AlexaDP

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines