Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP users can't see each others files

Status
Not open for further replies.
Jan 19, 2003
34
US
Ok, here's the deal. I have an web server that we are ftp-ing files to. i can upload the files as admin and it works just fine as far as the web site is working etc. Problem is, the user that is 'supposed' to be uploading and administering this site can't see the files that I uploaded when he connects via ftp. Then if he uploads files I cannot see them -- even as root. really weird, but I assume it has to do with file permissions....any ideas? TIA
 
Since 'root' see's all, and as you indicated it "root" doesn't see the user uploaded files, I can only assume your ftp configuration has him logging into a different directory, that is assuming he (the user) isn't manually going into a different directory on his/her own
 
"if he upload files I cannot see them -- even as root."

then they are not where you think they are.
if ftp "chroot"ed?
 
What are you doing ftping in as root anyway? The normal setup is to chroot (jail) the user to his own directories. If they are regular system users, this would be their home directories. If they are webmasters of their own domains, then their webspace becomes their home directory. I think what is happening is the files are uploaded with the chmod value of 600 and the owner and group is the same as the uploader. The reason I say 600 is because the owner can read and write but nobody else can even see the file. You can fix this by having the uploaded file inherit the user and/or group or all the files have the default value of 644. Their cgi-bin will need to be at least 755 and they will also need a world writable directory 777. I think it's easier to enable chmod from the server.
 
"then they are not where you think they are."

I know what directory i'm in. You can see the files in that very directory if you log in as that user. If I go to that very same directory as root then I can't see them. I have to log in as that user to delete his files.

"What are you doing ftping in as root anyway?"

I did not ftp in as root. On my server 'admin' and 'root' are two very separate users. I simply looked for the files as root and could not see them.
 
There is a fifth dimension beyond that which is known to man. It is a dimension as vast as space and timeless as infinity. It is the middle ground between light and shadow, between science and superstition and it lies between the pit of man's fears and the summit of his knowledge. This is the dimention of imagination. It is an area which we call the Twilight Zone.


 
for kicks, can you log in as root, and ...

# find / -name whatever-your-files-are | more

and see just exactly where you guys are putting your stuff

good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top