Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FTP only user
#1

To add a user for ftp purpose only so they can log into their home dir and do nothing but upload and download.

 

use:

 

useradd -m -k /dev/null -s /sbin/nologin {username}

 

 

for web use - if your hosting a www site for them and only want to give them ftp access

 

useradd -d /var/www/html/{username} -m -k /dev/null -s /sbin/nologin {username}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)