General :: When Try To Execute Some App As Root On A Remote PC, It Doesn't Do?

Dec 26, 2010

When I SSH another machine and try to execute some GUI app, it does. But when I try to execute some app as root on a remote PC, it doesn't do and says:Code:X11 connection rejected because of wrong authentication.some-GUI-app]: Cannot open display:How do I make it work?

View 5 Replies


ADVERTISEMENT

General :: Execute Root Command Without Sudo?

Jan 24, 2010

On my ubuntu I have a command pm-suspend, which puts the computer to sleep. It has to be run with sudo. Since it is inconvenient to be forced to type the password every time I want my computer to sleep, I thought maybe there's a way around it. Naively I thought that if I'd create a script as root, that invokes pm-suspend, and then let anyone execute that script, I could run that script as my own user and then that script would be considered run by root and hence be allowed to run pm-suspend. Obviously that didn't work. The root-check procedure in pm-suspend still found out that the original executor was someone different from root.

Still I think something similar (although slightly more elaborate) should work.I'm thinking about the process that allows the user to mount hard drives for example. Normally root is required, but it is somehow bypassed by the gnome utility mounting.

View 8 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

General :: Executable File Apparently Doesn't Exist When Trying To Execute With Bash

May 9, 2011

I downloaded a program called tonespace http://www.mucoder.net/en/tonespace/ which I extracted and then tried to execute the executable file with ./tonespace. This gives me the following message:

bash: ./tonespace: No such file or directory

When I use the command: file ./tonespace I get this: tonespace: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

I dont get it. The file is clearly there, yet when trying to execute it bash doesn't seem to recognize it.

It has permissions rwxr-xr-x and is not owned by root. Am I overlooking something?

View 2 Replies View Related

Software :: Using Expect To Execute Remote Commands?

Dec 21, 2010

I'm trying to get Expect to execute commands on a remote server using SSH with username/password authenticationMy current expect script is

Code:
#!/usr/bin/expect -f
spawn ssh -tq root@my_hostname "whoami"

[code]...

View 2 Replies View Related

Ubuntu :: Ssh Commands Execute Locally Instead Of On The Remote Computer?

Jul 12, 2010

I can ssh to the remote computer OK, but the commands execute on the local machine, not the remote machine as they should. After much frustration I did the following hoping to clear the problem. I turned off all machines on my LAN, the hub and the router. I then rebooted everything in the reverse sequence - cable modem, router, hub, and then the computers.Then I reinstalled ssh on both machines.

sudo apt-get purge openssh-server openssh-client
sudo apt-get install openssh-server openssh-client
sshd in now running and port 22 shows on both machines. However the problem persists.

View 5 Replies View Related

Software :: Execute Script To Run Commands On Remote Server

Jan 1, 2010

I have an immutable script on server A, it executes a maintenance command on the remote servers where elevated privileges are needed. I want the developers on server A to execute the script and run it without being prompted for a password. The script contains scp root@serverB and ssh 'root@serverB', if run as root it runs great since I am using ssh keys. However, as regular users they are prompted for a password. If I do created their group on server B...etc and give the group sudo it would still ask for passwords right? Can I overcome this?

View 1 Replies View Related

Ubuntu :: Execute Long Running Jobs On A Remote Host?

Apr 1, 2011

What you do if the job takes a long time to finish and you don't want to wait.Say, I ssh to a remote server from my laptop and start a long-running job. Then few hours later I ssh again and inspect how did job run, its uotput and etc.

View 2 Replies View Related

Server :: Execute CGI On Apache Document Root

Mar 18, 2010

how can I run CGI scripts that are without extensions under the document root?i can not use ScriptAlias on the document root, i can run .pl scripts but i cant run any script without extension...ofcourse all files are executable on the fs.

View 8 Replies View Related

Server :: PHP Doesn't Execute The Modules

Jul 12, 2009

I'm under CentOS 5.2 with PHP 5.2.10 I compiled PHP from Source with ./configure --with-config-file-scan-dir=/etc/php.d but PHP doesn't start modules A PHPInfo says:

Scan this dir for additional .ini files (none)
additional .ini files parsed (none)

routes are correctly setted and the user have permissions for read the directory, just to be sure i changed the CHMOD to 777 but nothing.

View 1 Replies View Related

Software :: Execute Shell Commands That Require Root Password From PHP?

Jun 26, 2010

php. I am developing a web-interface for an application that sometimes needs root privs. Editting /etc/sudoers is not an option since the web interface needs to be portable to other users when they install my application. Is there any workaround ?PHP Code:

php code:$command = "./script.sh /dev/$DISKNAME &";$shellOutput = shell_exec($command); 
Code:

[code]...

