Les caractéristiques d'un compte glftpd peuvent être modifiées en éditant le fichier correspondant dans /glftpd/ftp-data/users.
Bien pratique, par exemple, pour rajouter une IP.
Attention toutefois à ne pas corrompre la structure du fichier, car aucun contrôle n'est fait, ça reste donc du dépannage.
De plus créer un tel fichier ne suffira pas à créer un nouvel utilisateur.
FTP
vendredi, 17 octobre 2008
Glftdp : fichiers de configuration des utilisateurs
Par PiR le vendredi, 17 octobre 2008, 12:18
lundi, 21 avril 2008
Proftpd : son installation
Par PiR le lundi, 21 avril 2008, 23:21
Lancer :
aptitude update
Dans /etc/apt/sources.list on décommente les 2 lignes suivantes :
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb ftp://ftp.free.fr/mirrors/ftp.ubuntu.com/ubuntu/ dapper universe
deb-src ftp://ftp.free.fr/mirrors/ftp.ubuntu.com/ubuntu/ dapper universe
Puis :
apt-get update
apt-get install proftpd
. lancement en service indépendant
. lignes modifiées ou rajoutées au fichier de config /etc/proftpd.conf
:
DefaultRoot ~
Port 421
RequireValidShell off
PassivePorts 49200 49300
TimesGMT off
Pour relancer proftpd :
. kill <N° du processus> (vu avec « ps –eaf »)
. puis taper proftpd
samedi, 3 novembre 2007
Glftpd : Remplacer l’ip par le domaine du FAI
Par PiR le samedi, 3 novembre 2007, 18:42
Pour résoudre le problème des ips dynamiques, quand on fait un "site addip user *@ip", on peut remplacer l’ip par (selon le FAI) :
- *.ipt.aol.com
- *.d1.club-internet.fr
- *.noos.fr
- *.rev.numericable.fr
- *.fbx.proxad.net, *.adsl.proxad.net, *.fbxo.proxad.net
- *.cust.tele2.fr
- *.ppp.tiscali.fr
- *.abo.wanadoo.fr
- *.adslgp.cegetel.net, *.rev.gaoland.net, *.9tel.net
- *.dclient.hispeed.ch
- *.ripe.coltfrance.com
- *.static-ip.oleane.fr
- *.dynamic.sat.abo.nordnet.fr
- *.bb.dnainternet.fi
- *.dsl.sta.abo.bbox.fr
- *.rev.sfr.net
mercredi, 11 octobre 2006
Glftpd : ajouter un utilisateur
Par PiR le mercredi, 11 octobre 2006, 18:37
Ajouter l’utilisateur toto, groupe AMIS, avec ratio illimité
Aller sur le site ftp et entrer les commandes :
site adduser toto password
site addip toto *@a.b.c.d
site chgrp toto AMIS
site change toto credits x (avec x en ko)
site change toto ratio 0
site change toto num_logins 6 6
samedi, 2 septembre 2006
Proftpd : bloquer un compte dans son home
Par PiR le samedi, 2 septembre 2006, 18:31
Pour restreindre la navigation FTP d’un utilisateur à son répertoire home (pour qu’il ne puisse pas remonter dans l’arborescence) il faut éditer le fichier /etc/proftpd.conf et rajouter la ligne suivante :
DefaultRoot ~
Proftpd : créer un compte pour le ftp mais sans shell
Par PiR le samedi, 2 septembre 2006, 18:29
Serveur FTP : proftpd
Ce serveur permet à tout compte Linux de se connecter par FTP, mais il ne sait pas faire simplement de compte virtuel. Voici une méthode pour avoir un compte qui ne pourra se connecter qu’au FTP :
. créer un utilisateur (adduser)
. éditer le fichier /etc/passwd et, au niveau de la ligne du nouvel utilisateur, remplacer /bin/bash par /bin/false pour lui interdire l’accès au shell, par Putty par exemple
Côté proftpd (à ne faire qu’une fois) :
. rajouter la ligne suivante au fichier /etc/proftpd.conf :
RequireValidShell off
. redémarrer le serveur : /etc/init.d/proftpd restart
jeudi, 27 juillet 2006
Glftpd : son installation
Par PiR le jeudi, 27 juillet 2006, 18:17
pour changer l'appartenance du rep eggdrop, à faire dans le rep parent :
sudo chown -R ryal eggdrop
sudo /etc/rc.d/inetd restart
sudo is "super user do" and makes it possible to do commands as teh root
sudo apt-get install xinetd
ftp localhost 7777
sudo rm -rf /glftpd /etc/glftpd.conf
sudo apt-get install openssl
sudo apt-get install mysql-server
mysqladmin -u root password db_user_password
www.ubuntuguide.org
gunzip -d eggdrop1.6.17-ssl.diff.gz
patch -p1 < eggdrop1.6.17-ssl.diff
./eggrop -mn eggdrop.conf
http://www.nemako.net/dc/index.php?2005/05/04/62-installer-glftpd-eggdrop-et-sitebot
crontab pour eggdrop :
. put botchk in scripts
. put autobotchk in eggdrop dir
sudo chmod +x autobotchk
./autobotchk eggdrop.conf -5 -noemail
<--- as ryal not root
'crontab -l' to view all your current crontab entries
'crontab -r' to remove all your crontab entries
'crontab -e' to add entries
crontab pour glftpd :
59 23 * * * chroot /glftpd /bin/cleanup >/dev/null 2>&1
29 4 * * * chroot /glftpd /bin/datacleaner >/dev/null 2>&1
[22:48:36] set announce(THEMEFILE) “themes/dakrer.zst” [22:48:52] in the dZSbot.conf [22:48:58] then at bottom in the same file: [22:49:22] insert these lines: [22:49:24] set msgreplace(0) “NEWDIR:*/sample:SAMPLE” [22:49:32] set msgreplace(1) “NEWDIR:*/cd?:NEWCD” [22:49:40] set msgreplace(2) “NEWDIR:*/disc?:NEWDISC” [22:49:50] set msgreplace(3) “NEWDIR:*/disk?:NEWDISC” [22:49:58] set msgreplace(4) “NEWDIR:*/subs:SUBTITLES” [22:50:06] set msgreplace(5) “NEWDIR:*/vobsub:SUBTITLES” [22:50:14] set msgreplace(6) “NEWDIR:*/vobsubs:SUBTITLES” [22:50:23] set msgreplace(7) “NEWDIR:*/subpack:SUBTITLES” [22:50:31] set msgreplace(8) “NEWDIR:*/cover:COVERS” [22:50:37] set msgreplace(9) “NEWDIR:*/covers:COVERS”
Glftpd : les commandes du site
Par PiR le jeudi, 27 juillet 2006, 18:08
site adduser DUDE PASSWORD ident@host.com
site adduser DUDE PASSWORD ident@host.com
site grpadd SITEOPS
site gadduser SITEOPS DUDE PASSWORD ident@host.com
site addip DUDE ident@host.com
site chpass DUDE PASSWORD
site change DUDE ratio|credits|flags +1ABCDEFGH
Field Description ratio Upload/Download ratio. 0 = Unlimited (Leech) credits Credits left to download. flags +1ABC or +H or -3, type "site flags" for a list of flags. Flagname Flag Description ================================================================== SITEOP 1 User is siteop. GADMIN 2 User is Groupadmin of one of his/her groups (doesn’t work for private groups). GLOCK 3 User cannot change group. EXEMPT 4 Allows to log in when site is full. Also allows user to do "site idle 0", which is the same as having the idler flag. Also exempts the user from the sim_xfers limit in config file. COLOR 5 Enable/Disable the use of color (toggle with "site color"). DELETED 6 User is deleted. USEREDIT 7 "Co-Siteop" ANON 8 User is anonymous (per-session like login).
- NOTE* The 1 flag is not GOD mode, you must have the correct flags for the actions you wish to perform.
- NOTE* If you have flag 1 then you DO NOT WANT flag 2
- NOTE* As of version 2.00 the gadmin flag can not be changed by using site change anylonger. The only way to set/unset a gadmin is not with site chgadmin.
Restrictions placed on users flagged ANONYMOUS.
- '!' on login is ignored.
- They cannot DELETE, RMDIR, or RENAME.
- Userfiles do not update like usual, meaning no stats will be kept for these users. The userfile only serves as a template for the starting environment of the logged in user.
Use external scripts if you must keep records of their transfer stats.
NUKE A User is allowed to use site NUKE.
UNNUKE B User is allowed to use site UNNUKE.
UNDUPE C User is allowed to use site UNDUPE.
KICK D User is allowed to use site KICK.
KILL E User is allowed to use site KILL/SWHO.
TAKE F User is allowed to use site TAKE.
GIVE G User is allowed to use site GIVE.
USERS/USER H This allows you to view users ( site USER/USERS )
IDLER I User is allowed to idle forever.
CUSTOM1 J Custom flag 1
CUSTOM2 K Custom flag 2
CUSTOM3 L Custom flag 3
CUSTOM4 M Custom flag 4
CUSTOM5 N Custom flag 5
site chgrp []
site delip
site deluser
site flags []
site gadduser []
site group []
site give [gGmM] []
site grp
site grpadd []
site grpdel
site grpren
site grpnfo
site nuke
site nukes
site new [.] [<#>]
site passwd
site purge
site renuser
site request []
site reqfilled <#>
site readd []
site search […]
site swho
site tagline []
site unnukes
site user []
site users [keyword|flag|=group|usernam*]
site unnuke
site undupe
site who
site wipe [-r]