How can I run a script that requires root privileges at login of a (or any) user?
I am building an Ubuntu 16.04 Docker image. I need to update the list of libraries with the
ldconfig -v command but during the docker build process the hardware is not accessible therefore not all libraries will be added so I would like to run the command at the first login of a user.
Is there a directory maybe, from where scripts are executed at login events? Like /etc/init or /etc/init.d for start up.