Operating System - HP-UX
1834101 Members
2820 Online
110063 Solutions
New Discussion

change default permission for ftp user

 
arun m govind
Frequent Advisor

change default permission for ftp user

Hi all,

I have created a restricted ftp user
now i wanna change default permission for that ftp user. for example if that ftp user puts some file in home directory so permission on those file should be 777 by default.Remember that ftp user is not having any shell he is just doing " ftp> mput " only.
i think we should make some changes in /etc/ftpd/ftpaccess file.

Thanks in advance
3 REPLIES 3
MarkSyder
Honored Contributor

Re: change default permission for ftp user

I'm pretty certain it's impossible to ftp files with execute access. That's one of the reasons there are no unix viruses - let's leave it that way!

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Peter Godron
Honored Contributor

Re: change default permission for ftp user

Hi,
why not let the ftp user decide the permissions ? They can use the chmod command from ftp prompt to set permissions on the file after ftp.
Marvin Strong
Honored Contributor

Re: change default permission for ftp user

speaking strictly from a security viewpoint.

777 and 666 are bad numbers and should be avoided if at all possible for files permissions.

man ftpaccess it tells you how to set the umask.