⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 gnu 的radius服务器很好用的
💻
字号:
This file documents `passcvt' program. See end of file forcopying conditions.* Introduction`Passcvt' reads information from the system passwd database (i.e./etc/group, /etc/passwd and /etc/shadow files) and converts it toa series of SQL statements that can be used to populate RADIUSdatabase. The primary use of this script is to facilitate switchingfrom Auth-Type=System to Auth-Type=SQL.Notice, that `passcvt' works only for systems with usual shadow passwordsuite. If you are running FreeBSD or similar system, see ../passwd_to_db.* OperationEach run of `passcvt' creates following files: sql		An SQL script that can be directly fed to mysql to		populate the database with the users' data password.new	A password file, containing all the users that did not	        get to `sql'. shadow.new	A shadow file, containing all the users that did not	        get to `sql'. shadow.only    This file contains all records from the original                `shadow' file that did not have their counterparts in `passwd'.All these files are created in the directory specified by --outdircommand line option, or in the current working directory if this optionwas not given.The simplest way to use `passcvt' is to run it without arguments. In thiscase it will create only `sql' file (and, eventually `shadow.only' if shadow file contained some hung records). Notice that `sql' file willcontain information about all users on the system, even `root'!The more realistic example is when you wish to put into the database onlythose users that belong to a certain group or groups. Such groups may bespecified using --group option. For example, to move users from groups101 and 102 into SQL, you may run: passcvt --group 101,102Then, examine the output files. If everything is OK, feed `sql' to `mysql'and replace your `/etc/passwd' and `/etc/shadow' with `passwd.new' and`shadow.new':$ passcvt --group 101,102$ lspassword.new shadow.new sql$ # Examine output files!!!$ mysql -uUSER -pPASS RADIUS < sql$ cp passwd.new /etc/passwd$ cp shadow.new /etc/shadow* Options`Passcvt' accepts the following options (defaults are given in brackets):   -g, --group GROUP-LIST      Select only users from given groups.                               GROUP-LIST is a comma-separated list of                               group names or IDs.   -s, --service STRING        Set service name [Framed-PPP]   -o, --outdir DIR            Set output directory name [.]   --sysconfdir DIR            Override the name of the system configuration                               directory [/etc]   --help                      Print the short help summary* Caveats** Do not use passcvt on FreeBSD and similar systems. Use passwd_to_dbinstead (see contrib/passwd_to_db).** You have to be root to access /etc/shadow** For security reasons, all output files are created with permissions 0600** Carefully examine passwd.new and shadow.new before copying them to/etc/passwd and /etc/shadow.** Pay special attention to shadow.only file. Its presense indicates thatyour /etc/passwd was not in sync with /etc/shadow.* LicensePasscvt is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or(at your option) any later version. Passcvt is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Passcvt; if not, write to the Free Software Foundation,Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */* Copyright information:Copyright (C) 2004 Free Software Foundation, Inc.   Permission is granted to anyone to make or distribute verbatim copies   of this document as received, in any medium, provided that the   copyright notice and this permission notice are preserved,   thus giving the recipient permission to redistribute in turn.   Permission is granted to distribute modified versions   of this document, or of portions of it,   under the above conditions, provided also that they   carry prominent notices stating who last changed them.Local Variables:mode: outlineparagraph-separate: "[ 	]*$"version-control: neverEnd:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -