1827385 Members
4025 Online
109963 Solutions
New Discussion

permissions

 
SOLVED
Go to solution
dennis bergman
Occasional Advisor

permissions

I have a user putting a file via ftp. the permissions are currently 640. I need the permissions to be 664 when the user puts the file. Where do I make this change.

Thanks
4 REPLIES 4
Christopher McCray_1
Honored Contributor

Re: permissions

You issue the chmod 664 on the machine that the file ends up on, if this is what I think you are asking, otherwise, the reverse. Have a wonderful day

Chris
It wasn't me!!!!
linuxfan
Honored Contributor
Solution

Re: permissions

Hi,

1. If you want to set this permission system wide you modify the /etc/inetd.conf file (default umask option is 027-hence the file gets create with the permissions of 640)

ftp stream tcp nowait root /usr/sbin/ftpd ftpd -lu 002

This will create files will permissions of 664 (and directories 755)

2. If you the permissions changed only for this file transfer, within the ftp session you can use "chmod 664 "

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
linuxfan
Honored Contributor

Re: permissions

Hi Dennis,

when you set the umask of 002,
files will be created with a permission of 664 and directories will be created with a permission of 775.


-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
someone_4
Honored Contributor

Re: permissions

hello
This works for me ..
Edit your /etc/inetd.conf and edit this line with the -u option and the umask 022

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

And run the command to reread the inetd.conf file or else it wont know that it has new permissions
/usr/sbin/inetd -c

you can also do a man on inetd for more info on services.

Richard