Alter the system-wide default environment PATH and switch-user PATH on Solaris 10 and 11

in #unix6 years ago

In order to modify default environment PATH for ordinary users and superuser, edit file /etc/default/login as root user, and place your additions in the line PATH=.

You may have noticed that by switching user with su command, the environment PATH variable is reset to what seems like a default value. To alter this behaviour, edit file /etc/default/su and find the following lines:

  • PATH= is the value for switching toward an ordinary (non-root) user.
  • SUPATH= is the value for switching to the root user.

Coin Marketplace

STEEM 0.19
TRX 0.13
JST 0.030
BTC 63824.30
ETH 3420.53
USDT 1.00
SBD 2.54