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
#!/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
(so, at least, it is easy to run)
as Exec I tried both
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 ?