Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

solaris nttworkin

How do I create an account that can only use FTP?
Posted: 13 Aug 02

If you want an account that can only be used via ftp do the following, please remember the only user that will be able to ftp is ftponly, if you require other users to ftp edit the /etc/ftpusers file and either comment out (using a # at the start of the line) or remove the user from the file.

1) cat /etc/passwd|cut -f 1 -d: > /etc/ftpusers

2) At the prompt type

echo 'echo "This account only allows FTP Access."' > /bin/ftponly

make the file executable

chmod a+x /bin/ftponly

3) Next check to see if you have the file /etc/shells

   a) If you have, edited the file and add
      
      /bin/ftponly

   b) If not do

      ls /bin/*sh > /etc/shells
      then add the /bin/ftponly line


4) Next create the user

   useradd -c "FTP Only User" -d /home/ftpfiles -m -s /bin/ftponly -g staff ftponly

5) give the ftponly account a passwd

passwd ftponly

Have fun.....

Back to Sun: Solaris FAQ Index
Back to Sun: Solaris Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close