Fedora :: Sudo Hanging Waiting For Password But No Prompt
Jul 22, 2011
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.
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 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
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 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.
I need to run a command in a terminal, but cannot get root. I can in "Add Software" to install, I know and tried all the passwords I know from the install, but no show.What can I do?I tried sudo password, then typed in the space, no letters appear, but no success.TO "sudo password" after putting is my password, my username comes up and it says I am not in sudoers file.My Laptop has only one user, I know as I tried switching for a test.
I want to use root password instead of adding my user to the list of sudoers,In Arch wiki ander Root password:Users can configure sudo to ask for the root password instead of the user password by adding "rootpw" to the Defaults line in /etc/sudoers: but that did not work for me. it asks for root password.Why do I want to do that: 1. I want to do that, I like sudo more than su -c 'some_command'. 2. sudo enables bash completion, su -c does not. 3. I don't want to add my user to sudoers list.
I found many users Suggesting alternatives and lowering the important of my need for this, when I asked this question in anther please.
My 1st time using Terminal with sudo it would not accept my password.I use it successfully to log in and is the only password i used during installation.is there a way to get terminal yo accept my password-it does recognize my user name.
It seems that every time I use the 'sudo' command I have to type a password. Is there a way to get 'sudo' to remember the password at least for the current session after I use it once or something like that?
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.
Something has gone awry with my login. After the usual username/password prompt my laptop comes up with smart card authentication & I can't login. How do I get away from the graphical login so I can login & correct the problem?
I have a Toshiba NB305 netbook running windows 7. I installed netbook ubuntu 10.04 from a USB drive this morning after playing with the live ISO off the USB. I chose to repartition and keep Windows 7. Upon boot, I get GRUB and when I choose either the Ubuntu or the Recovery I get a "gave up waiting for root device" page with a command prompt flashing at initiramfs.
The Alert reads, "/dev/disk/by-uuid/49024e15-119a-4339-ad23-f201ce4a6d1f does not exist. Dropping to Shell!
I'm still able to boot windows 7 as well as the live cd and see all the partitions and operating systems.
I've looked inside the Grub.cfg file and the commands aren't pointing to /dev/sda5/ but rather to the uuid? Is this normal? Does this need to be changed?
I will run this script and try and get some more info.
I needed to use Synaptic Package Manager to install an app, but the dialog box ("enter the Administrative Password") that pops up before you can use Synaptic doesn't recognize my password ("incorrect password). I tried typing it into a text editor and it's spelled right, caps lock not turned on or anything.
In Terminal, sudo recognizes it, and it is recognized when I log into Ubuntu. I'm the sole user, I have admin privileges, I've been doing admin things.
I just now did System > Administration > Users and Groups and got a dialog box saying
"Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL] for information. (Details - 1: Server ping error: IDLmg.org/CORBA/COMM_FAILURE:1.0)"
Moving past that, I changed my user password, and Ubuntu authenticated it.
How do you launch Synaptic Package Manager from the command line?
Is it possible to have your login password t be different then your SUDO password. I did a search on sudo password- Almost every post has the term in it.
I'm using fedora 13.i had been using the su command in the kernel to grant priveleges as root for software installations in my fedora OS,it is working fine.but my question is how to set sudo password in fedora ?
Would it be safe to say that if I build a restricted user: "Desktop" or "unprivileged" user I will be ok? From what I understand - most scripts or applications cannot install without the 'sudo' prompt and user input.
pam_auth_radius - Change the "Password:" prompt.Im currently working on getting a two-factor supplier working with my servers.Ive installed the pam_auth_radius.so and it works fine.HOWEVER.When I SSH to the server , I get this:
warning: Need basic cursor movement capability, using vt100 Keyboard-interactive: Password:
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
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 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?