There is a script (more like a command) which I would like to be executed on a per user-login basis. I've heard of init.d
scripts but those require root permissions and are not per-user customizable (AFAIK). Simply put, I am looking for something along the lines of .bashrc
which would be executed only once per user login.
To detail a bit about the scenario, I currently use a Ubuntu guest OS on a Windows host (emulation courtesy of VirtualBox). Every time I login to my guest OS, I need a mount
command to be executed which would mount my shared folders to a common directory in the user's home directory.
mount
require root, or at least a root config change to make volumes mountable by non-root users?mount
command is pretty complicated and I didn't want to put in extra effort of executing a helper script.