I'm writing a script which will log into a list of servers if they have public/private keypairs set up. If a server doesn't, I want the script to move on to the next server rather than wait at a password prompt.I'm using OpenSSH version 5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007 on both client and server.I'm using this command: Code: ssh root "at" "IP" -o PasswordAuthentication=no KbdInteractiveAuthentication=no I had to write "at" instead of the symbol, as I'm not allowed to "post URLs to other sites after you have made 15 posts or more."This works for most servers, but not all (on some of them the script halts at a password prompt). I suspect those servers may run an older version of SSH which doesn't support the options I'm providing
I have written a script to run commands on remote servers, it is working fine. But when I am running "sudo commands" on the remote servers, it asks for me password after prompting for ssh password. I am unable to automate this password prompt (which is just after ssh password prompt). This is the function I am using to provide passwords
Code:
pass () { cd $DIR/"$dt1"_"$dt" /usr/bin/perl << 'EOF' use strict;
[code]....
I want the same function to be used , when it expects for sudo passwords for any of the below lines:
Code:
[sudo] password for vikas: orPassword: This is my "cmd" file passed in pass () function.
I'm creating a bash script to do some tasks for me. I would like the script to be run at a set time of everyday. My first question is if it is possible that if one of the commands in the script requires sudo, is there a way to get around it with out making sudo not require a password. Such as, is there a way to include the password in the script? If that is the case, I can always just set the file as read only by sudo. I've been looking for a way to do this, with no success. if I have a command that wants input, how do I give it to the program. For example, if I want to make a zip file that is encrypted, the command would go as:
Code:
zip -r example * -e
now how would I get the script to insert my wanted password.
I am new to using Ubuntu 10.10 that was installed by a friend of mine, but he didn't give me a password for administrator and now when I try to install VLC I am blocked by a password prompt. To make things worse I can't use F1 key, esc key, tab key, 1key (I copy and paste 1 from other pages when I need it). I am at a loss here and all I want is to change the administrator password without validating the current password first.
Is there a way to getting around not having to put in the user password everytime my Wireless connects, or Install software, etc? I changed the user role to Administrator under users from the control panel (x Windows user )
delay the retry response from SSH (for, say, 10, 20 or 30 seconds) when a bad password is tried by a whacker? I mean, when I'm getting hit by 10 or more break-in attempts, is there some way to make SSH delay the next try from the site that's trying?I seem to remember something about this but haven't been able to find it and, so far, reading the SSH documentation hasn't been
I have DenyHosts running (that puts entries in /etc/hosts.deny after a few tries to break in) and I completely block China, Korea and a few others that are a constant annoyance with IPTABLES but I do get hit pretty much every day and would like to discourage the bastards as much as possible (the hits are a second or so apart which tells me they're automated and I figure delaying the response will discourage 'em).For example, here's the overnight entries from /var/log/messages (the "refused connect" are from /etc/hosts.deny entries generated by DenyHosts):
Code: May 13 03:49:50 fubar sshd[30255]: refused connect from 200.49.226.12 (200.49.226.12) May 13 03:51:27 fubar sshd[30256]: refused connect from 200.49.226.12 (200.49.226.12)
Before upgrading to Lenny there was no noticeable delay between entering a username & the prompt for a password when logging in via ssh. Now there is about a 5-second delay which is rather annoying. There is no delay when logging in through the Gnome UI. Anyone know why the delay is there? Is it something about ssh under Lenny? Is there a setting that can be changed?
I made my Fedora 13 box boot up automatically by adding the following to /etc/gdm/custom.conf
Code:
However, when it boots up it prompts me for my password so it can connect to my wireless network (I think it said something about not getting my user password at login). Is there anyway I can get it to remember this?
I would like to make this automatic because this will be a remote box that I will use as a file server, but it wont be turned on all the time. So I'll turn it on when I need it, but I'll need to connect to it remotely, so obviously it needs to be on the network.
Has anyone else encountered the really irritating issue of a hidden WPA network not auto connecting, and prompting for the root password when you manually select 'Connect to hidden wireless network'?
It works fine if I enable broadcasting of SSID but a proviso of my broadband is to keep this disabled. Ubuntu does it without any issue, can't figure out why it won't work on FC14.
So here's the problem. We've got the /etc/sudoers file set up so that users can run commands from /bin like "cat" or "mkdir" without entering a password. The problem is that the "su" command is also in /bin, so if they enter "sudo su", it gives them root access without a password. Here's the /etc/sudoers file:
Defaults targetpw %users ALL=(ALL) ALL root ALL=(ALL) ALL support ALL=(ALL) NOPASSWD: /sbin/, /bin/, /opt/, /etc/init.d/, /elo/ support ALL=(ALL) NOPASSWD: /usr/bin/mysql
Is there a way I can deny /bin/su while still allowing the rest of the /bin commands?
I click on the corresponding checkbox in users and groups but but it doesn't do anything. I also want to disable password prompts in general. Also when I try using Computer Janitor it says it could not complete and to check if other package managers are open, but none are.
My Ubuntu desktop crashed last night after I accidentally bumped into the CPU box. Right after I bumped into it, it restarted automatically ... then it ran disk integrity check, also automatically ...
The issue is that I can NOT log into it. There is no way that I could enter my password. Though I could telnet into it using my laptop (I have set up telnetd into this desktop before).
I am trying to search for similar issues in this forum but I could not find one that is really like this.I have all 5 years of work in the hard drive.
The two images below shows the issue it had done.
This is my login screen (note: whenever I click "nd-desktop", it doesn't give me prompt for password.
Uploaded with ImageShack.us
This is just the screen it gives me when I click "nd-desktop" above. Also, take note there are no usual options below that could change my preferred desktop etc.
Can I disable the password prompt after I come out of suspend. I remember a setting in the last release but I can't find it in 11.04. Is this setting still there? Where can I find it?
I have made several attempts to install Testing. Down-loaded Apr 11 iso and verified the DVD. Everything went ok with install. It was when I booted up after removing install disk. I have Debian dual booted. Both Linux 10 and Debian Testing show up on the Grub screen. When I select Debian everything loads but when I get to the Debian screen I am asked for my password. However, the screen is lock up and no choice can be made. Three of my previous attempts (different install disks) have left me at the same place....locked password prompt. (4 year old HP Paviiion DV5000 laptop, 2 GB memory, 120 GB HD) I have successfully installed Debian 6 Squeeze with no issues.
A little while ago I moved to F14 from Ubuntu; I've been ok, but recently sudo has been causing me trouble :/It seems to hang, but eventually produces some output indicating that it has been waiting for me to input a password; but it hasn't prompted me for one.
When I try and connect to a VNC session from KRDC; and I am prompted for a password, the keyboard just decides to stop working. I can't type anything into the password prompt... Then the keyboard stops working for all other open applications (Firefox etc.). If I close KRDC, it starts working again... Is this a bug? Has anyone else seen this?
presently my laptop requires a password when the screensaver has been activated(equivalent to the lock screen function). However, when I move the mouse to activate the password prompt, the screensaver freezes (all movement stops) and the password prompt is not visible. It's definitely there - if I type my password, then it brings me back to my desktop. However, if I mistype the password, or accidentally hit the mouse button so that somewhere other than the invisible password field is brought to focus, then entering the password becomes impossible, and I have to do a hard restart (ugh). I'm running an HP Pavilion dv5 laptop, with Ubuntu 9.10.
A while ago, I removed the Ubuntu One entry from my Startup Applications because it was annoying having to activate the keyring every time I booted up/logged on. Now, I am prompted for a password once I start Firefox (mind that it's only the first time I run Firefox after boot/login). I'm assuming it's Ubuntu One because of the sequence of events, but feel free to correct me if you think otherwise. How can I stop this?
I have set up my account twice in Evolution mail. Both times when I activate, no prompt for password comes up, as a result, no connection to my gmail. Supposed to prompt the first time, right?
i need to knw is the a way to configure the ubuntu desktop to prompt for a password when relogin after the screen is locked?
it asks for a username and password a at the login prompt if i relogin after logging out out but when i lock the scree by pressing ctrl +alt + l and try to relogin it will not ask for a password , it just let me log in automatically to the pc , i think this is a security issue cos anyone else can login to my pc without prowiding credentials
I was wondering if there is a way to mount a network CIFS share manually to allow it to prompt for password. I've been Googling around and found a couple options. One was to store your credentials in a file and then add the fstab entry to look at the file. I'm not particularly fond of the idea of storing my credentials in a plain text file though, even if I put file permissions on it.Is there a way to mount the share so that it prompts for credentials. The share isn't always online so I want to mount it manually.
I'm running Debian Wheezy and I don't know why, but whenI switch to console F1(Ctrl+Alt+f1) I can't enter login information. It's like Debian didn't have completely starting and wait always.The F1 console looks like this:
Kernel 2.6.21.5, Slackware 12.0 bash 3.1. I have several times tried to log into my linux box and have seen the password prompt written in upper case chars. Can this be caused by something located on the other side of my connexion? Or by malignous software resident in my hard disk?
I have been reading guides for a while now and so far have not found an exact solution to my problem.
I want a linux user (dave) to be able to switch to another account (patrol) without a password prompt, but dave must still be denied access to root. Patrol must also be denied root access.
In the sudoers file
Code: User_Alias Patrol=dave,john root ALL=(ALL) ALL Patrol ALL=(patrol) NOPSSWD: ALL
The homes is suppose to let each user see his/her own home directory. But I tested at the windows side, I found that windows doesn't even prompt me about username or password, it just directly give me "not accessible" error. How do I config so my windows side at least prompt me about username/password?
I often need to login into various accounts. In Debian 7 I always was able to copy and paste passwords from text files if I was asked for an input, but now the textfield for password input locks the whole system and I can't do anything else before I have supplied the password. Is there any way of restoring the old behaviour to make password input forms (like the request for GPG key passwords in Evolution) just being an addintional app-window instead of an input request, that locks everything else? I want to be able to open the proper file with the login data when prompted for it.
I know I could theoretically solve this issue by using a general system wide main key which would supply all individual login data, but I want to memorize some often needed phrases by actually typing them when I need them. I just want the possibility to open text files for copy and paste when I'm prompted for a password if this is something I don't even want to remember.
I've created a /tmp partition on a server that I would like to encrypt in a fashion that doesn't require a password to be entered on boot because this server is in a remote data center. Storing the password on the server so that it can automatically boot would obviously defeat the purpose of encrypting in the first place. Skipping automounting is another option but I'd really like to avoid that because there are a number of other services that would have to be suspended until the /tmp partition is online.
I found this article designed for centos (HowTos/EncryptTmpSwapHome - CentOS Wiki) which seems perfect since it generates a key randomly on boot and that key is destroyed and regenerated on each successive boot. However, the script doesn't seem to work on openSUSE - it throws errors saying . /etc/init.d/functions doesn't exist, restorecon command not found, action command not found, etc. Is there an openSUSE-ish way to achieve promptless partition encryption?