?
Solved

adduser

Posted on 2003-12-05
7
Medium Priority
?
2,145 Views
Last Modified: 2012-06-27
Is there a way to configure my system so that when i add a user using adduser that it will automatically create an ftp accnt for him for proftpd?

If not, does anyone have a script to automate this?
0
Comment
Question by:rsumilang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 

Expert Comment

by:rafamvc
ID: 9881681
<listener>
0
 
LVL 1

Expert Comment

by:ChiefEngineer
ID: 9883322
One simple way will be to rename adduser and replace it with a shell script that invokes the renamed adduser and then (if the renamed adduser succeds) proceed to create the FTP account.

If you are the only one who will use adduser and you are going to invoke it manually then you don't need to rename adduser but just use the script instead of adduser directly to solve the problem. If you plan to use it from a front-end (or some other tool) which uses adduser as the back-end or there will be many users doing this and you can't make them use the new procedure, then you'll have to go for the renaming process.

If you need detailed help on how to do this just post another comment and I will try to make an example for you.
0
 

Author Comment

by:rsumilang
ID: 9883801
If you can post an example script of creating the user on the system and the ftp account then that will be great.

On a side note, I read somewhere that when creating system accounts a ftp account should be created along with it but I had no luck with this.

I created a "regular" user just using the adduser command it didn't update the proftpd password file (/etc/proftpd/passwd.vhosts).

Anyways, I will be very interested in a script that can handle this.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Expert Comment

by:rafamvc
ID: 9883990
i´m searching for solution, i´m aiming not in making scripts or something, i´m trying to make my ftp (proftpd) use passwd to authenticate.
[]´s
Rafael cardoso
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9885600
try this.
------
check this link for a very good script about managing user on linux.

http://www.computing.net/linux/wwwboard/forum/19953.html

then u start the
/etc/init.d/proftpd start

now user can login thru ftp.
ftp://user1@xxx.xxx.x.xx             (after @ put the ip address of yours).

it will ask for the password provide the password which is in filename file.
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 9885731
Have a look at webmin - it can be configured to add accounts to Proftp, Samba, MySQL etc - when you add a user:

www.webmin.com
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 600 total points
ID: 9885787
Been examining the problem a bit more closely. proftpd default authentication is using the PAM authentication module. You can configure proFTP to use your default /etc/passwd, /etc/shadow password files. If you want to do this, then you need to run the configure script using the --without-pam option

http://proftpd.linux.co.uk/localsite/Userguide/linked/x580.html

explains the situation more fully. This is what I think you are probably aiming for.

HTH:)

0

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question