Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i am going to develop a photo selling webapp, in that every user has options to upload there photos via ftp (ubunut 10.04 + vsftpd) , folder structure

/var/www/project/downloads_ftp_folder

/var/www/project/downloads_ftp_folder/user1_ftp_folder /var/www/project/downloads_ftp_folder/user2_ftp_folder /var/www/project/downloads_ftp_folder/user3_ftp_folder

for every user i am creating ftp folder and group

probelm

is my strategy is correct or not, how to create a super user so that he can manage all ftp_folder (eg user1_ftp_folder,user2_ftp_folder)

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Either add the super user to every group or

user1_group = user1, superuser

user2_group = user2, superuser

...

chown user1:user1_group user1_ftp_folder
chown user2:user2_group user2_ftp_folder
...
chmod 770 user1_ftp_folder

do not bother having user groups and just have a superuser group

supergroup = superuser

chown user1:supergroup user1_ftp_folder
chown user2:supergroup user2_ftp_folder
...
chmod 770 user1_ftp_folder
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.