General :: "sudo Su - Someuser -c Xterm" Doesn't Work

Oct 2, 2009

I have a user A that need to log into a linux box, change to user B, and then fire up a GUI.

I've tried this:

Code:

[userA@server ~]$ sudo su - userB -c "xterm"
X connection to localhost:10.0 broken (explicit kill or server shutdown).

Running "echo $DISPLAY" shows the same value for user A as for user B when I first run "sudo su - userB". I thought that if the $DISPLAY variable is set correctly this would work, but apparently it doesn't. Does anyone else here know how to get this working?

EDIT: I forgot to mention that I'm SSH-ing into the server, and have x-forwading enabled.

View 1 Replies


ADVERTISEMENT

General :: Sudo Command Doesn't Work

Oct 17, 2010

I want to install some software using sudo apt-get command,but it dosen't work.(my network works well) how to handle it? below is the output of terminal:

@ubuntu:~/Downloads$ sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4
Reading package lists... Done
Building dependency tree

[Code].....

View 4 Replies View Related

General :: Ubuntu / Sudo Also Doesn't Work

Jun 30, 2011

I have ubuntu server 8.x which works Ok but the other day I changed the owner of some files "the directory /etc" from root me. Now a lot commands do not work like reboot and such. So I tried to put ownership back to root and I can't. I say I dont have proper privilege. Sudo also doesn't work. I conect to the server using ssh with putty. What could I do to fix the problem? Update to the new version? This server has been working really well for a few years. The reason I changed the owner of the directory to myself is so I could edit some config files from my windows machine using a FTP client like WinSCP.

View 3 Replies View Related

General :: Why Doesn't 'sudo Gedit' Work In Vinagre

Oct 13, 2010

I've set up a low cost box with Ubuntu Lucid Lynx at home behind a router, and managed to get remote access running. My goal is to be able to host a small website and work on it remotely, so I isntalled ftp (vsftpd). When I tried to edit the vsftpd.conf file in Vinagre from work, I could only open it read-only, no surprise. When I tried 'sudo gedit' or 'sudo gedit /etc/vsftpd.conf' from terminal in Vinagre, I received the prompt for the password to elevate privileges (again, expected); however, after I hit Enter, nothing happens. I've tried a bunch of different things, but I can't get it to work. I can stop & start my ftp service with 'sudo service vsftpd stop/start' and it seems to work fine.

View 2 Replies View Related

Slackware :: XTerm*reverseVideo: True Doesn't Work In KDE?

May 18, 2011

I have the following line in my .Xresources, and it only works when I'm not running KDE:

Code:
XTerm*reverseVideo: true When I start up XTerm in Xfce, TWM, or any other window manager, I get the expected black background. When I launch XTerm in KDE, I get a white background, meaning that the reverseVideo setting is not taking effect. When I'm in KDE, launching XTerm with -rv does give me an XTerm with a black background. Obviously, having to add this switch every time I launch an XTerm in KDE is suboptimal, no matter how you try to automate it. Manually running xrdb -merge ~/.Xresources and then launching XTerm immediately afterwards does not make a difference.

If you're wondering why this is a concern, it's because all 256-color vim color schemes (xoria256, desert256, inkpot) require reverseVideo to be set so that XTerm launches with a black background. You get a black-on-black cursor otherwise.

View 6 Replies View Related

Software :: Ctrl-enter Doesn't Work When Running Midnight Commander In Xterm?

Feb 16, 2010

When running MC in xterm or gnome-terminal, it doesn't seem to allow the use of Ctrl-enter and Ctr-shift-enter to copy marked files to the command line.

Does anyone know of another way to cause this to happen or a way to enable it under xterm/gnome-term?

View 6 Replies View Related

OpenSUSE :: Sudo Gedit Doesn't Work - Cannot Open Display

Nov 7, 2010

I am trying to edit a postinfo.xsl in my root file dir, and with the command:

frank@linux-avnb:~> sudo gedit

(gedit:14150): Gtk-WARNING **: cannot open display: frank@linux-avnb:~>

I get the following. what am i doing wrong?

View 3 Replies View Related

Ubuntu :: Sudo Command Doesn't Work Anymore - No Valid Sudoers Sources Found

Jan 21, 2011

