Solved

adduser

Posted on 2003-12-05
7
2,138 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
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 200 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

929 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now