Programming :: Passing Another Program A Password And Username?
May 14, 2010Are there any security implications in passing a binary unix program a username and password via variables from within a script ?
View 14 RepliesAre there any security implications in passing a binary unix program a username and password via variables from within a script ?
View 14 RepliesI started to run a C++ my program in Linux and I don't know how to test my program that works fine with a text file. This is a project for my uni and to explain more clear, My program is a sample database for modify or add and search and it read data from a binary file and also write into a binary file. I have got an input from my lecture and she said after compiling in Linux I must write:
1-to compile:
Code:
g++ (files with cpp)
2-to see the output:
Code:
./a.out
3-to test with input:
Code:
./a.out < input.txt >
My problem is in step three. What I must write in the command part after" step2" to see the output?
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 recently installed vsftpd on my server. I noticed that users on the machine can login into vsftpd with their username and password on the machine and go to their root dir "/home/username".Now, I want to give some people a vsftpd username and password so they can upload and download files and folders to their folder, but this folder has to be in the "/var/www/(username)" folder. I don't want them to be able to go to any other folder than their own folder like "/var", "/etc" or "/home" etc. Also I don't want them to be able to login on the machine as a user, through putty for example. They should only be allowed to acces their folder with vsftpd, nothing else.
View 1 Replies View RelatedI'm using gdb to debug my program. My program requires arguments (e.g., ./prog -dfile).But if I use gdb as in gdb ./prog -dfile, gdb wants to interpret the -d argument. How do I pass an argument to my program via gdb?
View 2 Replies View RelatedI am writing a script to get hardware information of a particular UNIX machine. To do this, I ftp a shell script (commands to get h/w information) to the target machine and then use SSH to remote the remote script.With FTP, I can pass a password accepted as input the shell script. How can I pass the same password to SSH ? This is because I do not want the user to enter the password twice.
View 5 Replies View RelatedSome programs will take options like this:$ someprogram -orange apple
And other programs will use something like this:
$ otherprogram --orange apple
Is there a "rule" or convention for this in Linux/Unix/OSX?
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 Relatedssh to server without username and password
View 1 Replies View Relatedwhen i started phpmyadmin by localhost/phpmyadmin ..it ask a username and password ....so i know password will be of mysql but what will be the username when..bcoz when i installed mysql it only asks me the password ...it doesnt ask any username to enter at that time
View 3 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 RelatedWhen I installed Ubuntu on my laptop, I had chosen "automatic login" . So i was not asked ofr username and password everytime I switched on. I later wanted to change the settings. So I went to systems-->administration-->login window-->security. There I disabled automatic login and I reboot the computer. Now the GUI does not allow me to enter Username and password. It says "Authorization denied" at the login screen.
View 7 Replies View RelatedI forgot my usrename and password to get in what can I do?
View 9 Replies View RelatedWell I have tried everything I can think of and anything on a google search.What I'm trying to do it secure the phpmyadmin folder.I put a .htaccess file in /usr/share/phpmyadmin.I can still just can't get it to pop up a required username and password.
View 4 Replies View Relatedjust got a secondhand laptop that already has ubuntu loaded on it but ithas been registered to the previous owner can i reset to my username and password or do i have to reinstall it thanks mark
View 2 Replies View Relatedi created an ubuntu live cd using the dist option in remastersys..but it is asking for username and password when i starta live session on boot..what is the username and password ?
View 6 Replies View RelatedIm trying to get into my system for first time in 2 years, i've forgotten all of my login info.. is there a back door..BTW ive never gone behind the scenes with this o/s before
View 5 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 am trying t set up my ubuntu samba server for users to login with out a username and password for a folder but I keep getting errors this is the config for the folder.
[global]
; General server settings
netbios name = LON-TI-OFF-01
server string = %h server
workgroup = LON-TI-OFF
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = SHARE
null passwords = true
#username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = yes
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
[images]
path = /home/images
browseable = yes
read only = no
writeable = yes
guest ok = yes
create mask = 0777
directory mask = 0777
force group = users
public = yes
I have setup a debian server and it has been working fine but I moved it to a different location and not I am getting a problem. When I start the server up, it loads fine and loggin prompt. I can enter the username "root" without any issues but as soon as I press enter, I am not able to enter password. The cursor just blinks and i press enter, the server responds by saying invalid password.
I was connecting a USB keyboard and changed to Ps/2 but this didn't make any difference.
I have just completed a debian netinstall, but am stuck at the "Welcome" screen. Though I took careful notes during the install re the "user account" (did not use my name as my purpose is to get the pc running and give it away) and "user password," it will not accept them. I would like to change or edit both (debian isn't telling me which is incorrect). How can this be done?
Also, this is looking for the "user account" - not the root info, right?
If I am forced to reinstall the OS, will I have to go through the entire process (partitions and all)?
I've been using checkgmail package on my f10 (x86_64) box for a while now without problems. But all of a sudden, I see a pop-up windowtating: incorrect username or password. No matter how many times I enter my usernamend password the window keeps coming back demanding for the same. My system is up to date and I've rebooted my system a few times, but the problem persists.
View 2 Replies View RelatedPulled out my old pc for the first time in about 18 months, which has fedora core 6 installed on it, tried everything but i cannot remember my username and password
View 1 Replies View RelatedWhat I go to logon to my online school, the username and password windows look to be out of wack (see attached). This behaviour is only seen with Fedora and Firefox. Is there anything that I can adjust
View 2 Replies View RelatedI would like to ask you how I can convert the file permissions of a tar.gz file. I have one tar.gz file when I try to extract I get the following output
Cannot change ownership to uid 3361, gid 5000: Permission denied
i'm trying to run ubuntu 9.10 64-bit on my 64-bit machine from a live cd, when i boot from the disk i select ENGLISH and the first option on the menu, which is try ubuntu without making any changes (or something to that effect). it then goes off to the black screen with the white ubuntu symbol, following that the brown login window appears requesting a user mane and password, now as its a live cd session i have not set a user name or password! so how do i login?
View 3 Replies View RelatedI would like to be able to enter codes. I have pressed ctrl alt f5, 6 etc and get to the black screen which asks for username and password. I enter the username and password that I use to log in, but I keep getting the message telling me that they are not correct.
View 8 Replies View RelatedI'm trying to install Lubuntu 10.04 beta 3 on an old computer to see if i can bring new life into the system but when i run the Cd if i choose run live session or try install Lubuntu straight it automatically takes me to a login screen to enter username and password.
Does anyone know the default username and password for Lubuntu 10.04 beta 3 ? ? ?
I really need to install or try out Lubuntu but i dont know the username and password to try or install it
I got the fresh installation of Ubuntu 10.04 desktop version.But it asked for username and password to login. I didn't set any username and password.I tried tose ubuntu and blank.Try ubuntu - it still ask for username and password .Install ubuntu - it still ask for username and password .
View 9 Replies View Related