Ubuntu Servers :: PSSH - How To Use Sudo
Oct 24, 2010
I have a set of servers that I have to manage and I thought that pssh (parallel-ssh) would be a great tool for the job. Except that I can not see how to use that with 'sudo'. I can set password-less ssh between multiple servers for a given user. But I cannot see how to do administrative work if I cannot call SUDO as it requires a password to be entered firstly.
View 5 Replies
ADVERTISEMENT
Apr 5, 2011
I use ubuntu 10.04 and here's the problem. I've installed pssh, but when I type pssh i got this message
Code:
# pssh
Traceback (most recent call last):
File "/usr/bin/pssh", line 29, in <module>
from psshlib.basethread import BaseThread
ImportError: No module named basethread
Also, if I type man pssh I got this message:
See 'man 7 undocumented' for help when manual pages are not available. I've reinstalled it, but nothing changed. I've found that basethread is located here:
/usr/lib/python2.5/site-packages/psshlib/basethread.py
/usr/lib/python2.5/site-packages/psshlib/basethread.pyc
View 4 Replies
View Related
Mar 16, 2011
I wanted to installed transmission on my buntu server box 10.10 tonite so from my laptop top i ssh'd into it...which took an unordinary amount of time.. went to type in sudo apt-get install transmission half way through each word at the terminal prompt it would just hang...had to wait then it would recognize my typing and i could continue....pressed enter waited a long time; then noticed i coulnd't connect to the repos?
So i manually (as in sitting at the box not over ssh) tried to ping google nothing....sudo apt-get update....nothing....
- i restarted the machine twice
-sudo ifdown eth0 /sudo ifup eth0
sudo nano /etc/networking/interfaces made sure it said
Quote:
I have my router saved to assign 192.168.0.100 to the machines eth0 MAC of 00:14:2a:e9:15:0b so i can always use my webUI w/o having to guess my ip ifconfig shows my broadcast running i dunno i'm sooo confused and lost scared...a lil' cold....kinda hungry..pretty tired....
I'm on cli no gui anyone ever have this?
Quote:
View 8 Replies
View Related
Jul 13, 2011
I'm trying to set up my mythtv backend on a headless box. The many tutorials out there tell you to run mythtv-setup from a machine with a display by x forwarding through ssh.
Code:
ssh -X username@ipaddress /usr/bin/mythtv-setup
The x forwarding works fine except that the first part of the mythtv-setup requires you to stop the mythtv-backend process which you have to do as root. It brings up a box asking for your password (much like is would if you just typed sudo xxxxxxx in the terminal) but it won't accept the password. Looking in the auth log it seems that it can't authenticate
Code:
Jul 13 11:21:08 server su[21869]: pam_unix(su:auth): authentication failure; logname= uid=1000 euid=0 tty=/dev/pts/1 ruser=administrator rhost= user=root
Jul 13 11:21:10 server su[21869]: pam_authenticate: Authentication failure
[code].....
Now I know that my account (administrator) can have root privileges because I can sudo xxxx to my hearts content via ssh in the terminal, but it seems to not work when it's being requested from a forwarded X window....
View 2 Replies
View Related
Mar 3, 2010
how to get tab completion working with sudo in JeOS (Ubuntu Hardy) 8.04? Assuming I have the command '/usr/bin/svnadmin'. As a normal user I can type:
Code:
svnad + TAB
and it auto-completes as 'svnadmin'. If I type:
Code:
sudo svnad + TAB
nothing happens. My 'echo $SHELL' is '/bin/bash'. I tried enabling the following in '/etc/bash.bashrc':
Code:
if [ -f /etc/bash_completion ]; then
[Code]...
auto-completes as I'd expect. I think I once read that there's some kind of configuration variable for sudo that causes it to use a 'more secure' path rather than the current path in the user's environment. I can't find any info on it though. I'm executing the commands from my home directory.
View 5 Replies
View Related
Jul 27, 2010
I have a server that started out at 8.04 LTS was upgraded to 8.10 and to 9.04. When I upgraded to 9.04 sudo and ssh stopped working.
Fortunately I have a root account and can login as root or su to root.
I suspect this is the result of changes I made to nsswitch.conf and pam.conf to get winbind working.
I was hoping for a fix by upgrading to 9.10, but that didn't work. I want to upgrade to 10.04 LTS, and stay there but I think need to resolve this first.
auth.log reports failed password for ssh attempts and authentication failed for sudo. I am at a loss to determine where the problem is and how to track it down.
View 3 Replies
View Related
Jul 30, 2010
How to disable 'sudo' for all or a particular user and allow only 'su'?
View 6 Replies
View Related
Nov 7, 2010
does anyone know how to set restrictions on the commands a user can run as sudo? i want to make it so they can only halt the system.
View 1 Replies
View Related
Jun 4, 2010
I ran the following command:Code:sudo apt-get install sslIt is suppose to give me SSL support for Apache 2.2, but I couldn't find any package information about it atA search only returns ssl-cert package.So what is in the ssl package for Lucid 10.04 LTS? How do I know what package contains what in the future?
View 2 Replies
View Related
Oct 6, 2010
I'm with Linux 2.6.32-25-server #44-Ubuntu SMP Fri Sep 17 21:13:39 UTC 2010 x86_64 GNU/Linux , Ubuntu 10.04 Server
And I wanna execute the next script in bash profile code...
View 1 Replies
View Related
Jul 1, 2011
I have a box with about 30-40 users on it, and I need to prevent a certain group of users from using sudo at all. Is this even possible.
View 4 Replies
View Related
Jan 24, 2010
I've been searching around the net how to do this but I can't find any clues. I did this:
Code:
sudo apt-get install lamp-server^
But now I want to remove it. I've read this: http://ubuntuforums.org/showthread.php?t=510403
[code]....
View 7 Replies
View Related
Feb 5, 2010
My first post. I've been using Ubuntu Server edition (Hardy) happily for some time now.
I use sudo regularly during configuration of new services. It always works/authorises within seconds, however, it recently became very slow, to the point of being nearly unusable.
In /var/log/auth.log I noticed a regular working pattern like this code...
View 4 Replies
View Related
May 3, 2010
I have a DHCP server that I only mildly trust, but its nice because it is an eBox server (I use it for DNS, DHCP, and smtp relay for my internals). I want it to issue all addresses (simply because I like the way it displays its leases in the WebUI's dashboard), but I want a fail-safe too. I have another server that is strictly an Ubuntu Hardy server (I use it for openVPN and nothing else) so I would like it as my backup dhcp server. I figure I'll install all the dhcp stuff on it and just stop the service (to include a sudo crontab @reboot script to stop it when rebooted).
And simple use a sudo crontab script to ping the eBox every 5 minutes to make sure its live, and if not then start the dhcp server. My questions: If I put the entry in my sudo crontab will the script execute even if no session is currently running (its obviously a server so won't have anyone logged in except for administration)? Also since it is in the root crontab it will be able to start the init.d service without having to sudo it right (IE the script only needs to say "/etc/init.d/dhcp3-server start" not "sudo /etc/init.d/dhcp3-server start")?
View 4 Replies
View Related
Dec 10, 2010
sudo apt-get install ubuntu-desktop fails and has been failing for the last two days, I installed both the lto and the 10.10 newest, starts out OK and runs for about 5 minutes then finishes with many 'failed to fetch [URL] size mismatch issues. This is the first one after many installs over the last two years. Is there something going on with the US servers? On closer examination of running sudo apt-get update it seems to be fine till it hits the pool directory on the server, lucid main and lucid-updates are fine, breaks when it goes past those.
View 3 Replies
View Related
Mar 10, 2011
I have installed Ubuntu Server 10.10 in Virtual Box in order to evaluate it for a project.I have installed Gnome and can log in fine using my password. However, whenever I am prompted for my password when doing anything SUDO I am told my password is incorrect, starting Synaptic, for example
View 9 Replies
View Related
Mar 24, 2011
I have a connection error when i try to use
sudo apt-get apache2 install
I'm running a virtual server with ubuntu server installed as the OS. The physical server is windows 2008.
I have configured the interface for a static ip code...
I have configured my resolv.conf so it points to the correct nameserver ip
When i ping both an ip or a hostname everything is OK
but when i run
sudo apt-get update
I just get a load of connection errors and i cannot install any packages
View 2 Replies
View Related
Aug 16, 2011
I am suddenly not prompted for my password when I run any command as sudo on a few of my Ubuntu servers.
if I run sudo -K, the session is cleared, and I am prompted again for my password, however it saves/caches it until I run sudo -k again even if I log out and back in. I want it to prompt me for my password, as it should (and did) by default, for security.
Any ideas what could be causing this?
Here's my /etc/sudoers file code...
View 2 Replies
View Related
Feb 2, 2011
I cannot sudo nor log into a second ssh session on my Ubuntu 10.10 server edition headless setup. Entering an incorrect password works as expected but the correct password gives errors, and on the second attempt a segfault. I recently changed my password as the old one was about to expire, that was 3 days ago, I can't find evidence that I have sudo'ed or logged in a second session since, I have been logged into it via ssh throughout all of it and I am still currently logged in. What should I do to correct this problem? I'm worried that by turning it off I will lose all access. Is the only option using a live cd to change the password?
[Code]...
View 1 Replies
View Related
Apr 8, 2011
I'm trying to add a password policy into OpenLDAP 2.4 on 10.04 and it's driving me out of my mind. I keep getting this error: root@www:/etc/ldap# sudo ldapadd -x -D cn=God,dc=example,dc=org -W -f ppolicy.ldif Enter LDAP Password: adding new entry "cn=default,ou=policies,dc=example,dc=org"ldap_add: Invalid syntax (21)additional info: objectClass: value #0 invalid per syntax
[Code]...
View 3 Replies
View Related
Jun 10, 2010
explain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?
Code:
sudo ifconfig eth0 down
sudo /etc/init.d/networking stop
View 3 Replies
View Related
Jan 2, 2011
I have a problem when I want to use su I get this error:Code:su: pam_start: error 26I have googled it so I found this topic (http://www.linuxquestions.org/questi...r-26-a-615024/) but it didn't really help me. There was a reply on that topic and his question was what the output of this was:
Code:
ldd /usr/bin/passwd
and
[code]....
View 4 Replies
View Related
Sep 16, 2010
A day ago I finally got around to upgrading the PackageKit installation that had been sitting for a week and a half, so I found a new upgrade for sudo available - the one that gives the sudoreplay command, I forget which version number it is exactly. When I try to use the sudo command I get this notice in my terminal:Code:Can't open /var/db/sudo/me/1: Permission deniedI didn't get it before. What do I have to do to make it open? I'm using SELinux in enforcing mode if that helps.
View 1 Replies
View Related
Jul 2, 2011
I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password
View 8 Replies
View Related
Nov 25, 2010
I'm trying to install phpMyAdmin on my Ubuntu 10.10 server. I type the following command (I don't use "sudo" because I'm logged in as root, I know its not safe):
Quote: apt-get install phpmyadmin and go through the installation. I allow the installation to configure the database, and I chose the correct server (Apache2), when it asks for passwords, I use the same password that I use for the rest of the server (i.e. it is the account password for root, sudo, and my account). Once the installation is complete, I try and access it from a computer on the same network. I type "http://***.***.*.*/phpmyadmin" and I get the message saying the directory isn't there. I go into Webmin to confirm that the directory isn't there, and it isn't.
My questions are (1) Why isn't the phpmyadmin directory in my Apache Server root? (2) Is it installed with apt-get, if so, where? (3) How do I know what server I selected for it to install to? (4) What do I need to do to get it to install correctly?
View 9 Replies
View Related
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
Oct 12, 2010
I am having problems accessing my website. I have port forwarding enabled on my router and below are the errors I am getting plus my firewall setup.
Code:
thomas@tdtconsulting:/etc/apache2/sites-available$ sudo a2ensite tdtconsulting
[sudo] password for thomas:
Enabling site tdtconsulting.
Run '/etc/init.d/apache2 reload' to activate new configuration!
thomas@tdtconsulting:/etc/apache2/sites-available$ sudo /etc/init.d/apache2 reload
* Reloading web server config apache2 [Tue Oct 12 18:21:04 2010] [warn] NameVirtualHost 192.168.1.3:80 has no VirtualHosts
[Code]...
View 9 Replies
View Related
May 24, 2011
I've installed apache2 and and when i access my URL from outside using www.proxy-ervice.de i just get a webpage with Index of /so i've run the command sudo gedit /etc/apache2/httpd.conf which give me the error: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file'/root/.local/share/recently-used.xbel.2EUJVV': No such file or directory(gedit:2509):Gtk-WARNING **: Attempting to set the permissions of`/root/.local/share/recently-used.xbel', but failed: No such file or directorymy httpd.conf is as follows,Userdir public_htmlOptions +IndexesOptions AllServerName localhost
<Directory "/home/gav/public_html/">
Order allow,deny
Allow from all
[code]....
View 1 Replies
View Related
Aug 31, 2010
after i type in "sudo apt-get update"i got lots of errs like:Code:W: Failed to fetch [URL]s associated with hostname)
View 2 Replies
View Related
Oct 11, 2009
Where is the SUDO file at, and remind me how do I add myself as a SUDO'er?
View 3 Replies
View Related