[SATLUG] Multitail via SSH
othniel at gmail.com
Thu Oct 28 14:26:09 CDT 2010
Ok, do this.
Edit your /etc/passwd file and duplicate the line with your user account
Say the user account, field 1, (separated by colons) is called dave
On the duplicated line change field 1 to tom and field 7 (the last one)
Now make a script in /usr/local/bin called mt to run multitail.
In /etc/shadow also duplicate the line with your user account
info and use the same new name (tom)
When you login as tom, you wont get a shell. Instead the mt
script will run (assuming its not empty) and when you quit
multitail you will be logged out.
Use the passwd tom command to change tom passwd to
whatever you want. To start the password will be the
same as for dave.
I think this is what you are after.
No new accounts are created but two ways to access the
same one. One is captured for the script that runs
On Thu, Oct 28, 2010 at 11:00 AM, David Salisbury <
david.salisbury at momentumweb.com> wrote:
> What do you mean by "a place" only accessible via SSH? Multitail is an
>> application, so when you run the application, wherever you run it, it has
>> to have access to the logfiles
>> you are possibly trying to remotely access a set of files?
> I just mean it would be neat to have multitail running, monitoring a set of
> files on the machine which it resides, and have that output accessible via
> so that the current "state" that it's in can be "monitored" remotely. I
> mean, I
> suppose I could just SSH in and start multitail manually with the
> required and have a similar effect, but it would be nice to be able to SSH
> in and
> see only multitail's OUTPUT without actually being in any type of
> shell. So someone else could login and monitor whatever multitail is
> and they wouldn't have to have shell access.
> What are you trying to "protect" and from whom?
> Just wondering if it was possible, really. But see above.
> Is this a class assignment?
> LOL, no, not currently taking classes anywhere. :) This is just something
> I was
> wondering about and wanting to set up.
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug to manage/unsubscribe
> Powered by Rackspace (www.rackspace.com)
More information about the SATLUG