FTPPWD not installed on my Vagrant Machine (Precise64-Ubuntu)

115 views
Skip to first unread message

Gayathri Balakumar

unread,
Nov 1, 2015, 11:07:04 PM11/1/15
to Vagrant
One of my shell scripts running in my Vagrant Box uses ftppwd command.

However the command is not working from my Vagrant machine.

I have used a precise64-ubuntu virtual box.

Can anyone please help.

Error:
vagrant@dev-hadoop:~$ ftppwd
ftppwd: command not found

I have below packages installed,

vagrant@dev-hadoop:~$ whereis ftp
ftp: /usr/bin/ftp /usr/bin/X11/ftp /usr/share/man/man1/ftp.1.gz
vagrant@dev-hadoop:~$ whereis linux
linux: /usr/include/linux
vagrant@dev-hadoop:~$ whereis sftp
sftp: /usr/bin/sftp /usr/bin/X11/sftp /usr/share/man/man1/sftp.1.gz

Okay, it would be great if someone can help me or guide me in getting the required package installed for getting ftppwd working.

Thank you!!

Alvaro Miranda Aguilera

unread,
Nov 2, 2015, 10:55:22 PM11/2/15
to vagra...@googlegroups.com
Hello

Without vagrant how do you get that package installed?

Vagrant is a wrapper that helps you to setup VM.

After a quick search, not sure if that is package to be available on
ssh/command line.

If this is something for some ftp server, perhaps you can share the
instructions on how you setup this? how do you use this?

http://askubuntu.com/questions/691561/how-to-install-the-ftppwd-utility-on-ubuntu-14-04

that shows there is no such package in ubuntu.

so if you are a client that requires that from other unix, not sure if
after your get a workaround will it work at all.

Can you provide more information? the more, the better.

Alvaro.
> --
> This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/0f058625-3877-4541-a386-f2ce04ba3296%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Gayathri Balakumar

unread,
Nov 3, 2015, 10:44:07 AM11/3/15
to Vagrant
I will try my level best to explain the situation here,

Step1:
- I have set up my VM

My welcome screen:
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '14.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Welcome to your Vagrant-built virtual machine.
Last login: Tue Nov 3 15:27:37 2015 from 10.0.2.2
vagrant:~$

Step 2:

I am trying to run a KSH within my VM.
KSH in turn calls a JAR. JAR has the below code written,

String command = "ftppwd” + id + " dqpwd";
Process p = Runtime.getRuntime().exec(command);

Step 3:

Since the FTPPWD unix utility is not installed on my UBUNTU machine, my KSH exits saying that program does not exist.

Step 4:

Attempting to install FTPPWD utility; Some kind of scripted installation procedure required from what I understood. No direct apt-get process present.

Please let me know if this info helps.

Alvaro Miranda Aguilera

unread,
Nov 4, 2015, 12:15:26 AM11/4/15
to vagra...@googlegroups.com
What I read about ftppwd is that return a password.

You should be able to run that command in other unix, and create then
an script that does the same output.

Can you share some example output of that command running on a Unix machine?

ftppwd id dqpwd

Alvaro
> --
> This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/eaf1eae7-2fab-4902-8c72-784caeb48128%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages