[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [hobbit] Hobbit startup script.



>It still runs as hobbit, it is just that any script in init.d gets run as root by init.

Correct.  Init.d scripts are run by root on system startup.  Well, actually scripts in the rc.d dirs.

>So consequently anything that needs to be run by a user such as hobbit, has its startup script coded to do an su hobbit -c "blahblahblah".

Correct.  Any example scripts people have provided do the "su hobbit -c " thing *because* the hobbit application will not allow you to start it as the root user, due to security issues.

>In other words, hobbit still runs as hobbit but the startup script can be run as root.

Correct, if you are using an init.d script.  You can not run the "hobbit.sh" startup/shutdown script in the hobbit home directory as root for security reasons previously mentioned (nor should you edit that hobbit.sh script to allow root to start it).

Craig