NHỮNG CÂU HỎI THƯỜNG GẶP VỀ LINUX - Trang 71

Những câu hỏi thường gặp về Linux

4:2345:respawn:/sbin/mingetty tty4

5:2345:respawn:/sbin/mingetty tty5

6:2345:respawn:/sbin/mingetty tty6

Commenting the offending line out và then fixing the errant program và testing on the command line
will allow you to see any error messages that go to standard error output (console) if the errors are not
going to the system log file. Uncomment the line và restart init with “

kill -SIGHUP 1

” or “telinit q”

to cause init to reinitialize và reread the [/etc/inittab] file.

Some systems, however, rewrite [/etc/inittab] when booting. In that case, refer to the

init

man page,

and/or the settings in [/etc/sysconfig/init].

Refer to the init và [/etc/inittab] man pages for detailed information.

Carl King

H:

FTP kêu rằng: “421 service not available, remote server has closed connection.”

Đ:

If an FTP server won’t allow logins, it is probably configured correctly, but the problem is probably

with authorizing users tại login. FTP servers in current những bản phân phối often authorize users with
the Pluggable Authentication Modules library, in which case there should be an authorization file
[/etc/pam.d/ftp]. A generic authorization file looks like this. (The line break on the first “auth” line is
for readability. The entry is actually a single, long line).

#%PAM-1.0

auth

required /lib/security/pam_listfile.so item=user

sense=deny file=/etc/ftpusers onerr=succeed

auth

required /lib/security/pam_pwdb.so shadow nullok

auth

required /lib/security/pam_shells.so

account

required /lib/security/pam_pwdb.so

session

required /lib/security/pam_pwdb.so

Also, make sure the [/etc/ftpusers] file, or whatever users file is named in the first “auth” line, is
configured correctly.

Btw, the sample [ftp] file above is actually the [ftpd/ftp.pam.sample] file from the
[ftpd-BSD-0.3.1.tar.gz] package. Many thanks to David A. Madore for this much needed port.

70

Liên Kết Chia Sẽ

** Đây là liên kết chia sẻ bới cộng đồng người dùng, chúng tôi không chịu trách nhiệm gì về nội dung của các thông tin này. Nếu có liên kết nào không phù hợp xin hãy báo cho admin.