Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-10-2010, 01:13 AM   #1
Registered: Nov 2009
Posts: 30

Rep: Reputation: 15
Warning Banner for GNOME Users


cd /etc/X11/gdm
awk '/^#?Greeter=/ \
{ print "Greeter=/usr/bin/gdmlogin"; next }
/^#?Welcome=/ \
{ print "Welcome=Authorized uses only!\\n" \
"All activity may be monitored " \
"and reported."
next }
{ print }' gdm.conf >
mv gdm.conf
pkgchk -f -n -p /etc/X11/gdm/gdm.conf

I believe the above commands are used to create warning banner for GNOME users. Just want to what are the available commands that i can use to check whether the settings are in place?

Old 01-10-2010, 01:25 AM   #2
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
If you could put [code] tags around that code, it would be a lot easier to read and/or examine. But from the looks of it, it's checking file gdm.conf for strings "greeter=" and "welcome=", and giving them values, and putting the finished product into a new file, and finally moving that new file to gdm.conf. Last, it does some `pkgcheck` thing that I don't recognize.

As far as "what commands available", please tell us (A) what Linux (or other) distro this question applies to, and (B), which settings are you referring to?? You just want to know if the changes were made? Try this:

shell# cat /etc/X11/gdm/gdm.conf

and you should see something more or less like:

Welcome=Authorized uses only!\nAll activity may be monitored

And to see if it works, log in using Gnome



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
Creating a Security Warning Banner on CDE Before logins? as400 Solaris / OpenSolaris 1 06-28-2008 08:34 AM
Warning Banner in RHEL4 drsmith57 Red Hat 1 04-11-2008 02:38 PM
warning banner on login triley Linux - General 1 12-20-2005 01:51 PM
sshd_config banner to show users IP tommytomato Linux - Security 5 06-20-2004 06:50 AM
Warning Banner Rig24 Linux - Newbie 2 12-11-2002 11:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:49 PM.

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