I'm rather new to *nix and have played a little with Ubuntu, Mint and now Elementary OS.
I'm doing a mistake but I don't understand where.
I'm mounting a network share via
sudo mount -t cifs //xxx.xxx.xxx.xxx/networkshare /mnt/local -o user=user,password=pass,uid=xxx,gid=xxx
the script is executable, if I run the script in terminal all is ok, it asks the password for root and mount the share
but I would like it to be mounted automatically
I tried to put the command into /etc/rc.local
so the #!/bin/bash
above it and the exit 0 below it are already there
I tried to put the command into Applications -> Startup Commands
I also tried to create a file.desktop into /.local/share/applications
(so, at least, it is easy to run)
as Exec I tried both
Exec=/path/filename.sh
and
Exec=sh /path/filename.sh
but none is working, none of the methods is asking me the root password
Surely I'm doing something wrong, I did a google search but I've not been able to find some guide. Can you drive me the right way ?
TIA