Ticket #28882 (closed defect: duplicate)
MacPorts installer only modifies profile of current user
| Reported by: | 1handle@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | base | Version: | 1.9.2 |
| Keywords: | Cc: | ||
| Port: |
Description
I've two accounts on the computer. The port of bash was successful from the account the port command was issued from, but this port had no impact on the second account. The port created .profile in the account that worked; that file appends two required paths to $PATH. In contrast, no similar file was created for the second account.
To recover, I updated the existing .bash_profile in the second adding the two paths. The two paths are: /opt/local/bin and /opt/local/sbin.
There was no indication neither during, nor at the conclusion of the port that there was a problem or even a concern. Further, I suspect this is a product of being my first attempt to install a port and had nothing to do with bash itself.
Change History
comment:2 Changed 2 years ago by ryandesign@…
- Cc raimue@…, 1handle@… removed
- Component changed from ports to base
- Port bash @4.1.9_1 deleted
- Summary changed from bash @4.1.9_1 failed to add two paths on second account to MacPorts installer only modifies profile of current user
It is the MacPorts installer, not bash or any other port, that modifies the profile of the currently-logged-in user. You are correct, the installer will not attempt to modify the files of any other user account, either currently existing or added in the future. This is functioning as designed, though you may be correct that we don't sufficiently explain that fact. For example we could improve the guide here:
http://guide.macports.org/#installing.shell
And the installer readme here:


Cc Me!