Programming :: Input Redirection While Setting Password

Apr 26, 2010

I have this piece of code in my shell script file:
Code:
useradd $UserName; passwd <& $password
I am not able to perform Input Redirection while setting password programatically- without any user intervention.
I think there is a way to do it, but it is just getting slipped from my mind at the moment.

View 2 Replies


ADVERTISEMENT

Programming :: Perl - Way To Encrypt Command-line Input When User Enter A Password ?

Nov 4, 2010

I need user to input a password through command line in Windows cmd prompt. Is there a way to encrypt the input (such as put it into ......) when user is typing ?

View 2 Replies View Related

Programming :: Bash Scripting With Sudo / Password Prompt And Accepting User Input?

Jul 30, 2011

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.

View 14 Replies View Related

Programming :: Redirection From A File To Command?

Apr 18, 2011

I am always confused about the redirection operator <Lets say i have a file input.txt that contains one word "hello" without the quotes when i do the following why don't i see any output? $echo < input.txt Secondly, i am slightly confused between input redirection < and pipe | operator. Sometimes they seem to do the same thing. For example i can achieve the output from the above command as follows $ cat input.txt | xargs echo

View 2 Replies View Related

Programming :: File Redirection Does Not Work Bizzare?

Apr 21, 2011

When I execute the following command from the linux command line I get the output I want to the screen

[Code]...

View 1 Replies View Related

Programming :: Bash Redirection With Exec: Specify Fd With Variable?

Feb 21, 2010

Within a bash script, I'm attempting to redirect file descriptors with exec, e.g. exec 3>&1 1>&2; however, I'd like to do something like exec $FD>&1 1>&2, which doesn't work because bash tries to execute the value of $FD. Various placements of eval fail, as well. Is there a way around this, or am I stuck hard-coding the descriptor?

View 3 Replies View Related

Programming :: Shellscripting: Pipes And Output Redirection?

Aug 21, 2010

see these simple commands:

Code:
# dbus-monitor --system >> /data/eject.txt
This one works as expected ... dbus-monitor never terminates and whenever it outputs new lines, they are

[code]....

View 3 Replies View Related

Programming :: STDIN, STDOUT, STDERROR Redirection For Scripting - Bash: Log.txt: No Such File Or Directory

Sep 7, 2010

I'm writing a script to execute bash commands in the PHP CLI. I would like to suppress errors from bash and write my own error message if an error occurs. So far I have this (assuming log.txt doesn't exist!):

Code:

tac log.txt 2>/dev/null

Which works as expected, tac kicks up an error but the error is suppressed, but when I use this:

Code:

tac < log.txt 2>/dev/null

I get:

Code:

bash: log.txt: No such file or directory

The tac error is suppressed but bash still gives me a dirty error.

View 2 Replies View Related

Ubuntu :: Every Time Boot Input Volume Is Set To The Lowest Possible Setting

Mar 16, 2010

Every time I boot input volume is set to the lowest possible setting... and no-one can hear me.

How can I get this to be at max automatically? (Specific setting visible below)

View 2 Replies View Related

Ubuntu :: Audio Input Device Setting Always Reverts To Default

Jun 24, 2011

I use a Logitech USB headset with microphone at work for phone conferencing, and for some reason whenever I restart Ubuntu (and sometimes seemingly at random times), the settings for the audio input device revert to the defaults (the internal audio hardware).I can always reset it back to the USB headset by going to the sound configuration menu (Preferences -> Sound -> Input), but if any applications that use a microphone are already running, they will need to be restarted in order to make use of the newly configured input device.

View 2 Replies View Related

CentOS 5 :: Password Does Not Accept Input At All?

Feb 1, 2010

I installed Asterisks On a VM machine.

The asterisk I downloaded came with Centos 5.3 It runs well on VM console But the problem is when It request for localhost login which accepts input but the password does not accept input at all.

View 1 Replies View Related

