execute script with sudo after login
- by Kalamalka Kid
i need to execute the following commands AFTER login.
sudo hdparm -y /dev/disk/by-uuid/443AFBAD7FE50945
sudo hdparm -y /dev/disk/by-uuid/7ABB49654B799D40
(trying to edit rc.local does not work nor does using hdparm.conf because as soon as I log in the disks start up again). I have tried numerous things like bash files and autossh entries in the startup applications with no luck because sudo is involved.