execute script with sudo after login
Posted
by
Kalamalka Kid
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Kalamalka Kid
Published on 2014-06-13T10:10:43Z
Indexed on
2014/06/13
15:42 UTC
Read the original article
Hit count: 387
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.
© Ask Ubuntu or respective owner