Operating System - HP-UX
1833671 Members
3826 Online
110062 Solutions
New Discussion

Re: FTP without passwords

 
APA
New Member

FTP without passwords

Help me pleaaaase!
Making FTP all users can access to the server without writing his passwords - only pressing the "Enter" key when is asking for a password.
What hell is it?
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: FTP without passwords

Shalom APA,

This is ill advised.

To do this, you null out the password entries in /etc/passwd

I'm sure I'll regret posting this.

PLEASE! Don't do it. Definitely don't do it on the Public Internet.

LDAP or ADS integration can accomplish this goal without compromising security.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
APA
New Member

Re: FTP without passwords

NO! NO! NO!
All users HAS passwords in /etc/passwd and making telnet can't access without writing his passwords correctly!
MarkSyder
Honored Contributor

Re: FTP without passwords

My understanding is this: users can ftp without using a password but need a password for telnet. Correct?

If so, I suspect you are ftping to/from a server which allows anonymous ftp. If you can confirm that my understanding of the problem is correct, we can help you to fix it (unless it was set up for anonymous ftp for a good reason).

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
APA
New Member

Re: FTP without passwords

Yes. Users can ftp without using a password but need a password for telnet.

FTP from Windows to UNIX machine.
MarkSyder
Honored Contributor

Re: FTP without passwords

It looks as though you're set up for anonymous ftp. Go into SAM -> Networking and Communications -> Network Services and look for the Anonymous FTP line. I expect it will say enabled. But think carefully before you change this: was it set up this way for a reason?

Mark
The triumph of evil requires only that good men do nothing
APA
New Member

Re: FTP without passwords

I did it.
Anonymous FTP is disable.
Stanislav Bocinec
Regular Advisor

Re: FTP without passwords

Hi,
when you want to have empty password enabled for ftp acces,you could use this method:
$ cat >> $HOME/.netrc
machine your.ftpserver.com
login username
password yourpassword

and now you don't have to write passwd when accessing your ftp.
s.
Julián Aimar
Frequent Advisor

Re: FTP without passwords

Hi, your solution is:

edit $HOME/.netrc
machine login password

chmod 700 $HOME/.netrc

suerte!!!

JEA