Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have 2 CentOS servers, A and B

A, our live server, has an instance of Apache Tomcat running, that downloads files from an external FTP server. After it has downloaded these files, it also copies them to another folder "outbox". These files are all owned by user:group tomcat7:tomcat7, with 664 permissions.

I have installed vsftp on A, and created a user, "dev_user", whose home directory is the "outbox"

B, our dev server, has an instance of Apache Tomcat running, that downloads files from A's FTP server.

What I would like, is that once "dev_user" has completed a GET on a file, they can also issue RM on that file, and it will then be removed from "outbox"

Any ideas?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

usermod -a -G tomcat7 dev_user.

That will put dev_user into the secondary unix group of tomcat7, which will allow it to issue the rm command.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.