I was changing some file permissions with the chmod 777 command and i accidentally executed:

Code:

sudo chmod 777 /*/*/*/*

and now i can't get root access to anything. If I try executing a sudo command i get:

sudo: /etc/sudoers is mode 0777, should be 0440
sudo: no valid sudoers sources found, quitting

View 9 Replies View Related

General :: In Xterm The Numpad 1 And 7 Buttons Does Not Work Properly

Feb 17, 2011

I use VNC, open an xterm, and for example when I press "NumPad7", it completes "Home" command. Also "NumPad1" is mapped to "End". In fact there is a code for .cshrc that does the work required. But unfortunately I can't translate it into a bash code. Please help me to translate. Here is the code:

if ($?TERM) then
# fix the home, end, ins and del keys
if ($TERM == "xterm" || $TERM == "vt100" ||
$TERM == "vt102" || $TERM !~ "con*") then

[code]....

View 1 Replies View Related

General :: How To Copy Things In Xterm And Paste Them Outside Of Xterm

May 2, 2011

i have fluxbox and i need to know how to copy things in xterm and paste them outside of xterm.

View 2 Replies View Related

Ubuntu :: Typed "sudo Apt-get Install Zlib" But It Doesn't Work?

Jul 10, 2010

I have to install zlib for running ./configure.I typed "sudo apt-get install zlib" but it doesn't work...Quote:configure: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping

View 8 Replies View Related

Ubuntu Installation :: "Error Booting Operating System" - Sudo Grub; Root (hd0.0)...) Doesn't Work

Mar 1, 2011

I installed 10.04 (clean install) on a 250G drive (partitioned to 107G for the system files). It was working fine, until I wanted to install Window$ for the use of Adobe stuff. I popped the Windows XP disc in, it loaded its files, then I tried to choose a partition for installation. There was an error saying that I can't do that, and needed to delete a partition blah blah. I thought it was too much trouble, so I quit and just wanted to use my 10.04. Booted, and it says "Error booting operating system" I WAS SHOCKED.

I tried to install grub (but don't need that right? I DO NOT want to dual boot now), but the usual method ( the sudo grub; root (hd0.0)...) doesn't work ,because something like "stage1" is missing. I tried many methods by still the same error. The reason I do not want a clean install is that I did many fixes on my 10.04 so that it would work with my EeePC 1001pxd, and I do not want to go through that again. I will be checking my email frequently on other computers if I have a chance.

View 1 Replies View Related

Ubuntu Installation :: Software Centre Doesn't Work - Error "sudo Apt-get Install Vlc Vlc-plugin-pulse Mozilla-plugin-vlc"

Jan 31, 2011

I have just installed the newest version of ubuntu (10.10 the maverick meerkat) and im struggling installing any programs, wine and vlc arnt appearing on synaptic package manager and anything i try to do in either the command promt or ubuntu software centre doesnt work either. On the command promt when i follow the commands as seen on various tutourials the command promt comes back with an error. VLC example given below.

[Code]...

View 5 Replies View Related

General :: Aliases Work After Running Sudo SU Command?

May 7, 2010

I can make aliases fine by editing the .bashrc file in my home directory, but the first thing I do when I open a terminal window is sudo su so I don't have to type sudo in front of every command. The problem is, I am then not able to use my aliases. How can I make aliases that work after I run the sudo su command?

View 2 Replies View Related

General :: "x" Key Does Not Work On Xterm

Jul 4, 2011

It used to work. I had no problem typing the letter "x" on my xterm. But starting yesterday, pressing "x" key does not print anything on xterm. I first thought it was bad keyboard, so I replaced with a new one, but the problem still exists. Strangely, the "x" key works if I am in the vi editor or su to root. So, my guess is I have accidentally set the "x" key to do something in xterm, but I do not know how to reset it. I tried the "reset" command, but that does not work.

View 5 Replies View Related

General :: Make Shared Keys .ssh/authorized_keys And Sudo Work Together?

Jul 15, 2010

I've setup the .ssh/authorized_keys and am able to login with the new "user" using the pub/private key ... I have also added "user" to the sudoers list ... the problem I have now is when I try to execute a sudo command, something simple like:

$ sudo cd /root

it will prompt me for my password, which I enter, but it doesn't work (I am using the private key password I set)Also, ive disabled the users password using

$ passwd -l user

I am trying to harden my system ... the ultimate goal is to use pub/private keys to do logins versus simple password authentication. I've figured out how to set all that up via the authorized_keys file.Additionally I will ultimately prevent server logins through the root account. But before I do that I need sudo to work for a second user (the user which I will be login into the system with all the time).

For this second user I want to prevent regular password logins and force only pub/private key logins, if I don't lock the user via" passwd -l user ... then if i dont use a key, i can still get into the server with a regular password.But more importantly I need to get sudo to work with a pub/private key setup with a user whos had his/her password disabled.

1) I've adjusted /etc/ssh/sshd_config and set PasswordAuthentication no This will prevent ssh password logins (be sure to have a working public/private key setup prior to doing this

2) I've adjusted the sudoers list visudo and added

root ALL=(ALL) ALL
dimas ALL=(ALL) NOPASSWD: ALL

3) root is the only user account that will have a password, I am testing with two user accounts "dimas" and "sherry" which do not have a password set (passwords are blank, passwd -d user)

The above essentially prevents everyone from logging into the system with passwords (a public/private key must be setup). Additionally users in the sudoers list have admin abilities. They can also su to different accounts. So basically "dimas" can sudo su sherry, however "dimas can NOT do su sherry. Similarly any user NOT in the sudoers list can NOT do su user or sudo su user.

View 3 Replies View Related

Slackware :: Intel Graphics / Vertical Lines From Xpdf/gv Under Xterm Stick To Xterm Window Making It Unreadable?

Jun 13, 2011

Start xpdf or gv. Click an xterm to be active and slide it over xpdf/gv. Vertical lines from xpdf/gv under the xterm stick to the xterm window above and make it unreadable.

The problem does NOT show with KDE default settings with display effects on but does show in fvwm, xfce etc, and in KDE without effects.

On a system with a Sandy Bridge integrated graphics (i5-2400) the problem went away by downgrading to xf86-video-intel-2.13.0. But it was not enough for another system with 945G which needed downgrading to xf86-video-intel-2.12.0.

View 3 Replies View Related

General :: Mail() Function Doesn't Work With HOTMAIL But Its Work With Others?

Apr 27, 2011

i have tried mail function in php to send email from the local host its work for yahoo but not with HOTMAIL whay ! actually i tried to figure it out,

View 1 Replies View Related

Software :: ERROR 1045 (00000): Access Denied For User: 'SOMEUSER@linuxdev2' (Using Password: YES)

Feb 28, 2011

I need to get an old MySQL Client(4.1)to connect to an even older MySQL Server (3.23).The goal is to do a Java/JDBC connect to the old Linux/MySQL 3.23 database, in order to update text information for a Lucene search (which will also run on linuxdev2). The problem is that I can't connect to the Linux/MySQL 3.23 server from a remote Linux/MySql 4.1 client. I can't connect from JDBC; I can't connect from "mysql":

Code:

LOCAL (intranet):
mysql -uSOMEUSER -pSOMEPASSWORD mysql => OK
REMOTE (from linuxdev2):
mysql -uSOMEUSER -pSOMEPASSWORD -hintranet mysql => FAILS:
ERROR 1045 (00000): Access denied for user: 'SOMEUSER@linuxdev2' (Using password: YES)

[code]....

View 1 Replies View Related

General :: Sudo Pppoeconf Made DSL Working But NetworkManager Applet In Panel Ceased To Work

Nov 1, 2009

A fresh installation of ubuntu 9.10 stopped my DSL internet connection. sudo pppoeconf solved the problem of net, but NetworkManager applet in panel now not working. it says wired networks, device not managed.

View 2 Replies View Related

General :: CentOS / Sudo Doesn't Accept Root Password But Logging In As Root Works

Apr 9, 2010

I was trying to edit a file requiring root permissions, so I used sudo. I typed the root password and it failed. This happened three times, and the process was ended. I then logged in as root (su) and was able to navigate to the file and make changes as root. Am I missing something? How would I edit the sudoers file such that this password would work? Or is there another way to log in to the sudo group to make these changes? How do I set sudo passwords?

View 1 Replies View Related

Slackware :: Terminal Xterm Title Is Too Dynamic (title Doesn't Change Manually)

Aug 21, 2010

So when I upgraded to Slack64 13.1 on my asus MB homebrewed desktop and Slack 13.1 on my compaq presario a900 laptop, I started having issues with the xterm title (in Terminal--not Konsole) being too dynamic. By "too dynamic" I mean that I can't actually change the title. The dynamic title (from my .bashrc) is basically just pwd. Whenever I try to set the title (via terminal->set title (menu)), I changes it for a split second, and then reverts back to the dynamic title.

This is merely a petty annoyance, so to get around it, I added an xtitle function that I grabed somewhere online (just echos "�33]0;$*�07"). So for nano-ing some file, I'd type:xtitle some_file.txt; nano some_file.txt

That works just fine (kind of annoying to type though). running xtitle alone won't actually change the name either though (I'm pretty sure it's the same command as what terminal does anyway). That is, running: xtitle some_file.txt

changes the title for a split second, and the reverts back to my old pwd.What I really want is to have it dynamically name it "some_file.txt" whenever I use nano, but that appears to be a functionality of zsh (with the preexec() fxn).I'm wondering if anyone else has had this problem, and if you have a fix for it.

View 3 Replies View Related

General :: Sudo Cd /root Gives Sudo - Cd - Command Not Found

Jan 6, 2011

Kernel 2.6.21.5, Slackware 12.0

Code:

Code:

On the other hand

Code:

So, I do not understand why the notification "sudo: cd: command not found", considering cd is a bash built-in command.

View 3 Replies View Related

Ubuntu :: Sudo Doesn't Keep Environment Variables

Jul 19, 2010

When I execute something with sudo, the environment that it executes in doesn't have all the environment variables from /etc/profile{,.d/} defined. I googled around and found that there is a way to get the environment variables from the calling environment to be carried over to sudo's own environment, but that's not exactly what I want. I just want sudo to read the /etc/profile and /etc/profile.d/ before executing commands.

View 2 Replies View Related

Ubuntu :: Sudo Doesn't Accept Password?

Oct 10, 2010

I've read through some threads here but the problem I'm having doesn't seem to be the problem others are having.

I just reinstalled 10.04 today after my last installation messed up after a month.

early when I first installed the terminal and sudo were working perfect but now, this is what I'm getting:

[sudo] password for dimebag:
<password>
Sorry, try again.
[sudo] password for dimebag:

[Code].....

I tried every solution I saw and nothing works. I've been having a heck of a time trying to install things.

View 3 Replies View Related

General :: Sound Doesn't Work / Get That?

Jan 27, 2010

I got a sound issue with my debian system
here is some outputs
lsmod

Quote...

View 3 Replies View Related

General :: Ctrl+alt+[f1 -f3] Doesn't Work?

Jan 13, 2011

ctrl+alt+[f1 -f3] switch doesn't work, but back to ctrl+alt+f7 works normal. When i switch from ctrl+alt+f7 to ctrl+alt+f1 I see that on the dash flashes on the screen.

View 2 Replies View Related

General :: Monitor Doesn't Work / Get That?

Feb 27, 2011

I've installed Linux suse 11.3 on my laptop, but the monitor doesn't work. my laptop is a VAIO one and it's graphic card is NVIDIA GEFORCE 310m, so
what should i do?

View 1 Replies View Related

General :: Live CD Doesn't Work On Old PII?

Jan 31, 2011

yesterday I was trying to install Puppy Lucid 5.2 on a old PC (PII 533mhz 265mb RAM). First of all I have launched the live cd, then set up language, time zone and keyboard... at this point pc stopped working and stay blocked on the desktop screen with no possibility to move pointer or use keyboard. Is it possible that hardware is too old to work with Puppy Lucid 5.2? May I have to try with a lighter OS (which one?)?

View 11 Replies View Related

General :: Rmi In Fedora Doesn't Seem To Work

Oct 3, 2010

i was workin on my rmi programs today in my f12,and then i executed all the files related to the program,it did get executed! but when i type the command start rmi registry that is to start the registry system,it fails to does so:

heres the o/p:
start: Unknown job: rmiregistry

the programs luks perfect and even got executed,sorry if the question is silly to be asked over her! i am completely new to fedora!

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved