Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/motd, /etc/issue and X terminals
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
cantao
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 166

PostPosted: Tue Jun 06, 2006 12:42 pm    Post subject: /etc/motd, /etc/issue and X terminals Reply with quote

Hi Friends!

I wan't to put the contents of /etc/motd (or /etc/issue) every time a user opens a new X terminal (xterm, konsole, urxvt, Eterm, whatever), or login via SSH.

Messages on these files only show up only when logging through console.

Is there any clean and easy way to do that?

Thanks a lot, Cantão!
Back to top
View user's profile Send private message
Dizzutch
Guru
Guru


Joined: 09 Nov 2004
Posts: 463
Location: Worcester, MA

PostPosted: Tue Jun 06, 2006 12:53 pm    Post subject: Reply with quote

add a line to their .bashrc to read /etc/motd
-Dizz
_________________
Help the confused! Adopt an unanswered post!
prepend [solved] to your post title when you feel your issue is resolved.
Worcester Judo
Back to top
View user's profile Send private message
cantao
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 166

PostPosted: Tue Jun 06, 2006 1:07 pm    Post subject: Reply with quote

Hum... That's exactly the alternative I'm trying to avoid. :)

Thanks a lot, Cantão!
Back to top
View user's profile Send private message
grimm26
Guru
Guru


Joined: 23 May 2004
Posts: 313
Location: Chicagoland, IL

PostPosted: Thu Jun 15, 2006 9:17 pm    Post subject: Reply with quote

For logins via ssh, you can set the Banner in /etc/ssh/sshd_config to poitn to the /etc/motd or whatever you like.
_________________
"Blessed is he who finds happiness in his own foolishness, for he will always be happy".
Back to top
View user's profile Send private message
cantao
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 166

PostPosted: Fri Jun 16, 2006 9:56 am    Post subject: Reply with quote

Wow, cool man! That solves 50% of my problem :-D

Thanks a lot, Cantão!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum