• Post Reply Bookmark Topic Watch Topic
  • New Topic

Linux Password Expires  RSS feed

 
Gobind Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web application deployed on tomcat on win2k.
The job of this web application is to upload a file and FTP it accross to a linux box. The username and password for the linux box is in a properties file for the web-app.

My problem is that the linux box automatically expires the password after 3 months. Therefore, I have to do another code release to tomcat with the properties file ammended to reflect the new password.

What can I do about this? I do not much about linux to talk to my linux administrator.

Can anyone tell me some options? The linux box is a part of a corporate network. Therefore I do not think anonymous FTP will be allowed.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you must use FTP, then the only option is to ask the sysadmin to configure that account with a non-expiring password. If you have some more flexibility, maybe you could write an install a web service on the Linux box to receive the files; you could control the web app's security yourself.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FTP passwords are send across the wire in clear text.
It is better to use anonymous access and configure the FTP server to allow connections from the IP of the machine on which your webapp runs and deny all others.
In addition the FTP server should allow only those actions that are really needed. If your app only needs to push files to the FTP server, then disable read and browse permissions.
 
Gobind Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
than you both for your help.
You've given me some good options!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!