LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
Warning Banner for GNOME Users


Hi,

CODE:
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 >gdm.conf.new
mv gdm.conf.new 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?

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

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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:

/.../
Greeter=/usr/bin/gdmlogin
Welcome=Authorized uses only!\nAll activity may be monitored
/.../

And to see if it works, log in using Gnome

Sasha
 
  


Reply



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 07:34 AM
Warning Banner in RHEL4 drsmith57 Red Hat 1 04-11-2008 01:38 PM
warning banner on login triley Linux - General 1 12-20-2005 12:51 PM
sshd_config banner to show users IP tommytomato Linux - Security 5 06-20-2004 05:50 AM
Warning Banner Rig24 Linux - Newbie 2 12-11-2002 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 PM.

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