LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-28-2006, 03:52 PM   #1
Compuwiz
LQ Newbie
 
Registered: May 2006
Posts: 12

Rep: Reputation: 0
Need pre-login banner/text, how to setup?


I have done some searching and came to this website:
http://www.puschitz.com/SecuringLinu...ngLoginBanners

Which mentions methods of making a pre-login banner. I tried following the directions for the text login banner, and that works, but when I follow the directions for the graphical pre-login banner, I get cut off.

Quote:
For GDM you could make the following changes to require a user to acknowledge the legal banner by selecting 'Yes' or 'No'. Edit the /etc/X11/gdm/PreSession/Default file and add the following lines at the beginning of the script:

if ! gdialog --yesno '\nThis system is classified...\n' 10 10; then
sleep 10
exit 1;
fi
I am using Suse 10 and Fedora Core 5; need to set this up on both.
On both Suse and Fedora, the /gdm/ folder of the /etc/X11/gdm/PreSession/ path does not exist.

I also went here:
http://penguincares.no-ip.org:9090/archives/000356.html

Which mentions "Displaying Login Banners", but the website cuts off short and does not display this section.

Thanks.
 
Old 06-28-2006, 04:01 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I use gdm on Debian Sarge. I just put the message in /etc/gdm/InfoMsgFile. Then uncomment and edit the line in gdm.conf
Code:
InfoMsgFile=/etc/gdm/InfoMsgFile
more shows that line about 80% through the file. Hope this helps...

Edit: I actually just realized that I also have an /etc/X11/gdm directory that contains the same stuff. I don't know which is used by default, and it looks like I just put the message in both...

Edit2: nevermind. /etc/X11/gdm is just a symbolic link to /etc/gdm...

Last edited by pljvaldez; 06-28-2006 at 04:04 PM.
 
Old 06-29-2006, 09:51 AM   #3
Compuwiz
LQ Newbie
 
Registered: May 2006
Posts: 12

Original Poster
Rep: Reputation: 0
As I said in my first post:

Quote:
On both Suse and Fedora, the /gdm/ folder of the /etc/X11/gdm/PreSession/ path does not exist.
...I was actually wrong here. Fedora DOES show up, Suse does not.

In Suse when I go to Yast2> System > ect/sysconfig Editor > Desktop > Display Manager, the configuration file in /etc/sysconfig/displaymanager shows that it is currently using gdm as the display manager. My question, if it says it is using gdm, why is there no gdm folder where it is supposed to be?

In /etc/X11/ I DO have an xdm folder, but no "PreSession" or "InfoMsgFile" folder.

I think I should be able to get my Fedora to work, just having some struggles with Suse.
 
Old 06-29-2006, 10:26 AM   #4
Compuwiz
LQ Newbie
 
Registered: May 2006
Posts: 12

Original Poster
Rep: Reputation: 0
I did get the pre-login script to work on Fedora, yay! Now I need to get it working on Suse. The login banner needs to have some kind of authentication (yes if they agree and logs them in, no it waits 10 seconds and prevents login).

That is what the if statement in my first post does.
 
Old 06-29-2006, 10:28 AM   #5
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Can't you use the graphical configuration tool ("gdmconfig" or "gdmsetup")?
http://yolinux.com/TUTORIALS/GNOME.html
 
Old 06-30-2006, 11:05 AM   #6
Compuwiz
LQ Newbie
 
Registered: May 2006
Posts: 12

Original Poster
Rep: Reputation: 0
I checked out the graphical configuration tool like you said with that link. The section that talks about gdmconfig and gdmsetup reference the "gdm" folder at multiple places, and Suse does not have it in the specified locations. I think that website that you gave me was based off of Fedora's gnome.

In Suse when I go to Yast2> System > ect/sysconfig Editor > Desktop > Display Manager, there is a "KDM_Greetstring" field which has the description of "Special greeting words in kdm." I tried putting a test message in there, save, logoff, login, and nothing. Which does make sense, because within the DISPLAYMANAGER field, it says its using gdm, so the kdm greetstring should not work either way.

I am starting to think that Suse cannot have a pre-login banner, and maybe only Fedora?
 
Old 08-30-2006, 02:37 AM   #7
mwfolsom
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
look again, it works in Suse!

Hi:

In SLES10, SLED10, and Suse 10 go to /etc/opt/gnome/gdm and edit the file gdm.conf -

Find the line:
#InfoMsgFile=

uncomment it and point it to the text file you need displayed.


Later -


Michael
 
  


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
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 13 07-24-2020 03:05 PM
How to add a text banner stormtracknole Slackware 2 01-25-2006 11:01 AM
Text Tools - Banner Paean Linux - Newbie 5 12-13-2005 01:51 AM
login banner on RH 8 herrmag Linux - Newbie 1 02-14-2005 01:18 PM
telnet - banner but no login? polo76 Linux - General 2 06-23-2003 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration