macsat.com OpenWrt and ASUS WL Forum
March 12, 2010, 03:01:34 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: how to create user and password for vsFTPd?  (Read 23186 times)
0 Members and 1 Guest are viewing this topic.
iceman388
Newbie
*
Offline Offline

Posts: 3


View Profile
« on: March 14, 2006, 08:45:08 AM »

can anybody show me step by step that how to create users and their passwords for the vsFTPd, i can login with the admin/admin account only,thank you very much.
 Huh
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,112



View Profile
« Reply #1 on: March 14, 2006, 09:40:01 AM »


You need to add users to the system.

This is done in /etc/passwd

Logged
iceman388
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #2 on: March 14, 2006, 10:37:41 AM »

my passwd file look like this:

admin:$1$$G7jodFTX0i6sIYTDQSCFU/:0:0:root:/usr/local/root:/bin/sh
nobody:x:99:99:nobody:/:/sbin/nologin

then i add one account(user/123456) in between(user:123456/:0:0:root:/usr/local/root:/bin/sh)
but it is still not working,pls help because i am a newbie at unix,thank you.



after look like this:
admin:$1$$G7jodFTX0i6sIYTDQSCFU/:0:0:root:/usr/local/root:/bin/sh
user:123456/:0:0:root:/usr/local/root:/bin/sh
nobody:x:99:99:nobody:/:/sbin/nologin
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,112



View Profile
« Reply #3 on: March 14, 2006, 10:39:31 AM »


Now - after you have added it, try to write:

Code:
passwd user

to change the users password.

After that try to login as "user" with your new password, using ssh - and if that works, ftp should work as well.
Logged
iceman388
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #4 on: March 14, 2006, 12:44:52 PM »

thank you very much,i did it... Cheesy
Logged
vq
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #5 on: March 21, 2006, 23:33:30 PM »


Now - after you have added it, try to write:

Code:
passwd user

to change the users password.

After that try to login as "user" with your new password, using ssh - and if that works, ftp should work as well.

Yes, it works fine, but only till next reboot - my /etc/passwd returns always to its original after reboot - I tried flashfs save/commit/enable but with no success. How can I save the /etc/passwd file so that it is permanently modified? (Oleg firmware WL500gx-1.9.2.7-7b)
Thanks in advance
« Last Edit: March 21, 2006, 23:39:23 PM by vq » Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,112



View Profile
« Reply #6 on: March 22, 2006, 06:41:50 AM »


You need to add a like like:
Code:
/etc/passwd

in the file:
Code:
/usr/local/.files

After this, change your /etc/passwd and do a :
Code:
flashfs save
flashfs commit

This procedure is described in: http://www.macsat.com/macsat/content/view/21/29/
Logged
vq
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #7 on: March 22, 2006, 22:52:18 PM »

This procedure is described in: http://www.macsat.com/macsat/content/view/21/29/
Great, thanks - works perfectly fine. I should read your tutorials more carefully.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.082 seconds with 26 queries.