6
2
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.
Doesn't
mount
require root, or at least a root config change to make volumes mountable by non-root users? – Rich Homolka – 2011-03-01T21:11:10.4501@Rich: Indeed it does; I don't mind seeing a password prompt when I fire up my shell. It's just that the
mount
command is pretty complicated and I didn't want to put in extra effort of executing a helper script. – sasuke – 2011-03-12T16:01:52.567