2009년 9월 20일 일요일

Samba server on Ubuntu 9.04

#refrence site
http://forum.falinux.com/zbxe/?document_srl=518219
http://myubuntu.tistory.com/entry/810-우분투에-홈-서버-꾸미기2

just following the reference site directions

what I did

$sudo apt-get install samba
$sudo vi /etc/samba/smb.conf

modify next option

[global]
workgroup = Workgroup
dos charset = CP949
display charset = UTF8
unix charset = UTF8
server string = servername(whatever you want)
hosts allow = 'IP which you want to allow to access the samba server'
security = user

[park] - the name of the folder which is showing to the network.
comment = homefolder(whatever you want)
path = /home/park/
read only = no
browsable = yes
writable = yes

$sudo smbpasswd -a park
// will ask you the 'new SMB passwd:'
// 'park' is the account name on your samba server
// setting the password of the account

$sudo vim /etc/samba/smbusers
park = 'administrator'
// 'park' is the samba server account name
// 'administrator' is the windows account name(assume the client is windows)
// save and quit the vim.

$ sudo /etc/init.d/samba restart


[how to connect (from client)]

on windows Machine

'start' - 'run' \\samba server ip
ask your account name and password
put your sambaserver account and passwd

on Linux Machine

1. direct connect like ftp

# smbclient -L localhost(or Server IP) -N (check the share list on samba server )
# smbclient //Server IP/myhome ; ( myhome folder in Samba server(Server IP) smbclient //server IP/myhome -U username ; conncet as username(account)

2. mount

# smbmount //Server IP/myhome /mnt/samba -o username=park
(mount the 'myhome' folder as the useraccount 'park')

I tried above one, but it doesn't work, so I googled it, and found another way

#mount -t cifs //Server IP/myhome /mnt/smb_share -o username=park
('myhome' is the sharing name on samba server, and you should make target mount folder first!!. in here '/mnt/smb_share')


댓글 없음:

댓글 쓰기