- Sep 4, 2000
- 482
- 0
- 0
How is it FTP servers in a client/server env manage the user permissions... it seems you have two cases, the anonymous FTP server (which seems to just be a chroot command for safety sake) and the where a user has an account of some sort and logs in a gets into their home dir with only their permissions for accessing and deleting files. How is this second case managed in the Unix and non-unix world? is seteuid used for this and then whatever operations simply fail, fail? Or is some sort of magic checking routine done up front to make the user has the permissions to do that thing to each and every single file they try to touch?
Is it possible to do stuff like setuid and other operations like this (or their equivalent) in the java world, or do I have to something funky like start a java routine from a c compiled thingee? I suppose obviously it's easier not to try to write a server for > 1 kind of platform.
I was looking at the ftpd code and it wasn't *entirely* obvious how things were happening.
Thanks for all the help
Is it possible to do stuff like setuid and other operations like this (or their equivalent) in the java world, or do I have to something funky like start a java routine from a c compiled thingee? I suppose obviously it's easier not to try to write a server for > 1 kind of platform.
I was looking at the ftpd code and it wasn't *entirely* obvious how things were happening.
Thanks for all the help