I wrote a script to allow a user to start a server and mount the cifs-share after a boot delay.
I altered the sudoers file to give the user acces to the mount command without entering the sudo-password.
All works fine if I execute the script within the terminal or the file explorer.
So I created a link to this script in the main menu.
But executing this link doesn't work. What could be the reason ?
My konfiguration:
mint 14 Nadia with Mate desktop.
The content of my script:
#!/bin/bash
# Server on
wakeonlan 00:23:05:EF:33:00
# Bootdelay
sleep 60
# Mount CIFS-share
sudo mount //192.168.1.250/Datensicherung /mnt/_freenas -o user=guest,guest
The additional sudoers entry:
%user ALL= NOPASSWD: /bin/mount
Regards
Pommfriz


