Nextel
11-04-2001, 12:59 AM
Hey! Hows it going? Had a quick question. I have been struggling for the past day trying to figure this out, but no luck :(
What is the command using addduser to create an FTP account, with no shell access and that the person cannot CDUP from their FTP program?
Please help!!
Thanks in advance.
-James
RutRow
11-04-2001, 09:38 AM
useradd -s /bin/false USERNAME
Then add /bin/false to /etc/shells.
As far as not being able to CDUP, that depends on the ftp daemon you run. For ProFTPD, I use DefaultRoot ~ in my config file.
comphost
11-07-2001, 06:16 PM
read how to ftp chroot the ftp
for example using FreeBSD and their normal ftpd
you would use the ftponly shell i think its /usr/bin/ftponly
you would then edit /etc/ftp.chroot and add all groups
or individual logins to this file
say you use group hostingclient for all your clients
then you would put
@hostingclients
or for group hosting clients and individual simply put
@hostingclients
usename
If you chroot a user then you must be sure to have your
ftp re-compiled with internal LS so they can view files
otherwise nothing will show up as they dont see
/bin/ls