I want to automatically login as root, and then run an interactive script. I am using Fedora 16.
|
Logging in as root is dangerous, as root is all-powerful. You'll learn the hard way when you do a "rm -rf *" at the wrong place. If you want to run some program as root each boot, you should set up systemd so it is launched each time. Look at the relevant manpages, and perhaps pilfer some ideas from e.g. the files referenced in /lib/systemd/system/sysinit.target.wants |
|||
|
|
|
I concurr with @vonbrand that logging in as root is dangerous. However, if you want to do this, and the script can be written in a way that it doesn't need access to the UI (you could use You would do it by adding a crontab entry which, instead of the usual time fields, uses the special string For example, I have the following crontab entry in root's crontab, intended to populate the RAM cache with the entire file system structure to speed up disk accesses:
See |
||||
|
|