On Thu, 4 Sep 2008 13:06:54 +0200 (CEST), Saša Stupar <[EMAIL PROTECTED]> wrote:
> On my FBSD 7 server I also use screen with rtorrent. In case of server
> reboot (power outage, server goes on UPS then power down) the user need
> manually to login, then start screen and then rtorrent. Is it possible to
> start this procedure automatically and of course as certain user and not
> as root?
> I was thinking about .startup file or something in users home directory.
No need to reinvent the wheel. :-)
The solution is quite simple, allthough it is to be considered a
security risk, and maybe it's a bit ugly. Here's what I would
suggest you to do:
1. Modify /etc/gettytab as follows:
where <USERNAME> is the name of the user who wants the screen
and rtorrent running.
2. After that, go to this user's home directory and create or modify
his ~/.login file to contain the proper commands to start the
screen sessions and rtorrent.
Please note that it might be possible to have another file changed
if the C Shell is not this user's shell. BASH has another file
for startup, I think.
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
email@example.com mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"