Hitchhiker's Guide to Openbsd


- Setting up KerberosV Clients and Servers


Download 1.27 Mb.
Pdf ko'rish
bet152/258
Sana04.04.2023
Hajmi1.27 Mb.
#1328980
1   ...   148   149   150   151   152   153   154   155   ...   258
Bog'liq
obsd-faq49

10.12 - Setting up KerberosV Clients and Servers
OpenBSD includes KerberosV as a pre-installed component of the default system. 
For more information on KerberosV, from your OpenBSD system, use the command: 
info heimdal
10.13 - Setting up Anonymous FTP Services
Anonymous FTP allows users without accounts to access files on your computer via the File Transfer 
Protocol. This will give an overview of setting up the anonymous FTP server, and its logging, etc. 
Adding the FTP account
http://www.openbsd.org/faq/faq10.html (14 of 32)9/4/2011 10:02:15 AM


10 - System Management
To start off, you need to have an ftp account on your system. This account should not have a usable 
password. Here we will set the login directory to /home/ftp, but you can put it wherever you want. When 
using anonymous ftp, the ftp daemon will chroot itself to the home directory of the ftp user. To read up 
more on that, read the 
ftpd(8)
 and 
chroot(2)
 man pages. Here is an example of adding the ftp user. I will do 
this using 
adduser(8)
. We also need to add /usr/bin/false to our /etc/shells, this is the "shell" that we will be 
giving to the ftp user. This won't allow them to login, even though we will give them an empty password. 
To do this you can simply do 
echo /usr/bin/false >> /etc/shells
After this, you are ready to add the ftp user: 
adduser
Use option ``-silent'' if you don't want to see all warnings 
and questions.
Reading /etc/shells
Check /etc/master.passwd
Check /etc/group
Ok, let's go.
Don't worry about mistakes. There will be a chance later to 
correct any input.
Enter username []: ftp
Enter full name []: anonymous ftp
Enter shell csh false ksh nologin sh [ksh]: false
Uid [1002]: Enter
Login group ftp [ftp]: Enter
Login group is ``ftp''. Invite ftp into other groups: guest 
no 
[no]: no
Login class authpf daemon default staff [default]: Enter
Enter password []: Enter
Set the password so that user cannot logon? (y/n) [n]: y
Name: ftp
Password: ****
Fullname: anonymous ftp
Uid: 1002
Gid: 1002 (ftp)
Groups: ftp
Login Class: default
http://www.openbsd.org/faq/faq10.html (15 of 32)9/4/2011 10:02:15 AM


10 - System Management
HOME: /home/ftp
Shell: /usr/bin/false
OK? (y/n) [y]: y
Added user ``ftp''
Copy files from /etc/skel to /home/ftp
Add another user? (y/n) [y]: n
Goodbye!

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   148   149   150   151   152   153   154   155   ...   258




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling