1:sudo apt-get install samba smbfs telnetd xinetd
2:edit the /etc/samba/smb.conf
workgroup = Ubuntu
security = user
[homes]
comment = Home directories
path =/home/%S
valid users = %S
browseable = no
writable = yes
create mode = 0664
directory mode = 0775
[public]
comment = Public directories
browseable = yes
public = yes
path = /home/share
writable = yes
create mode = 0777
directory mode = 0777
其中[homes]字段为系统默认的字段,其中%S为不用用户登录时显示相应的工作目录,
[public]为公共的共享目录,对所用用户都具有读写权限.
在配置完以后,就可以通过telnet登入了,不需要在位telnet做其他的特别设定