LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Protecting Directory from deletation but upload into int (https://www.linuxquestions.org/questions/linux-newbie-8/protecting-directory-from-deletation-but-upload-into-int-883477/)

kptn3m0 05-30-2011 04:53 AM

Protecting Directory from deletation but upload into int
 
Hello, maybe a noob question, i have search around and found nothing suiteable here.

I want to make an upload directory, where people in the network can upload some files but i want to make sure that they cant delete the whole directory.

Is this possible??

ButterflyMelissa 05-30-2011 05:01 AM

Quote:

Is this possible??
Yes, it is, in fact, it is the more common setting. What you need is an FTP server (vsftp for example) and a tweaked conf file, perhaps this conversation can get you going...

Every user needs an account on the server, that would in fact "chroot"/imprison them in one spot. In that folder, provide a symlink to a folder they do not have any other than write/read(?) rights.

It can be done easily...

Luck!

Thor
By the way - this is not a noob question ;) - when you're "there", you're not really a noob anymore... :)

kptn3m0 05-30-2011 05:43 AM

Thanks a lot for your quick reply.

The users are connecting throu ssh, so i need to find out how to configure ssh stfp server right?

ButterflyMelissa 05-30-2011 09:42 AM

Hmm, yes and no, VSFTPD is quite secure as it is, it's the world "outside" the thing you need to worry about...look into this read-up, maybe that's the help you need...

I'll keep this thread in my watch list, just to see where this eagle lands, okay? :)

Thor

kptn3m0 05-30-2011 10:01 AM

Thanks unfortunatly i have not possibility here to use other things than ssh sftp. I am even not root, but rather i have to "order" changes due to some kind of security policy. I am working here in a little company and got this thing to do, but i am somehow lost here now.

ButterflyMelissa 05-30-2011 10:12 AM

Hmm, okay, I simpathise, had to work like that too. Oh well, ya can't blame 'em, it's a rat race out there...

Okay, maybe this 'll help...it's of ssh and sftp, it is on Debian, but...I'd be surprised it it cannot be adapted to your needs...

Thor


All times are GMT -5. The time now is 10:21 AM.