Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 866.1k
  • 205
  • 1.8k
  • 2.3k
Source Link
feverDream
  • 341
  • 2
  • 6
  • 17

Ubuntu 16.04 Scripts in /etc/profile.d

I am currently trying to setup some bash definitions (functions, variables) that need to be available for all the users that access a workstation. I have created shell scripts with .sh extension in /etc/profile.d/ directory that have all the necessary. In theory, these should be run once a user logs into the system.

Unfortunately, none of these are available to the users when they use the workstation. The current work-around is to manually source them.

What puzzles me is that these scripts are run when users login remotely via ssh. :|

What am I missing here?