[PHREAKSCRIPT-2] Remove absolute sbin path

PHREAKNET-29

Requested Line

PHREAKNET-28

Phone Verification Failed

INTERLINKED-10

Telegrams can be sent by phone to non-subscribers

INTERLINKED-9

Phreaknet Directory link broken

INTERLINKED-8

Cannot use phreaknet wizard

PHREAKSCRIPT-12

Cannot utilize script because of patch issues

ASTERISK-13

Asterisk Framehook: DTMF to MF

INTERLINKED-7

TTY BBS lines (45.5+50) issues

PHREAKNET-22

Weather line international lookup problem

PHREAKNET-24

[REQ] TTY Telegrams

PHREAKNET-23

Wakeup calls not dialling at scheduled time

PHREAKNET-20

Billing based on individual CLLI zip codes

DOCS-2

Website not allowing me to log in

PHREAKNET-17

Director Listing Bulk Uploads Not Showing

PHREAKNET-16

RCMAC Provisioning is broken

ASTERISK-12

chan_dahdi: Make pulsemaketime, etc configurable

PHREAKNET-14

1+ calls do not work for single numbers

DOCS-1

Kickstart the wiki

ASTERISK-9

indications: Add support for >2 frequencies

INTERLINKED-6

PhreakNet Forums

ASTERISK-7

Improve sound control capabilities

PHREAKNET-11

Yealink T33G: add provisioning support

PHREAKNET-10

Enhanced utilization of Feature Group D

ASTERISK-11

chan_dahdi: Add wink guard

ASTERISK-10

Proctor application for DAHDI

PHREAKNET-9

General WKSHWIAXCG0 enhancements

PHREAKNET-8

Setup a Patreon to cover expenses

INTERLINKED-5

Update blue box

PHREAKSCRIPT-10

Update CiscoCallManager patch URL

ASTERISK-8

Optimize boilerplate RSA to MD5 fallback

INTERLINKED-4

InterLinked Issues API

PHREAKNET-7

Subscriber Service Disconnect Request Option

INTERLINKED-3

InterLinked API site is down

PHREAKNET-6

Verification flags international calls

ASTERISK-4

XML documentation examples

INTERLINKED-2

PhreakNet Email for BoD Members

PHREAKSCRIPT-8

Boilerplate force MD5 broken

ASTERISK-6

Resonant Filter To Simulate N-Carrier

PHREAKNET-3

Provide commissions to 976 number owners

PHREAKSCRIPT-9

Add DAHDI to build tests

PHREAKSCRIPT-7

Boilerplate musiconhold.conf is wrong

PHREAKSCRIPT-6

Trace autosend

INTERLINKED-1

Phone verification is broken

PHREAKSCRIPT-5

coindsp patch missing

PHREAKNET-5

Semipublic inward boilerplate broken

PHREAKSCRIPT-4

Add less invasive/deterministic modes

PHREAKNET-4

Hosted lines defaults exchange on error

PHREAKNET-2

Asterisk reload following unsuccessful call

PHREAKSCRIPT-3

Report failure as requested

ASTERISK-5

Various ADSI issues

PHREAKNET-1

Add third-party billing integration

ASTERISK-3

Asterisk Wiki issues

PHREAKSCRIPT-2

Remove absolute sbin path

PHREAKSCRIPT-1

Hangs when certain invalid commands entered

ASTERISK-2

func_notchfilter: ISO C90 compiler fixes

ASTERISK-1

Add Assert application

← Issues Home || New Issue →

Sort Normal || Priority

Details

Category: PhreakScript
Type: Improvement
Severity: Minor
Visibility: Public
Reported: 11/14/2021 8:50 AM
Last Active: 12/24/2021 2:12 PM
Status: Resolved 11/14/2021 10:36 AM
Reporter: InterLinked
Watching: InterLinked
Assigned To: InterLinked

Background

For some reason, on some Debian installs or user accounts, /sbin is not in path, even when running as root. This is typically where Asterisk is installed but if /sbin is not in path, then asterisk and related commands will fail without an absolute path.

Now that we support installing Asterisk to locations besides /sbin (e.g. /usr/local/...), absolute paths should be avoided, even as constants.

Action Required

It should be determined why /sbin is not in $PATH and it should be added. This could be even for the duration of the script, which would allow commands in the script to function regardless of where the asterisk binary (and other related binaries) are located. Since /sbin should be in path anyways, ideally that should be exported and persist beyond script execution, but this isn't strictly necessary.

Follow up

/sbin is only in path for root. Using sudo su will not add it to path but su - will add it to path. In any case, relying on existing path should be avoided.


Comments

11/14/2021 9:01 AM — InterLinked

Correction: we are dealing with plain /sbin here, not /usr/sbin

You must be logged in to leave a comment.