What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Busybox missing /bin/false

protogen

Occasional Visitor
On firmware versions 380.58 and 380.59, the symlink /bin/false does not exist and the busybox binary does not support false (but does support true).

I am puzzled by this, as /bin/false is usually used as the shell for non-user/daemon accounts (e.g. postfix, dovecot, httpd).

Can anyone shed light on why 'false' support is missing?

Code:
admin@router:~ # ls -la /bin/true
lrwxrwxrwx 1 admin root 7 Mar 21 08:12 /bin/true -> busybox
admin@router:~ # ls -la /bin/false
ls: cannot access /bin/false: No such file or directory

Code:
admin@router:~ # /bin/busybox true --help
BusyBox v1.20.2 (2016-03-20 15:54:28 EDT) multi-call binary.

Usage: true

Return an exit code of TRUE (0)

admin@router:~ # /bin/busybox false --help
false: applet not found
 
I am puzzled by this, as /bin/false is usually used as the shell for non-user/daemon accounts (e.g. postfix, dovecot, httpd).

Can anyone shed light on why 'false' support is missing?

Because the firmware itself does not need it.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top