|
Tutoriali
|
|
Autor albinary
//
Srijeda, 02 Veljača 2011 23:44
|
Želite da posebni useri imaju posebne umaskove i koristite vsftp? Skroz korisno i malo komplicirano za složiti bez stručnog vodstva našeg Albinarya. :D
Kreiraj direktorij, npr. nazvan vsftpd_user_specific_configs Create folder, for example named vsftpd_user_specific_configs
mkdir /etc/vsftpd_user_specific_configs
(u ovom primjeru su postavljeni u /etc direktorij jer on obično sadrži konfiguracijske datoteke na Unix sustavima) (i have put it in /etc folder because it is common on Unix systems to hold configuration there)
Editiraj file /etc/vsftpd.conf i dodaj sljedeću liniju: Edit /etc/vsftpd.conf file and add the following line:
user_config_dir=/etc/vsftpd_user_specific_configs
Zatim kreiraj novu datoteku u tom direktoriju nazvanu točno kako je username tog korisnika za kojeg radiš posebne postavke. Npr., ako radiš posebnu konfiguraciju za usera mirko, onda će file biti nazvan mirko: Then create new file in that foder naming it exactly as username for which you are creating specific config file. For example, if you want specific configuration for user mirko, then file would be named mirko:
/etc/vsftpd_user_specific_configs/mirko
Nakon toga editirate taj file i u njega upišete kakve god konfiguracijske parametre vsftpd.conf prihvaća (popis istih možete naći ako pokrenete naredbu "man vsftpd.conf" u terminalu.) Then edit the file and in it you can put whatever configuration parameters vsftpd.conf accepts (see those with running "man vsftpd.conf" in terminal)
Kako dodati umask za pojedinog korisnika: How to add custom umask for specific user:
Ako za primjer želite da se pri kreiranju datoteka i direktorija tog korisnika automatski postavljaju drukčija pristupna prava (umask), u file /etc/vsftpd_user_specific_configs/mirko se dodaje linija: For example if you want to create specific umask (access rights for the files and folders user creates on the filesystem, read, write etc.) for user creadted files, you would add:
local_umask=002
(umjesto uobičajenih postavki 022 postavljenih u /etc/vsftpd.conf). (instead of default 022 set in the /etc/vsftpd.conf).
|