LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-20-2005, 10:16 PM   #1
ImpactDNI
Member
 
Registered: Jun 2004
Posts: 124

Rep: Reputation: 15
Auto Login User


Setting up my server again, found the wonders of bmon (bandwidth monitor program).

I guess this quesiton has 2 parts
1: I setup a new user (home = /dev/null), with a shell of /usr/bin/bmon (my bandwidth monitor program), so whenever he logs in, it fires that up... Is there anything wrong with doing that?

2: Assuming theres nothing wrong with that method, Is there any way to have this user (named bmon) log in automatically on a virtual terminal (vt6?)
 
Old 04-20-2005, 10:55 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
/etc/<distro-specific stuff>/rc.local
add something like
su - bmon -c /usr/bin/bmon

Saves you the login (safety) and you can even
disable the users password so no one can
"accidentally" login as him...
passwd -l bmon


Cheers,
Tink
 
Old 04-20-2005, 11:10 PM   #3
ImpactDNI
Member
 
Registered: Jun 2004
Posts: 124

Original Poster
Rep: Reputation: 15
hmmm, I got part of the desired effect with "su bmon" in my /etc/init.d/local.start file (gentoo). But is there a way to pass that command off to a specific virtual terminal?

Last edited by ImpactDNI; 04-20-2005 at 11:19 PM.
 
Old 04-20-2005, 11:42 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
That's the bit you DON'T want, actually :)

Why do you require it to run in a terminal?


Cheers,
Tink

Last edited by Tinkster; 09-08-2005 at 02:17 AM.
 
Old 04-21-2005, 08:31 AM   #5
ImpactDNI
Member
 
Registered: Jun 2004
Posts: 124

Original Poster
Rep: Reputation: 15
it would be nice to have it always running (whenever the machine is on) in vt6 or something (that isn't normally used)

also, with the "su bmon" in the local script, it doesn't finish booting (to the login prompt) until I close that bmon script...
 
Old 04-21-2005, 01:37 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
With my method it WILL be running, and the boot-process
will continue ... you just won't be able to switch to it.

Does it require any interaction?


Cheers,
Tink
 
Old 04-21-2005, 01:44 PM   #7
ImpactDNI
Member
 
Registered: Jun 2004
Posts: 124

Original Poster
Rep: Reputation: 15
yeah, it shows graphs/detailed info about bandwidth usage (just nice to be able to see)
 
Old 04-21-2005, 03:28 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
In that case have a close look at the possibility
of using screen ... something like
su - bmon -c "screen -d -m /usr/bin/bmon "
may be just what you want ... you can then
later on e.g as root do a
su - bmon
screen -r -d
and actually interact with it ...


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto login as root (or other user) in console mode Peter_Peck Linux - General 4 05-01-2009 02:05 AM
adminstrator login while auto-login is on? joshknape Linux - General 5 07-19-2005 04:51 AM
Auto login normal user debian a10392 Debian 3 01-14-2005 06:30 AM
Auto-login and auto-restart... TankerKevo Red Hat 2 10-04-2003 07:52 AM
Auto login default user? zebthepilot Linux - General 2 01-15-2003 04:46 PM


All times are GMT -5. The time now is 12:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration