durandel
05-24-2002, 09:05 AM
Whenever a user uploads files to his domain (this is for just one user), the files show up as being owned by root. They are still owned by their user group, but the user is listed as root.
We're running Proftpd on a Linux/Apache box. It's a virtual hosting environment.
I couldn't find anything in Proftpd that is causing this, although it's highly possible that I missed something.
Any tips/suggestions are appreciated. Thanks, guys.
billyjoe
05-24-2002, 10:38 AM
Who owns the user's directory? My guess would be it's root.
durandel
05-24-2002, 10:41 AM
Their directory (/home/jerry) is owned by jerry, and not root, so that doesn't seem to be the cause of this.
MotleyFool
05-24-2002, 12:35 PM
I am inclined to think proftpd is innocent.
Is this user using a linux/unix workstation and logging in as root?
bobcares
05-24-2002, 01:04 PM
Hi!
I hope jerry's uid is not 0.
Also can you tell us what the log files say..
It would help in debugging faster... :)
Have a great day :)
Regards
Amar
erapid
05-24-2002, 01:24 PM
Soooo....
Check your /etc/proftpd/jerry
It's in username:password:uid:gid:gecos:homedir:shell format
Better cat it here ... to look ... and say something
Regards
durandel
05-24-2002, 03:41 PM
This is his /etc/passwd file (it's not set to 0 for root):
jerry:x:598:598::/home/jerry:/bin/bash
Here is his VirtualHost entry in the proftpd.conf file. It's identical to all other entries on this server:
<VirtualHost 208.56.122.10>
ServerName jerry.uk.com
<Anonymous /home/jerry/jerry-anonftp>
User jerry
Group jerrygrp
UserAlias anonymous jerry
AuthAliasOnly on
AnonRequirePassword off
RequireValidShell off
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory incoming/*>
<Limit ALL>
DenyAll
</Limit>
<Limit STOR CWD>
AllowAll
</Limit>
</Directory>
</Anonymous>
AllowOverwrite on
DefaultRoot ~
</VirtualHost>
I tend to think that this isn't related to Proftp, but to some kind of user setting or something. Thanks!
erapid
05-24-2002, 10:59 PM
Hi,
May be. But it's unlikely
Proftpd exactly sets user right on them settings
FTP client just ... client
Do you have the file I meant - /etc/proftpd/jerry
What is included there?
Regards
durandel
05-25-2002, 12:29 PM
There actually isn't a /etc/proftpd/jerry . Guess our server's setup differently. This is an Alabanza server, incidentally.
Basically, there's an /usr/local/etc/proftpd.conf file. In this file, it has different VirtualHost settings for each user on the server.
Forgive me if I'm missing something obvious here. I do appreciate all the feedback.
Thanks!
durandel
05-29-2002, 08:33 AM
..and I just wanted any body who stumbles across this in the future to know what to look for.
The problem was with the RH6.2 binary. After it was noticed that it was different on this server than on our other servers, the problem was resolved simply by overwriting the RH6.2 binary with one from a different server.