View 2 Replies View Related

Debian Configuration :: When Root Crontab Is Edited The Execute Flag Is Removed?

Mar 3, 2011

I have been having trouble setting up a daily backup script with cron. It would basically never worked. Searched the net for answers but didn't find anything. I finally figured it out !! When root crontab is edited the execute flag is removed from #/var/spool/cron/crontabs/root. I change it with #chmod a+x /var/spool/cron/crontabs/root and all is good.

View 5 Replies View Related

Fedora :: Catalyst Control Center - No Option To Execute Amdcccle As Root

Apr 25, 2011

I need to invoke the catalyst control panel from Application->System Tools with administrator rights (so i can setup my dual monitor, which for now is in clone mode ) but there is no option to execute amdcccle as root.

I tried to call it from the terminal as amdxdg-su -c amdcccle but with no success. It asks for password and then does nothing.

So i m stuck.i cant setup the screens properly till i can access the CCC with root rights, how can i achive that?

I m using fedora 14 and catalyst ver. 11.2

View 2 Replies View Related

Debian :: Modify To Automatically Grant Root Privileges And Execute Commands When Starts?

Aug 22, 2010

I'm connected to the internet using a wireless router. Each time I boot, I have to grant root privileges and type in a shell: iwconfig wlan0 essid linksys key dhclient wlan0 Isn't there a file(or location) that I can modify to automatically grant root privileges and execute these commands when debian starts? Something like autoexec.bat in windows.

Something else I'd like to mention is when I execute iwconfig.... for the first time, I get this incomplete result:

IEEE 802.11bg  ESSID:"linksys"
Mode:Managed  Access Point: Not-Associated   Tx-Power=27 dBm
Retry  long limit:7   RTS thr:off   Fragment thr:off
Encryption key***********
Power Management:off

[Code]...

View 4 Replies View Related

Ubuntu :: Add A Custom Script To Execute When Logging And Shutting Down In Into A User Profile Like /home/test Or /root?

Oct 27, 2010

I am afraid to ask with so many things changing around in each new release.Where would one add a custom script to execute when logging and shutting down in into a user profile like /home/test or /root ?would this be rc.local?

View 2 Replies View Related

Server :: MySQL - Remote Access For Root?

Aug 9, 2010

I have a question in regards to enabling root remote access to the server.I am trying to use the mysql workbenchit kicks back an error saying "Access denied for user 'root'@'10.x.x.x' (using password: YES)" But I am able to login locally on the server.How do I enable root to long on remotely from any workstation?

View 3 Replies View Related

Fedora Security :: Disable Remote Root Login?

Apr 4, 2009

Remote root login is enabled. How do I disable this

View 14 Replies View Related

Server :: Can't Seem To Remove Rights For A Remote Root Connection?

Apr 2, 2011

I can't seem to remove rights for a remote root connection. Below you can see that the rights are present before and after the successful revoke command. I am using the correct command.

[Code]...

View 1 Replies View Related

Networking :: Send Mail To The Root / Any Account Of A Remote UNIX Computer?

Mar 29, 2010

Sending computer runs linux. Recieving runs OS X.

View 2 Replies View Related

Programming :: DBD::mysql::st Execute Failed: Column Count Doesn't Match Value Count At Row 1

Feb 24, 2010

I have the following perl/DBI script:

Quote:

#!/usr/bin/perl
use DBI;
my ($db, $user, $pw) = ('dbname', '****', '***********');
my $dbh = DBI->connect("DBI:mysql:$db",$user,$pw) or die "Cannot connect to $db: $DBI::errstr

[code].....

The error message is

[Wed Feb 24 13:03:27 2010] myscript.cgi: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at myscript.cgi. [Wed Feb 24 13:03:27 2010] myscript.cgi: DBI::db=HASH(0x8a30c60)->errstr

View 2 Replies View Related

Ubuntu Servers :: Crontab "randomly" Doesn't Execute

Aug 23, 2010

I am running ubuntu 10.04 as a web/file server. I have set up several cron jobs in the past which until recently were executing normally. However, a few days ago, cron jobs stopped executing after a restart. I was able to fix the problem by deleting and reentering the cron jobs, but only until the next restart. ps -ef lists cron.

Summary:
1.) Cron was working --jobs executed without error and restarts worked fine
2.) Cron jobs stopped executing after a restart about a week ago --ps -e still lists cron
3.) Removing all cron jobs and reentering them by copying and pasting fixes until next restart
4.) Cron job syntax is known to be correct since they were executing before this problem arose.

View 5 Replies View Related

Programming :: Socket And Timer Programming - Server Doesn't Execute Any Msg Which Client Sent

May 16, 2011

i have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.

#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....

View 1 Replies View Related

