FXP.One:Clients: Difference between revisions

From Lundman Wiki
mNo edit summary
mNo edit summary
 
Line 29: Line 29:


Obviously, you want to replace NEWUSER PASSWORD in both cases with the password for the user you are creating and NEWUSER in the last instance with the username you desire for your new user. You can do this as many times, to add as many users as you like.
Obviously, you want to replace NEWUSER PASSWORD in both cases with the password for the user you are creating and NEWUSER in the last instance with the username you desire for your new user. You can do this as many times, to add as many users as you like.
====External Links====
[http://thietkeweb.ctit.vn/ thiet ke web]
[http://thietkeweb.ctit.vn/thiet-ke-web-mien-phi.html thiet ke web mien phi]
[http://thietkeweb.ctit.vn/thiet-ke-web-gia-re.html thiet ke web gia re]
[http://thietkeweb.ctit.vn/thiet-ke-web-chuyen-nghiep.html thiet ke web chuyen nghiep]
[http://thietkeweb.ctit.vn/thiet-ke-web-ban-hang.html thiet ke web ban hang]
[http://thietkeweb.ctit.vn/thiet-ke-web-du-lich.html  thiet ke web du lich]
[http://www.thokim.com/phong-thuy-mien-phi/ phong thuy mien phi]
[http://doanhnghiep.santhuongmai.com/ thông tin doanh nghiệp]
[http://doanhnghiep.santhuongmai.com/ thong tin doanh nghiep]
[http://doanhnghiep.santhuongmai.com/doanh-nhan-viet-nam/ doanh nhan viet nam]
[http://doanhnghiep.santhuongmai.com/doanh-nhan-viet-nam/ doanh nhân Việt Nam]
[http://doanhnghiep.santhuongmai.com/bi-quyet-kinh-doanh-thanh-cong/ bi quyet kinh doanh thanh cong]
[http://doanhnghiep.santhuongmai.com/bi-quyet-kinh-doanh-thanh-cong/ bí quyết kinh doanh thành công]
[http://doanhnghiep.santhuongmai.com/y-tuong-kinh-doanh/ y tuong kinh doanh]
[http://doanhnghiep.santhuongmai.com/y-tuong-kinh-doanh/ ý tưởng kinh doanh]
[http://doanhnghiep.santhuongmai.com/ty-gia-vang.html ty gia vang]
[http://doanhnghiep.santhuongmai.com/ty-gia-vang.html tỷ giá vàng]
[http://doanhnghiep.santhuongmai.com/ty-gia-ngoai-te.html ty gia ngoai te]
[http://doanhnghiep.santhuongmai.com/ty-gia-ngoai-te.html tỷ giá ngoại tệ]
[http://tincongnghe.ctit.vn/ tin cong nghe]
[http://tincongnghe.ctit.vn/ tin công nghệ]
[http://www.linhkiendienthoai.cellphone.vn/ linh kien dien thoai di dong]
[http://www.linhkiendienthoai.cellphone.vn/ dien thoai di dong]
[http://www.thokim.com/thiet-ke-san-vuon/ thiet ke san vuon]
[http://www.thokim.com/thi-cong-xay-dung/ thi cong xay dung]
[http://www.thokim.com/thi-cong-noi-that/ thi cong noi that]
[http://www.thokim.com/thiet-ke-kien-truc/ thiet ke kien truc]
[http://www.thokim.com/thiet-ke-noi-that/ thiet ke noi that]
[http://www.linhkiensamsung.com/san-pham/linh-kien-samsung/man-hinh-samsung/ man hinh samsung]
[http://www.linhkiensamsung.com/san-pham/linh-kien-samsung/cam-ung-samsung/ cam ung samsung]
[http://www.linhkienlg.com/san-pham/linh-kien-lg/man-hinh-lg/ man hinh lg]
[http://www.linhkienlg.com/san-pham/linh-kien-lg/cam-ung-lg/ cam ung lg]
[http://www.linhkieniphone.com.vn/san-pham/giai-ma/iphone/sim-ghep-r-sim-ultra-s-sim-ghep-unlock-iphone-4s-phien-ban-hoan-thien.html sim ghep cho iphone 4s]
[http://tincongnghe.ctit.vn/dien-thoai-di-dong/ điện thoại di động]
[http://tincongnghe.ctit.vn/thiet-bi-so/ thiet bi so]
[http://tincongnghe.ctit.vn/may-vi-tinh/thu-thuat/ thủ thuật máy tính]
[http://tincongnghe.ctit.vn/kien-thuc-cong-nghe/ kiến thức công nghệ]

Latest revision as of 07:02, 5 April 2012

1. Telnet into the box and change to the /mnt/syb8634/etc directory.

2. Jailbreak the ftpuser and move him into the mounting directory:

         ../bin/pure-pw usermod ftpuser -D /opt/sybhttpd/localhost.drives/ -f pureftpd.passwd

3. Re-write the PureFTPd user database:

         ../bin/pure-pw mkdb pureftpd.pdb -f pureftpd.passwd

4. That's it, you can confirm your changes if you want

         ../bin/pure-pw show ftpuser -f pureftpd.passwd

Newer versions

A recent upgrade reveals that this method no longer works, as the ftp user file is now created dynamically on startup.

To fix this, telnet into the box and copy to the /mnt/syb8634/etc/ftpserver.sh file to a download directory and edit the following section as below

start() {

       echo -n "Starting FTP Server..."
       /mnt/syb8634/bin/nmt_services.cgi cmd=ftp_passwd opt=ftpuser > /dev/null 2> /dev/null
       /mnt/syb8634/bin/telnetd telnetd -l /bin/sh -p 23 &
       /mnt/syb8634/bin/pure-ftpd -j -H -lpuredb:/etc/pureftpd.pdb -U 133:022 -c 10 -k 100 -I 1440 -w &
       /mnt/syb8634/bin/pure-pw usermod ftpuser -D /opt/sybhttpd/localhost.drives/ -f /etc/pureftpd.passwd
       /mnt/syb8634/bin/pure-pw mkdb /etc/pureftpd.pdb -f /etc/pureftpd.passwd

}

Adding users

Someone in the NMT forums asked me if there was a way to add additional users. I don't know why you would want multiple users, but here is your solution:

Add the following line to your start() script near the usermod line:

(echo NEWUSER PASSWORD; echo NEWUSER PASSWORD) | pure-pw useradd NEWUSER -D /opt/sybhttpd/localhost.drives -u nmt -f /etc/pureftpd.passwd

Obviously, you want to replace NEWUSER PASSWORD in both cases with the password for the user you are creating and NEWUSER in the last instance with the username you desire for your new user. You can do this as many times, to add as many users as you like.