Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-28-2006, 03:52 PM
|
#1
|
LQ Newbie
Registered: May 2006
Posts: 12
Rep:
|
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.
|
|
|
06-28-2006, 04:01 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
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.
|
|
|
06-29-2006, 09:51 AM
|
#3
|
LQ Newbie
Registered: May 2006
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
06-29-2006, 10:26 AM
|
#4
|
LQ Newbie
Registered: May 2006
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
06-29-2006, 10:28 AM
|
#5
|
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515
Rep:
|
Can't you use the graphical configuration tool ("gdmconfig" or "gdmsetup")?
http://yolinux.com/TUTORIALS/GNOME.html
|
|
|
06-30-2006, 11:05 AM
|
#6
|
LQ Newbie
Registered: May 2006
Posts: 12
Original Poster
Rep:
|
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?
|
|
|
08-30-2006, 02:37 AM
|
#7
|
LQ Newbie
Registered: Aug 2006
Posts: 1
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 10:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|