SoFunction
Updated on 2025-04-08

Bulk folders to create users for Serv_U

I read it online, but I couldn't find a good way. There is no way, I can only come up with the old trick and build it with DOC.

Method steps.

1. First create folders for each account.

If the account is regular, it’s easy to say, such as: ftp001, ftp001. . . . . ftp100 can be automatically generated in Excel, and then the generated account is placed in a txt file, one account per line. If there is no rule, there is no way, you can only input one by one.

2. After preparing the file for this account, create a file, open the file, and enter the code

@for /f %%i in () do @mkdir %%i

pause

Save it, then double-click to run it to generate all the directories in the file

Explanation: /f means ignoring the blank lines in the account file, which is the account file I just created, mkdir is the doc command to create a directory, and %%i is the obtained account number, which is the name of the directory. This is a simple for loop

3. If you want to copy the same file in batches to the directory you just created, just add a sentence to the file just now.

For example: @for /f %%i in () do @copy %%i This is copied to all the directories just created, it's simple.

Using two points can actually solve many problems.

4. Comprehensive it. If you want to create an ftp account, you want to put a file in each user's directory. If I think about a txt file in each account folder I just created, I prompt the user to modify the password in time. So do this, create a new bat file and enter:

@for /f %%i in () do @echo The default user name is %%i, password 123456, after obtaining an account, please modify the password through DOC in time >%%i/%%%
pause

This sentence means to add a file to each user folder, the file name is "Current Account.txt", and the file content is as shown in the Chinese characters above.

5.Okay, the account file has been established, how to establish an FTP account? I am using Serv U. Open the serv U file. You will find a file inside. Open it and you will find it! O! It turns out that all users exist here, so that's easy to deal with. If you observe carefully, you will find that it is very regular. I saw that there are User1, User2. . It's right, as follows:

User1=dzz|1|0
User2=tzz|1|0
User3=jk|1|0
User4=dx|1|0


And his password permissions, etc.

[USER=dzz|1]
Password=fjE371F8A2F2655DAFF87F257342B6EC4C
HomeDir=d:\departmenthtmls\dzz
RelPaths=1
ChangePassword=1
DiskQuota=1|20971520|0
PasswordLastChange=1239339982
TimeOut=600
Access1=D:\DepartmentHtmls\dzz|RWAMLCDP

I guess you must have understood it.

That's easy to do. We can directly use doc to generate the User1=×××|1|0 above, and its permission file, and then copy it to the file.

But there is a problem, that is, all accounts and passwords are the same, and they should be encrypted for the account here. We first create an account, remember the password of its password, and then all other accounts use this password.

6. How to generate the above account file? I'm thinking about using it and finding an explanation. The methods are everywhere, using Excel, batch commands, database commands, etc.

7. How to modify the password? If you want to modify the password in FTP on the client, you still have to rely on Doc

1. Run cmd
2. Enter the command ftp
3. Enter open IP
4. Enter your username
5. Enter your password
6. The system prompts that login is successful
7. Change the password, quote "site pswd old password new password"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8. The system prompts that the password is modified successfully

Tip: Users must have permission to modify their password.