Bekijk de volledige versie : ftp server, user acounts and directories

13-06-2007, 22:43
I've the oleg firmware on my WL-500gP. This is a screen of the USB Application menu:
http://img171.imageshack.us/img171/7449/ftpke7.th.jpg (http://img171.imageshack.us/my.php?image=ftpke7.jpg)

Every time i create an user on the User Account List and a try to use that user for tfp, they end up on the /tmp/harddisk/ftp_pub folder.

So if an user xpto_n creates a folder, that folder is visible and accessible by any other user that i have on the User Account List.

So the big question is:

How can i create users that can only have access to the folders they created, or folders i specify ?

14-06-2007, 21:17
install vsftp:

ipkg install vsftp

Check macsat.com for more info

14-06-2007, 21:31
Already tried that one. Give me an error:

[admin@ASUS log]$ ipkg install vsftpd
Installing vsftpd (2.0.1-7) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/vsftpd_2.0.1-7_mipsel.ipk
Configuring vsftpd
You'll need to add line like
echo "ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf" >>/etc/inetd.conf
to your /unslung/rc.xinetd file -- see the wiki at http://www.nslu2-linux.org for more info
cannot create directory `/usr/share': Read-only file system
Successfully terminated.

15-06-2007, 13:19
You get an error because you didn't read the manual on macsat.com

Start reading there...

21-06-2007, 10:11
If you follow up macsat.com you get the result the user jrosado describes correctly.
You can ignore the error messages.
You can install new users by introducing new users into /etc/passwd (by hand!) You have to save those volatile settings (e.g in post-boot).
You can setup the user rights with a directory like structure.
The main directory is defined by the user_config_dir tag in vsftpd.conf.

vsftpd works fine without firewall.

xinetd and vsftpd have big problems with the firewall. They send useless IP-requests that finally are ignored. This makes that the login slows down and takes minutes. (Look at http://www.linuxforen.de/forums/showthread.php?t=159995 but given the solution is not enough for the ipkg vsftpd).