1834019 Members
2940 Online
110063 Solutions
New Discussion

ftp file access

 
Robin C. Querol
Occasional Advisor

ftp file access

I set up a guess ftp user - ftpuser and its group is ftpgroup. When ftpuser puts a file in the destination directory the file access is -rw-r----. How can I give access to my group for example I like to give them 777 access? Please help.Thanks.
5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: ftp file access


you have to change the ftpd line in /etc/inetd.conf to add the -u which you want to change permissions. see man ftpd.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Chris Wilshaw
Honored Contributor

Re: ftp file access

You could change /etc/inetd.conf so that the ftpd line reads

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -u 000

This will mean that any files created using ftp have 666 permissions (so could be a security risk)

You could also set yourself up as a member of ftpgroup in /etc/group, and then link /etc/logingroup to /etc/group

This would then mean that when you log in, the groups command would show you as an active member of all your relevant groups.
Ravi_8
Honored Contributor

Re: ftp file access


Hi,
modify the file /etc/inetd.conf so the ftp looks like this:

ftp stream tcp nowait root /usr/lbin/ftpd umask 000

and refresh the inetd daemon
#inetd -c


never give up
Robin C. Querol
Occasional Advisor

Re: ftp file access

I have modified my ftpd and added 007 to give write access to the group but this will affect all ftp users. Is there a way that this is the only user/group affected by this change?
Chris Wilshaw
Honored Contributor

Re: ftp file access

Unfortunately not - the settings in inetd.conf are global.