Архив за день: 30 января 2009

Настройка rshd в FreeBSD

# cat /etc/pam.d/rsh
auth required pam_rhosts.so no_warn
account required pam_nologin.so
account required pam_unix.so
session required pam_permit.so
password required pam_deny.so

# cat /etc/inetd.conf | grep rshd
shell stream tcp nowait root /usr/libexec/rshd rshd -D -l -n

# cat /etc/rc.conf | grep inetd
inetd_enable=»YES»
inetd_flags=»-wW -C 60000″

# cat /etc/hosts
1.2.3.4 hostname

# cat /etc/hosts.equiv
1.2.3.4 root
1.2.3.4 user

# cat /usr/local/etc/sudoers
root ALL=(ALL) SETENV: ALL
user ALL = NOPASSWD: /usr/bin/uname