1835101 Members
2124 Online
110073 Solutions
New Discussion

ftp problem

 
Achilles_2
Regular Advisor

ftp problem

Hi all,

I have meet a problem when I make a directory via ftp using MKD. It failed to execute since I haven't set umask, isn't it?

# ftp> MKD ama
# ?Invalid command

Do anyone have an idea to solve it out with me, many thx.

Alex
6 REPLIES 6
Uday Kiran Jonnala
New Member

Re: ftp problem

You need to use "mkdir" command.
You can get the ftp help by "help" command.
Mark Grant
Honored Contributor

Re: ftp problem

Well, try "mkdir" instead. Probably won't make a difference but it's worth a try. Other than that, have a look at /etc/ftpd/ftpaccess and see if the problem is there.
Never preceed any demonstration with anything more predictive than "watch this"
Achilles_2
Regular Advisor

Re: ftp problem

My software defines MKD instead of mkdir, so I need to change the configuration in server side. I try to /etc/inetd.conf

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 002

Is it correct?

Alex
David Burgess
Esteemed Contributor

Re: ftp problem

Is your software client side? If so I assume it's really running the mkdir command on the server.

With regards to the change for -u, log in and transfer a file and then check the permissions of the file you created with "ls".

To check what commands the ftp server accepts type help at the ftp> prompt.

Regards,

Dave.
David Burgess
Esteemed Contributor

Re: ftp problem

Sorry forgot umask 002 will create files that are rw-rw-r--

Regards,

Dave.
Karthik S S
Honored Contributor

Re: ftp problem

By the way mkd also should work with ftp. For that matter you can give the first few letters of any command to get it working in ftp. Are you using any third party ftp utils??

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn