Ubuntu Servers :: JeOS 8.04 And Sudo Tab Completion?

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


ADVERTISEMENT

Ubuntu :: No Bash Completion With Sudo?

Apr 29, 2010

Just installed 10.04 64bit and in gnome-terminal i have no bash completion when sudo is used.For example:apt- gives apt-getbut sudo apt- does nothing, i get no suggestions from the terminal.

View 6 Replies View Related

General :: Make Zsh Completion Behave Like Bash Completion?

Jun 2, 2010

I switched to zsh, but I dislike the completion. If I have 20 files, each with a shared prefix, on pressing tab, zsh will fully complete the first file, then continue going through the list with each press of tab. If I want one near the end, I would have to press tab many times.

In bash, this was simple - press tab and I would get the prefix. If I continued typing (and pressing tab), bash would complete as far as it could be certain of. I find this behavior to be much more intuitive but prefer the other features of zsh to bash.

Is there a way to get this style of completion? Google suggested setopt bash_autolist, but this had no effect for me (and no error message was printed upon starting my shell).

View 1 Replies View Related

Ubuntu Servers :: New User Shell - Tab Completion Does Not Work

Nov 30, 2010

When I add a new user and SSH to my server as that new user, my command prompt is just a '$'. Tab completion doesn't work either. What I notice is that I get this:
Could not chdir to home directory /home/scaldwell: No such file or directory
$
Echo PS1 yields nothing. There is also nothing in /etc/skel. I didn't have to do anything special to get my initial user setup with the right prompt, and the second user has been added to the admin group as well. I have noticed that if I issue the command sudo chsh -s /bin/bash the account gets the correct prompt.

View 1 Replies View Related

Ubuntu :: Repacking The Jeos 8.04 Iso?

Feb 9, 2010

I like the Jeos 8.04 small footprint but I need a different kernel and adding some extra packages. Id like to know if there's a way to repack the Jeos 8.04 iso with the new stuff. I want to have all in one iso avoiding the post installation kernel replacement and package installation.

View 2 Replies View Related

OpenSUSE Network :: Ifconfig With 2 Addresses On JeOS?

Sep 13, 2011

I have created my own distribution with susestudio.com , based on jeOS template and it works well But I have some problems with network configuration. I make a default configuration with susestudio ( configuration -> General -> network ) and I put for example 172.16.0.185 address. I also put a script which configures IP address with different informations coming from for example a serial port to make my own IP address. This script make the new address and call the ifconfig system program. For example, the script calls "ifconfig eth0 172.16.0.182". And now, I can ping the two addresses, 172.16.0.185 and 172.16.0.182. Is this normal ? I thought the new command "ifconfig eth0 172.16.0.182" would overwrite the old value ( 172.16.0.185 ). It works as this on other distribs ( like ubuntu ) but not on opensuse.

I know that I can have 2 addresses but using the following syntax : "ifconfig eth0:1 A.B.C.D" (if kernel supports aliases ) , and I don't know if it is normally possible to have 2 address from the same subnet. How can I overwrite the default config , and not to have the first address available ?

View 1 Replies View Related

General :: SLES 11 SP1 JeOS Giving Error During Login

Jan 24, 2011

I installed SLES 11 SP1 jeOS on my system. It is booting up properly. But when I tried to boot it up with "TrustedGrub", it comes up up to login level. When I given the login name and password, it shows an error "Error in service module".Then i couldn't login.

View 1 Replies View Related

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

Ubuntu Servers :: 10.10 - Can't Sudo Apt-get Update

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

Ubuntu Servers :: Can't Sudo When X Forwarding

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

Ubuntu Servers :: Sudo And Ssh Not Working After Upgrade?

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

Ubuntu Servers :: Disable 'sudo' For All Or A Particular User And Allow Only 'su'?

Jul 30, 2010

How to disable 'sudo' for all or a particular user and allow only 'su'?

View 6 Replies View Related

Ubuntu Servers :: Set Sudo Commands Restrictions

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

Ubuntu Servers :: Following Command:Code:sudo Apt-get Install Ssl?

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

Ubuntu Servers :: Sudo Can't Hold Environment / Resolve This?

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

Ubuntu Servers :: Prevent Certain Group Of Users From Using Sudo At All

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

Ubuntu Servers :: Uninstall Sudo Apt-get Install Lamp-server^?

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

Ubuntu Servers :: Slow Sudo After Accidental Change / Make It Up?

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

Ubuntu Servers :: Sudo Contrab Script To Ping Ebox

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

Ubuntu Servers :: Sudo Apt-Get Install Fails (Size Mismatch)

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

Ubuntu Servers :: Sudo Password Not Working After Installing Gnome?

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

Ubuntu Servers :: Connetion Errors For Sudo Apt-get Update / Solve This?

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

Ubuntu Servers :: Sudo No Longer Prompting For Password / Resolve This?

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

Ubuntu Servers :: Entering Correct Password For Sudo Results In Segfault After 2 Attempts

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

Ubuntu Servers :: Error: Root@www:/etc/ldap# Sudo Ldapadd -x -D Cn=God,dc=example,dc=org -W -f Ppolicy.ldif

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

Ubuntu :: Sudo Ifconfig Eth0 Down Vs Sudo /etc/init.d/networking Stop

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

Software :: Pam_start Error 26 \ Use Sudo Su And Add An Account To A Group What's Allowed To Use Sudo?

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

Fedora Security :: Cannot Open /var/db/sudo After Sudo Package Upgrade?

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

Ubuntu :: .bashrc Function Tab Completion?

Jul 4, 2010

I tried to make a function to put in either my .bash_aliases or .bashrc file to make a local backup of a file, but when I call the function and try to use tab completion I get the following error:

Code:
cp: cannot stat `help': No such file or directory
The function I added is as follows:
Code:
function bk

[Code]...

Also interestingly, if I define this function at the prompt rather than in my .bashrc, tab completion works fine.

View 3 Replies View Related

Ubuntu :: Make Sudo Act More Like The Debian Sudo?

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







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