Afegir usuari FTP: diferència entre les revisions

De WikiMar
Salta a la navegació Salta a la cerca
(Pàgina nova, amb el contingut: «FTP: Crear usuari: sudo adduser -m -G dafyngrp -s /bin/false dafyn sudo passwd dafyn Crear usuari usant una home ja existent: sudo useradd dafyn -G dafyngrp...».)
 
Cap resum de modificació
Línia 26: Línia 26:
he posat  /bin/false com a shell a /etc/shells
he posat  /bin/false com a shell a /etc/shells
si no tambe: RequireValidShell off
si no tambe: RequireValidShell off
=Instalar el ProFTPD sense usar el portage=
Step 1: Download Proftpd
Step 2: Go to the dir where you downloaded it `cd /dir`
Step 3: Untar the package `tar xzvf filename.tar.gz`
Step 4: Go into the new dir `cd proftpd*`
Step 5: Configure the package `./configure --prefix=/usr/local/proftpd`
Step 6: Compile & Install the package `make; make install` - u must be root for this step
Step 7: Start the ftp server `/usr/local/proftpd/sbin/proftpd`
Step 8: To uninstall the server do the following: `killall -9 proftpd; rm -rf /usr/local/proftpd`

Revisió del 06:56, 11 gen 2009

FTP:

Crear usuari:

sudo adduser -m -G dafyngrp -s /bin/false dafyn
sudo passwd dafyn

Crear usuari usant una home ja existent:

sudo useradd dafyn -G dafyngrp -d /var/www/dafyn.com -s /bin/false
sudo passwd dafyn


Afegir el usuari dins de /etc/proftpd/proftpd.conf:

  AllowUser OR root,zeus,marti,webftp,familia,dafyn,trafalgar,dafynfitxers,trainee

Reiniciar:

 sudo /etc/init.d/proftpd restart



Altres informacions: Config:

/etc/proftpd/proftpd.conf

he posat /bin/false com a shell a /etc/shells si no tambe: RequireValidShell off


Instalar el ProFTPD sense usar el portage

Step 1: Download Proftpd
Step 2: Go to the dir where you downloaded it `cd /dir`
Step 3: Untar the package `tar xzvf filename.tar.gz`
Step 4: Go into the new dir `cd proftpd*`
Step 5: Configure the package `./configure --prefix=/usr/local/proftpd`
Step 6: Compile & Install the package `make; make install` - u must be root for this step
Step 7: Start the ftp server `/usr/local/proftpd/sbin/proftpd`
Step 8: To uninstall the server do the following: `killall -9 proftpd; rm -rf /usr/local/proftpd`