Thursday, August 25, 2005

Shared folder

I have configured a samba server and a ftp server on my workstation. (Both started manually) so that I can share files between other machines in our datacentre.

Both services (samba and ftp) point to the /public directory and have read+write access for anonymous users. (yes, I know....security). Anonymous access is a requirement in the Moosy datacentre!! (Our datacentre currently runs suse 9.3, suse 10 beta and some clarkconnect v3 servers)

mkdir /public
chmod 777 /public



Samba
start the services: /etc/init.d/smb [stop/start]
config file: /etc/samba/smb.conf

[global]
netbios name = moosy
workgroup = workgroup
server string = The Moosy laptop

use client driver = yes
security = share
wins support = no

[public]
path = /public
browseable = yes
writable = yes
public = yes


FTP
start the service: /usr/sbin/vsftpd
config file: /etc/vsftpd.conf

listen=YES
anonymous_enable=YES
ftp_username=ftp
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_world_readable_only=NO
anon_max_rate=0
idle_session_timeout=300
connect_from_port_20=NO
port_enable=YES
hide_ids=NO
log_ftp_protocol=NO
syslog_enable=NO
max_per_ip=0
local_root=/public
ftpd_banner=(Moosy Workstation)
listen=YES

For ftp I changed the directory for user ftp in /etc/passwd to /public


Cool solution article about vsftpd (howto make init script)


howto vsftpd SUSE SLES vsftp

2 comments:

vito said...

Hi, heute hast du mir mit deinem blog die langweile vertrieben. Nach stunden des gelangweielten surfens bin ich hier gelandet. Absolut interessantes Thema.
Ich denk hier werde ich öfter vorbei schauen !

Ich habe eine Seite über server. Hier findest du alles über server und noch viel mehr !

Wenn du Zeit hast, schau doch mal vorbei ! :-)

Gordon said...

Hello, your blog is informative. I have a linux server related website, please visit and hope that it is helpful to you