Re: [SLE] vsftpd *-Default group permissions
On Tue, 11 Jan 2005 12:56:27 -0600, Ryan McCain
<-snip-> Then, these options chown_enable and chown_username should do the trick to impersonate the writing. <-snip->
It is my understanding you can only use "chown_username" to chage the user owner and not the group owner. Am I wrong?
Thanks, Ryan
Sunny
1/11/2005 11:59:54 AM >>> On Tue, 11 Jan 2005 11:23:35 -0600, Ryan McCain wrote: I have a ftp server (SLES 8) setup using vsftpd. There is only 1 user who logs into it. We'll call him User1. I then have a group called ftpusers which includes as members: User1. I have the permissions set so that the owner of all files and directories is User1 and the group owner is ftpusers. However, when User1 logs in and creates a file the group owner is "users". Is there a way I can change this so the default group would be ftpusers? My workaround solution is to have a cronjob that runs every couple of minutes and does a: chown -R User1.ftpusers /some/ftp/directory .
Thanks, Ryan
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
If the user is only 1, I'll do it virtual user. You have to enable anonymous writing for virtual users, so it seems they are assumed anon for writing purposes, even they need to login.
Then, these options chown_enable and chown_username should do the trick to impersonate the writing.
Sunny
-- Get Firefox http://www.spreadfirefox.com/?q=affiliates&id=10745&t=85
Never tried, but a fried suggested in the past that it may work, you may give it a try with: chown_username someuser:somegroup or chown_username someuser somegroup If this is not working, you may create a new user for this purpose and change its shell to false, so it will not be able to login locally. Make its primary group to be the one you want (ftpusers). With umask like 002, your user1 will be able to modify the files if logged locally. Cheers Sunny -- Get Firefox http://www.spreadfirefox.com/?q=affiliates&id=10745&t=85
participants (1)
-
Sunny