General :: Create A Expect Script To Input Username And Password?
Mar 21, 2010i was able to input it directly from the script using this code
Code:
#!/usr/bin/expect -f
set USER "bibingeorge"
[code]...
i was able to input it directly from the script using this code
Code:
#!/usr/bin/expect -f
set USER "bibingeorge"
[code]...
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 RelatedSince 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 RelatedHow can i create folders in linux? so far i have created the folders i need using mkdir /home/computer now what i need to do is create five more folders but each folder sill have their own username and password
View 6 Replies View RelatedI use an atom based processor of 1.60 ghz on intel d945gclf board. My ram is a zion 1gb @ 533mhz. Hdd is from western digital 80gb @ 7200 rpm. I have a broadband(dsl) connection from bsnl dataone (a state owned telecom service provider). I connect to internet via a huawei wa1003a ethernet/usb/wireless modem which is provided by my service provider. I need a username and a password everytime i connect to internet via dial-up.
I was using windows xp service pack ii. It was nice and easy installing my modem on xp either via usb or ethernet. Both ways it was easy as i have both the drivers with me.Only and main problem was fighting viruses. I tried many free downloadable anti-virus software to protect my maching. Initially they were fine. But after few months they stopped taking regular updates and became non-functional. I also tried symantec corporate v.10. But it has its drawbacks also. It made my machine perform like a snail.I had previously heard about linux based operating systems. But never tried one. As i am an ameteur in using computers windows xp was suiting my needs. Recently i saw an article in the newspaper about ubuntu which is a free open source operating system. And most important to me it is virus free.But here is a problem also. I cannot connect to internet. My ubuntu 9.10 karmic koala is not identifying my modem and a network between my modem and my machine cannot be established. Also i cannot create a dial-up option where i can give username and password.
brand new 2 Ubantu & set up standard Ubantu compartment accessed via 1 user name only and password. 1st few times all good but now suddenly, unexpectedly password declared invalid. Had written down password so it is correct & not entry error. Not know how to reset password or bypass 'username/password log on screen' Am on an Acer 5542G with windows 7 home premium.
View 3 Replies View RelatedI am writing an expect script. At a certain point there is a rule that produces this debugging output:
Code:
expect: does " Address or name of remote host [x.x.x.x]? " (spawn_id exp8) match glob pattern " Address or name of remote host [x.x.x.x]? "? no This just times out When I use -exact for the expect keyword it does work What am I doing wrong? THe first should also match in my opinion because it is equal as well. Even if I remove the I still have the same issue if I try without -exact. I don't understand. I tried removing the but still got the same.
I'm using Ubuntu 10.04LTS. I'm trying to configure my chat accounts. But after entering username and password, it is asking "Enter password to unlock your login keyring". I have entered my login password. But it is saying that "The password you use to log in to your computer no longer matches that of your login keyring."
View 4 Replies View RelatedIs there a way to SSH into a server (my home computer) from behind a proxy that has a username and password? I read about corkscrew, but I was wondering if there is a simpler way.
View 1 Replies View Relatedi worked on steps illustrated in [URL]... nagios website documentation. every thing goes smooth in last i stuck to connect it with web-browser. it ask for username and password when i give the same it is not authorizing it(i am giving correct password and user name).
[code]...
How come I can log in under my username using root password? Where can I fix this? I am running Fedora 10.
View 5 Replies View RelatedI currently have a UNIX script with a function that uses a username and password to connect to the database, retrieve some information and then exit. At the moment, am getting the username and password from a hidden plain text file and permission set to -r--------, i.e. read only to who own the file. The owner of the file is the same owner of the script. At the moment, am not too overly concern as the script works as it is but I want to know if anyone have a suggestion if there is any better way of achieving the same thing with some "form" of security, i.e., for example, masking the username/password.
Basically, I want to be able to mask or hide the username or password in some way. I've thought about encryting the password file, which is in plain text, using simple crypt command from which I retrieve the username and password but I need to decrypt it as well which is sort of similar to how it will be as it is now once it is decrypted. Is there anyway that I can get a username and password in some gibberish format and then translating them into something usable which can be passed on the next command that requires the username/password.
Its been since October since I accessed my Arch OS, due to a career and phical move. Since that time I forgot my username and password (including root).My question is, is there a way to get around it without starting from scratch? Oh yeah, mbackup live CD is 700 miles away! lol I can only guess what the answer is going to be.
View 6 Replies View Relatedhi to all, i am a newbie in linux and i am using CentOS 5 and our office just transferred this responsibility on my job and still have no idea on how to change the username and password on squint. the one incharge was already resigned and did not turn-over the procedures.
View 1 Replies View RelatedI am trying to create a "GUI File Transfer " Application , for transferring the files within the network. For That I will obtain User name, Password through the GUI, I will have to append username and password in a single line and run it . I am facing difficulties in exploring the "command",
View 4 Replies View RelatedJust wanted to know Where would i get the Tomcat manager's username and password .My tomcat version is apache-tomcat-5.5.29.
Quote:
/install/apache-tomcat-5.5.29/conf/tomcat-users.xml
Code:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
[code]....
I am new to Linux, I have recently bought a mini laptop for my daughter and it has linux installed. After initial looking through the linux software, (which I love) she has somehow managed to put in a user name and password, but has no idea what it is.How do I login without this information.
View 14 Replies View Relatedmy vpn server has been working well. but all user accounts are stored in /etc/ppp/chap-secrets. the question is how to create a pptp username through mysql?
View 3 Replies View RelatedCan anyone give me a example to create a acl using username from my active directory.
i have around 3000 users.
i installed acronis on the server end , the problem is that i have disabled the graphical interface on the server i have a acronis management console on a windows system where the image is being created when i try to connect to the linux server it prompts for username and password after i give the credentials then i get this error
[Code]...
I on a windows XP workstation mapping a drive \systemnaneshare and it asks for username and password. I disabled guest account in windows 2k3.
View 3 Replies View RelatedI've installed kubuntu in ubuntu 11.04 using the synaptic manager updates. After the completion of installation & after the reboot it is asking username & password, when I enter my ubuntu username & password it says it was wrong...
View 1 Replies View Relatedi am trying to write a telnet server without username/password function. how to implement such function? the source code from inetutils seems complicated..
View 8 Replies View Relatedi am having trouble connecting to the broadband connection which needs to dial the username and password but as i am very new in the linux how can i connect to the internet. i use ubantu 10.04. is there any application to dial username and password and connect to internet?
View 3 Replies View RelatedI need to change my network key number in my router, because I think it is beening used by a near neighbour in the apartment above, can anyone tell me how to do this.
View 3 Replies View RelatedI have bought a Mac Laptop however it has a username and password which I don't know. I've looked all over to see how I can overcome this lot's of people have said to enter at Grub prompt to take you to recovery, however I have no Grub prompt and Mac is not booting from cd rom.
View 1 Replies View RelatedI'm working on sharing a user's home folder using the username and password of the user's lLnux account. I noticed that home folder sharing is quite easy as I just need to change the smb.conf file to enable it. However I can't seem to login anyway. It seems that Samba keeps its own records of username and passwords. Is there a way that I can map/sync the Linux users' usernames and passwords automatically to Samba? The end result should be that whenever I add a new user or a user changes his/her Linux login password,Samba automatically changes its password as well.
View 1 Replies View RelatedHow to set up a bsnl bridged internet connection wth username and password in kubuntu 10.10 ? i tries pppoeconfig but it didnt give me any solution.
View 4 Replies View RelatedI have a server x86 architecture and my problem is lost my username & password. Hope anyone can help about this matter as i need to log in to the server for maintenance purpose.
View 1 Replies View RelatedI've written an Expect script that assists with change management on Cisco devices. The script creates log files for pre-change, the change itself, and post-change. Each log and its commands is triggered by a ! command. For example:
Code:
./dochange.exp hostname
<script spawns bash, user SSHes to hostname>
!PRE
[code]....
All of this works fine. My big hair-pulling hiccup is that the resulting log files are filled with raw backspace characters! I am using log_file to log the output from the script. I stop and restart logging with a new file when needed. However, the log files are pretty much unusable. After doing some research, it looks like log_file sends output to the file in real-time, unbuffered. When I hit a key, it's immediately sent to the log. What I would like is for only the resulting string to go to the log. If I start to type 'reload' and instead type 'show run', I don't want 'reload' to be listed in the log at all.