Ubuntu :: Configure SSH To Display A Warning Banner At Login
Aug 27, 2010configure SSH to display a warning banner at login
View 1 Repliesconfigure SSH to display a warning banner at login
View 1 RepliesI'm trying to secure a workstation according to the DISA STIG and updated this machine from f10 to f12 to take care of a lot of kernel and openssl vulnerabilities.
I've gone into the Login Manager by running /usr/bin/kcmshell4 kdm --lang en_US as root, turned off themed greeter to enable the Dialog tab and inserted the login banner in the Greeting field. I checked the Xresources file in both /etc/kde/kdm and /etc/X11/xdm and the xlogin*greeting: field has my banner.
However when I restart the machine I am not prompted by the banner and when I select a user I am not prompted by the banner.
I'm not sure if this could be the issue but I get errors when launching kcmshell4:
Quote:
I have to sudo -s from the user with uid 1003 to root. does this need to be run from real root?
CODE:
cd /etc/X11/gdm
awk '/^#?Greeter=/
[code]....
How would i force All connection oriented network services to display a legal warning in terms of banner before any fuctional operation by user?
View 10 Replies View RelatedHaving a little issue with creating a login message banner in RHEL6 that uses two buttons. One for Accept which logs the user in. The second for Cancel which immediately logs the user out. I've modified the /etc/gdm/PostLogin/Default file to have the script, posted below, and it worked perfectly fine in RHEL5. But in 6, when you click Cancel, the user is still able to log in. It even states in the system logs that the user cancelled the login.As you can see, I have the script using the 9th field of the user's env to get the PID, and using the kill command to end the process, which should be logging the user out right away if they click the Cancel button. This works in 5 without issue (though I used -f5 in RHEL5, had to move it to -f9 for RHEL6).
View 4 Replies View RelatedWhen I become root and try to run gedit, I get the error:
No protocol specified
(gedit:219: Gtk-WARNING **: cannot open display: :0.0
This does not happen from my user profile....xhost + actually solves the issue....so I guess I just need to add the host root to the list of hosts allowed to access the x server...
I try xhost +root......but that does not work....
I need to get gksu to run programs. The goal is to be logged in as user1 and run firefox or google-chrome with user2 's settings stored in their own home directory. I'm trying the following with no success:
Code:
user1@hostname:~$ su user2
Password:
user2@hostname:/home/user1$ google-chrome
No protocol specified
(google-chrome:17144): Gtk-WARNING **: cannot open display: :2.0
Code:
user2@hostname:/home/user1$ firefox
No protocol specified
No protocol specified
Error: cannot open display: :2.0
Code:
user2@hostname:/home/user1$ gedit
No protocol specified
(gedit:17162): Gtk-WARNING **: cannot open display: :2.0
I was running Ubuntu 10.10 Maverick with no big problems till last 3 days ago.
The update manager checked some updates to install and after installing them, I had no graphic desktop any more. Only the command line.
I tried to recover it by starting the X again.
Code:
But did not worked
So I've tried to install the nVidia driver again. I looked at nVidia Linux drivers site for how to do it and Ubuntu documentation and when I tried to
Code:
I just could not use gedit. It cannot open display. I googled for three days but could not solve it. I found some similar answers here at LQ but none was similar to my situation or worked even when I tried.
I am still learning the ropes on Ubuntu server. I am trying to set up samba, but when I use the "gedit" command, I get this error:
GTK-WARNING **: cannot open display
I had installed the gedit command by using apt-get and aptitude, but still no luck. I am using virtualbox to test Ubuntu Server 9.10.
planning to upgrade to the next LTS version i.e. 10.04. Have already applied all the updates and got the system up-to-date prior to upgrading. But when the upgrade starts I get the following message: Upgrading may reduce desktop effects and performance in games and other graphically intensive programs.This computer is currently using the AMD 'fglrx' graphics driver. No version of this driver is available that works with your hardware in Ubuntu 10.04 LTS.
Do you want to continue ?Obviously, I clicked on NO and got out.What gives ? How come an upgrade is supposed to DEGRADE performance ? What kind of upgrade is that ? Also what is the implication for me ? Will I have to happy with 8.04 forever ?The machine in question is a Toshiba Satellite A100. I use GIMP quite a bit on it, so problems with graphics intensive applications is kind of worrying.What am I supposed to do ?? Upgrade anyway or stick with 8.04 ?
I'm pretty new to Ubutnu and Linux in general so take it easy on me. I'm a Senior at the University of Houston and part of our final project involves running an application in Ubuntu that was developed by another university. It installs fine, but when I run the command the launch the configure gui I get a strange warning message.
View 2 Replies View RelatedJust finnished a fresh install of Squeeze. In a console, as root, when i type gedit i get: # gedit No protocol specified
(gedit:24284): Gtk-WARNING **: cannot open display: :0.0
For example, the gparted application menu item doesn't work; using it means that there is almost no filesystem support. The only way to get it to work is to open a terminal, run 'su -', and then open it from there.As another example, I tried creating a nautilus script to open files as root with a command like this:
Code:
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gnomesu -c "gnome-open '$uri'"
done
When I try using it, it just fails. Typing out the command in the terminal gives this (tested on a text file):
Code:
No protocol specified
(gedit:13672): Gtk-WARNING **: cannot open display: :0
I'm pretty sure the problem is that it's granting privileges, but not using the full root environment, or something along those lines.
Im trying to access gparted, i get an error
Quote:
(gpartedbin:4918): Gtk-WARNING **: cannot open display:
I am connect via vnc if this helps.
I've been searching for a permanent solution for some time now, but the threads containing the same error message never seem to be about the same issue.I want to:I'm not trying anything fancy, all I want to do is open a write-protected file with gedit as root, like so:
Code:
# sudo gedit /usr/bin/deadbeef
..but every time I try, no matter the file, I get this error message:
Code:
(gedit: [process #] ): Gtk-WARNING **: cannot open display
I already know: I can circumvent this by going:
Code:
# xhost +local:root
# sudo su
# export DISPLAY=:0.0
[code].....
I'm trying to install Fedora10 on my new desktop. It has Windows 7 beta on it and Vista. It starts up fine and I select install. For some reason my wired usb keyboard will not respond unless I press the caps lock button while it loads the begging. (I don't know if another button will work, ive only used the caps button since i can see the light come on) once it loads i skip the disk check and anaconda runs, i get the warning (mini-wm:1462): Gtk-WARNING **: cannot open display: :1 .
View 1 Replies View RelatedJust installed F15, was everything fine, but then gnome got away, from terminal I have<gnome-session:1951): Warning can't start display message.Before that I put in config file one extra line to start tint2 like <sleep 3 && tint2.Not sure was it the reason?
View 4 Replies View RelatedI am using SLES 10 SP3(x86_64). I was trying to install gtk/wxwidget through yast.
After that i rebooted my system, now system is failing to load in GUI mode.
If i can give the log of last few lines are as follows
Then it asks for login, only shell is available for me. How to login to gui mode..
I tried using the command gnome-session it gives error (gnome-session: 4101): Gtk-Warning **: cannot open display:
Also i tried using init 5, but again it prompts the my servername.
Gnome Forum have told me that changing the appearance of gdm I run: sudo -u gdm dbus-launch gnome-appearance-properties but I get this error: (Gnome-properties-Appearance: 18 047): Gtk-WARNING **: can not open display:
View 3 Replies View RelatedI installed Ubuntu 10.04.1 Server x86_64 minimal, updated, upgraded, then I blacklisted all not used modules in /etc/modprobe.d/blacklist.conf:
[Code]..
System information disabled due to load higher than 1. What caused that ? It is a test system in VirtualBox.
Same problem with 11.4 x64 DVD version (gnome default). System ends with text before showing logon screen allso in failsafe
[code]...
Debian 5.0. Lately after login following warning popup;Your system had a kernel failure
There is diagnostic information availiable for this failure. Do you want to submit this infomation to the www.kerneloops.org
-> Yes
$ uname -aLinux vm0.debian50 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 GNU/Linux
Reboot to old kernel 2.6.26-1 the said warning doesn't popup. Reboot again to kernel 2.6.26-2 and after login no kernel failure warning popup. I did it twice. IIRC I encountered this problem before.
I am trying to make wine work for explorer. I followed some instructions on this link [URL] To follow this link, I am supposed to
cd ~/ies4linux/ie6
cp user.reg ~/user.reg.old
gedit user.reg
1st and 2nd line went well 3rd line when I try to execute the command gedit user.reg (gedit:2573): Gtk-WARNING ** cannot open display I then /ies4linux/ie6# ls dosdevices(in blue) drive_c(in blue) system.reg(in white) userdef.reg(in green) user.reg
I have installed Ubuntu 11.04, 64 bit and now I am trying to install/configure MFC-7420 scanner part (printer works fine)I tried to follow the steps listed at http://ubuntuforums.org/archive/index.php/t-590793.html, but I don't have etc / udev / rules.d/45-libsane.rules file to edit and can not continue with the remaining steps of the guide.
I also tried to follow the steps provided by the Brother Solution Center http:[url].... I have downloaded brscan2 64 bit and installed without error but when I tried to install the brscan-skey-0.2.1-3.amd64.deb using >sudo dpkg -i --force-all brscan-skey-0.2.1-3.amd64.deb I get the following error:
************************************************** **************************************************
sudo dpkg -i --force-all brscan-skey-0.2.1-3.amd64.deb
[sudo] password for aUser:
dpkg: warning: overriding problem because --force enabled:[code].....
Which dependencies am I missing? or What am I doing wrong?
In 8.04 i used this command to manually configure my graphics adapter.sudo displayconfig-gtk
I would like to do the same thing in 9.10 and 10.04. How do i do it?it is a unichrome pro in and older everex stepnote.
Looking for a newb-type step by step process for configuring ubuntu to 1) recognize both the onboard video card as well as the PCI graphics card and 2) how to set up three displays with separate desktops (able to mouse-over from screen to screen). So far the 20+ hours searching online has yielded excessively complex instructions, inappropriate instructions, or ancient posts. Is this config even possible? Again, I am learning so the instructions need to be very deliberate. PNY GeForce FX 5200 PCI 256 MB 2 Port VGA + S-Video Graphics Card VCGFX522PEB and an onboard display apdapter (Intel P4 Chipset 845GV).
View 1 Replies View RelatedI set-up my Sudo it works but when I use Gedit I get the following message
Jean-Luc@localhost:~> sudo gedit /etc/fstab
(gedit:7137): Gtk-WARNING **: cannot open display:
samething with /etc/sudoers
If I use vi it's ok, I can modify and save. In Fedora it run ok, but with opensuse?
Karmic 9.10 latest updates
Nvidia GeForce 6150 LE
Nvidia driver 185.18.36
Monitor Acer P205H - 1600x900 native
I can't configure the monitor. and the display.
I've tried with both the built in display configure and the Nvidia one. Can't choose 1600x900 on either one.
I either can't see all the display on the monitor, or it takes on some weird panning mode and looks like the display is about 2500x1500 or something.
Here's the xorg.conf file. Clearly it does not see the new monitor and the modes are wrong. These settings are for the previous monitor. How Can I fix this so that my display works properly? Thanks.
Windy
Code:
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
code....
I performed an apt-get upgrade and now my SSH Welcome Banner looks like the following. You'll notice that the banner repeats itself. The bottom half is acutally "static" and doesn't change. The top part is what I would normally see. How do I remove the bottom portion of the banner? Or modify the banner? Using Ubuntu Server 10.04 LTS
[Code]....
what is the configuration file responsible for the X system !!! i did not have /etc/X11/xorg.conf file and the X server was pretty good and i can open it through "startx" command.i created xorg.config by "xorgsetup" program but i could not feel any change. i wanna reconfigure my display driver to be sure it's functioning at maximum performance.
View 8 Replies View Related