Ubuntu Multimedia :: Microphone Works Only After Switching To Another Input Setting And Back

May 7, 2010

since 9.10.My microphone works, BUT only after I open the 'Sound Preferences' panel, and change the setting under the 'Connector' tab to another selection (any will do), then set it back to 'Microphone 1'.Since this works, I wondered if there is a way to make this happen automatically at every login?

View 7 Replies View Related

Ubuntu :: Grub Trouble_Unable To Input Password?

Jul 25, 2011

I know there is a similar thread but my problem is different from the other one I read.In the other thread, the grub terminal would not accept the password the person would enterIn my case it literally wont let me type my password or anything at all! It asks me to input my password but no matter how many times I press a key nothing happens.Possibly important details: I am following a guide to change the boot order on grub while running the Ubuntu OS and using the terminal. But the issue is the same, I have tried accessing the root mode but it would not let me type my password there either.

View 3 Replies View Related

General :: Bash: Input Password Into A Variable?

Aug 22, 2010

I'm basically setting up two sshfs mounts and I have it set up so I run one command but type my password twice.Is there an easy to way to input a password using bash and pass that variable to another process asking for a password?

View 5 Replies View Related

General :: Bash: Auto Input Password?

Aug 28, 2010

When I use the scp command, here is a command prompt "Input password:",Now I want to use a one line command to perform the scp command.I tested the "echo "password" | scp xxx yu@10.xxx.xxx.xxx:/", but failed.

View 2 Replies View Related

Ubuntu :: Run Basic Script Without Need To Input Sudo Password?

Aug 19, 2010

I have a basic script that I have thrown together and have created a launcher for it so I can update my computer with one click:

Code:
#!/bin/bash
tty -s; if [ $? -ne 0 ]; then gnome-terminal -e "$0"; exit; fi

[code]...

View 2 Replies View Related

Ubuntu :: Authentication Dialog Hang After Password Input?

Oct 13, 2010

I have a Ubuntu 10.10 installed on my HP Mini 210, and is having a problemth authentication dialogs when applications requests for elevated permissions. As far as I concern, there are two types of them, one is the kind when you run anything with gksu where the background dims and a dialog pops up. Another type is when you try toinstall software through Synaptic and a dialog box requests for your password. I am having problems with the later one.

Whenever the authentication dialog box pops up, after typing my password and presses enter, or the Authenticate button, the password field disappears while leaving the authentication dialog on the screen. The Authenticate and Cancel buttons are still clickable, but they are not bringing any actions by clicking them. I would have to let the application to continue with elevated permissions by manually closing the dialog. There are very very rareoccasions where the dialog disappears after I click on authenticate, which I can say is 1 in every 100 times

View 9 Replies View Related

General :: Can't Input Password In Command Line (ubuntu)?

Sep 19, 2010

When Linux ask for my password in command line,my keyboard becomes unresponsive just for that moment or let me put it this way,until i need to write my password my keyboard is unresponsive,but for all other things is fine.or for example,i can input my password when i have a graphic interface but i can't with command line or i can't login to my computer from command lineexcuse me if my question is doll,i moved from windows to ubuntu just lastweek,( & i am flying high in sky with ubuntu & digging a very deep hole for windows too!!.)

View 2 Replies View Related

Programming :: Shell Programming - Delete User Input

Jan 21, 2011

I recently started shell programming and my task now is to do a menu display.Currently i am stuck whereby user will input both title and author and it will delete it.

Do i have to use sed command?

View 4 Replies View Related

Fedora :: Input To Create New Username And Password - Install X86-64 Bit Core 12?

Dec 25, 2009

1. No any input to create new username and password when I install X86-64 bit Core 12 And I can not login with root. So how can I login Fedora core 12?

View 4 Replies View Related

Ubuntu :: Input Username And Password But After Logged In Can't Work With The Keyboard?

May 18, 2011