Ubuntu Networking :: Remote Desktop Viewer Doesn't Work

Sep 18, 2010

I have Lynx, trying to connect to a tightvnc server on a Win7 box on my LAN.

Server IP: 192.168.1.42:5900

The remote desktop window just goes black and pops up a dialog saying connection closed every time.However VNC works fine as I installed xtightvncviewer as an alternative and that connects, and I can view the Win7 desktop and control it and do everything you would expect.

I've also tried connecting using Android VNC viewer from my phone on my LAN and that also works fine so it appears to be an issue with Remote Desktop Viewer.Incidentally using R.D.V. on Intrepid into a tightvnc server on my old XP box worked fine.

View 9 Replies View Related

Ubuntu Multimedia :: When Sound At Remote Sink Flash Doesn't Work

Jan 23, 2010

i just reported a bug to launchpad (#511562. i'm not sure if this bug is in flashplugin-installer or pulseaudio.when i use firefox or chrome for watching a flash video from videos for example, all works good. i then transfer the sound to a remote sink using sound preferences > output > internal audio analog stereo on myuser@otherhost. after this is done, the flash video halts. this is also true if i restart firefox and start a new video, already having transferred the sound. sometimes you can see the video taking huge skips forward. for example, on a 3 minute music video, i see 3-4 different frames from different places in the video. the sound is ok though! 100% reproducible and if i transfer the sound back to local speakers the video resumes and plays perfectly.

View 1 Replies View Related

Server :: Git Push Origin Doesn't Update The Remote Repository Immediately

Jun 26, 2009

I set up a git repository on the live site of my website using git init. Then I created the same repo on my local machine using git clone command. Then I made a few changes and committed them to on my local repository. Then I tried to use git push origin alongside the ssh path to my repository on the remote machine to update my live website. However, I noticed that git-push only changes the head of my git repository on the remote machine and it doesn't change any file.

In order to update my remote repository I have to issue the following command after I use git-push.

PHP Code:

git reset --hard HEAD 

This is a two-step process for committing changes to the live site. I was wondering if it's possible to merge these two steps in one to make life a little bit easier?

Note that, I'm the only one working on this project (sometimes from my laptop, sometimes from my desktop), so I trust all the commits.

View 1 Replies View Related

CentOS 5 :: Can't Execute Things In /tmp Now But Is There A Way To Execute Only One File And No More?

Feb 17, 2011

i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???

View 1 Replies View Related

Ubuntu :: Viewing Desktop Using Remote Client (Windows TightVNC) Doesn't Work

Apr 30, 2010

When either of the proprietary Nvidia drivers are enabled, viewing the desktop using a remote client (Windows TightVNC) does not work. The initial remote screen display is ok, but no updates to the remote display occur. Reverting back to the non-proprietary driver solves the problem. I have also tried using a 10.04 Live CD and used Remote Desktop Viewer on the client machine, and it behaves the same way.

View 2 Replies View Related

Ubuntu Installation :: Infra-red Remote Control Doesn't Work After Upgrade To Lucid

Apr 30, 2010

I've just upgraded my web/tv setup from 9.10 to lucid and everything seems to be working apart from my infra red remote control.The remote was working fine in 9.10 and was used to control mythtv-frontend however after the upgrade the remote appears to be controlling ubuntu natively, i.e. right left up and down control what is selected on the desktop where as previously the remote was set to only work within mythtv. Whilst native support for my remote control is muchly appreciated(if that is what this is) where can I configure the controls so that it is usable again?

View 1 Replies View Related

Ubuntu :: Remote Doesn't Work Without Keyboard / Mouse Plugged In - Restore Its Functionality?

Oct 11, 2010

I (finally!) have Mythtv working under 10.04. I use the Haupaugge DVB-T card with its remote. Whilst setting up the kit this worked OK. When I unplugged the keyboard and mouse the system prior to installing it next to the TV appeared to have stopped responding to the remote. In fact it seems to be responding to a number of the remote keys but not the OK and Go keys which isn't enough to run Mythtv.

I don't think leaving a keyboard & mouse plugged in is going to be domestically acceptable.

Does anyone have any ideas as to how to restore lirc functionality?

View 1 Replies View Related

Networking :: Compiz Doesn't Play Nice With Remote Desktop - Ubuntu 10.04TLS

Jun 17, 2010

I want to set my main PC as a remote desktop so I can use it for programming and data storage remotely. I plan to control it with my netbook running Ubuntu Netbook Remix. If I disable compiz I can successfully connect and manipulate my desktop remotely, but I can't do it with compiz enabled on any settings. Is there a way to fix this issue? Would I have the same problem if I installed KDE?

View 1 Replies View Related







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