Avatar of lwmjenkins
 asked on

Adding FTP users

Hello, I am a beginner at administering Unix servers. What I want to do is setup some ftp users on the server. The users would need full access (read, write, etc) to all of the website files on the server. If anyone can point me in the right direction it would be greatly appreciated.

Unix OS

Avatar of undefined
Last Comment

8/22/2022 - Mon

1) You can add a normal user use "useradd" command to create a user
man useradd
to learn more details:

also have a look at the answer in http:Q_21907408.html

PS: you can create a FTP only account, by using /bin/false as the user login shell
      need to add /bin/false to /etc/shells file.

2) You can create a web dir for that user by setting up the proper permmsions for
    the dir
   You want user1 to look after /path-to/user1-doc
   you do:
   chmod 750 /path-to/user1-doc
   chmod g+s /path-to/user1-doc
   chown -R user1:nobody /path-to/user1-doc
  the permissions should looks like:
   drwxr-sr-x  14 yuzh     nobody      1536 May 12  2004 public_html/

   If you need more help, please post your OS version, or the output of:
  uname -a



Firstly, you need to tell us which Unix flavour you are talking about as FTP configuration varies greatly.  Unix is a generic term.

Yuzh's example is for Solaris.

Okay... Free BSD 4.5 - Release... will those commands still work?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes

You still can useradd and chmod command to do the job.

man useradd
to learn more details about the usage.

and have a look at the FreeBSD book:

Full Doc:

Good luck!

Okay... I tried the adduser command, and I got an error "/var: write failed, file system is full" I know I'm probably doing something wrong, any suggestions?

Also I have enter shell csh date false no sh tsch [false]: which one should I choose?

>>"/var: write failed, file system is full

you need to cleanup your box, free some disk space!

type in:
df -k

to see the disk usage of your box. you might end up have to repartion your HD.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

Okay, I finally got the user added (yes it was waaaayyy too full) I can login via ftp, but I can't see anything. How do set this user up to be able to see and manipulate files that are already there? I am thinking it has to do with the chmod commands given earlier in the post, but I need it broken down a little further (please).

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Okay, I am about ready to say I got it, but I am still having access issues... I have the user setup, when I use ws_ftp I can see all of the website folders, but when I try to write or delete something I get access denied... what did I miss?

Thanks for your patience and help!

How did you setup the permisssions for the website folders, the user must have read and write permisions to the dir to enable him/her to write/delete files!
Your help has saved me hundreds of hours of internet surfing.