Since today the keyboard doesn't work. I can input username and password but after logged in I can't work with the keyboard. It seems locked. The mouse works correctly. If I boot with Windows the keyboard works correctly.

View 2 Replies View Related

General :: Create A Expect Script To Input Username And Password?

Mar 21, 2010

i was able to input it directly from the script using this code

Code:
#!/usr/bin/expect -f
set USER "bibingeorge"

[code]...

View 5 Replies View Related

Ubuntu Servers :: Auto Input The Password For The Encryption Disk During Boot Up?

Apr 26, 2010

I would like to known whether I can configure the server to input the password for the encryption disk automatically during boot up.Is it possible

View 3 Replies View Related

Ubuntu :: Screen, Graphics Card And Input Device Setting Could Not Be Detected / Speech Dispacher Configured For User Sessions?

Sep 6, 2010

i am having dell inspiron 1540 laptop installed with ubuntu 10.04 (updated). i wanted to install LAMP(Linux,Apache,MySQL,PHP) for software development purpose.

but after restarting the system, following things occured:-Message box appears saying "Ubuntu is running in low-graphics mode" Your screen, graphics card and input device setting could not be detected... OK

Then i get prompt saying what would you like to do ?Run ubuntu in low-graphics mode for just one session.
i get a message starting display in one minute.....nothing happens ... i switch to text mode by pressing
escape. There is a brown color star before: Speech dispacher configured for user sessions.on battery state there is a infinte loop i.e. no response and system just hangs there...startx at text mode makes the screen blank...

Please tell which part of '/var/log/Xorg.0.log' sholud be scanned to find required information.

i am a new to ubuntu How to solve this problem i donot have internet connection and its important that i get it repaired as soon as possible....essential to get it running else i will be forced to goto Windows...

View 3 Replies View Related

Ubuntu Installation :: 11.04 - When Connect Internet Via Wifi - Input Password - Make My Computer Slow To Halt

Jun 28, 2011

My Netbook is ASUS EeePc HA900, I already use Ubuntu 10.04 is ok, nothing problems, then I upgrade to Ubuntu 10.10, it is still Ok. But when I upgrade to ubuntu 11.04, it have problems with Wifi, when I connect Internet via Wifi, just input the Password, it make my computer slow to halt, and have to turn the power off to shutdown the computer.

View 1 Replies View Related

General :: Setting The Password To Only Three Characters?

Feb 7, 2010

In Ubuntu 9.10 is there a way of setting the password to only three characters.If one goes to system, Preferences, About Me, the password can be reset, but it only lets you set it to eight characters, I would prefer three or less.

View 5 Replies View Related

Programming :: Input And Output On C++ Programming ?

Jan 28, 2010

As i am new to C++ i couldn't figure out how to input a file and make some change on the file and produce a output file. like this problem i have is.

"Program that processes an input file and produces an output file. The input file will contain lines of data, each containing two floating point numbers. The lines of the output file should contain the two numbers read and their average (with a '$' sign and 2 places after the decimal point)."

View 2 Replies View Related

Ubuntu :: Setting Password After Disabling It Using The Terminal

Aug 24, 2010

I once disabled my login password, and now I would like to set a password again by using the terminal. So, in the terminal I write:

sudo passwd myuser

I'm asked for my current password, but since I don't have one I press enter. I get: Sorry,try again.... hat's the correct way of doing this?

View 10 Replies View Related

General :: Default Password Setting In Cobbler

Oct 12, 2010

I cant understand how to sort out from this problem, while check the cobbler boot server, from the command cobbler check follwing error comes out , i dont understand how to fix it

1 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new one Restart cobblerd and then run 'cobbler sync' to apply changes.

View 1 Replies View Related

General :: Setting Root Password In Slackware 9

Jul 1, 2011

i booted into linux single mode thru lilo but i can't use any commands in slackware that changes the root account or user account using passwd root command

View 1 Replies View Related







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