Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: ilias on February 28, 2006, 04:53:46 AM

Title: Samba How to
Post by: ilias on February 28, 2006, 04:53:46 AM
Hi all

Can anyone tell me step by step to install, configure and administer samba

Tks in advance
Title: Samba How to
Post by: shani on February 28, 2006, 06:43:45 AM
Hi dear

samba will be installed by defualt you have to just configure it.
open smb.conf file form following command.

[root@Rapid ~]# vi /etc/samba/smb.conf

then change the follwing directives
{{{{{{{{{{{{{{{{
# in the following line if you select security= user then when u access this #system it will ask for user name and password and if it is set to share #then it will not ask any authentication.
security = share/user
[tmp]
   comment = Temporary file space
   path = /tmp
   guest ok = yes
   read only = no
   public = yes

#in the above line i have shared the folder tmp in the same way you can #share any other folder but you need to specify the path of folder and #permissions to that folder
}}}}}}}}}}}}}}}}}
after this you save this smb.conf file
then
[root@Rapid ~]# test parm

if there is no error then move to next step.

[root@Rapid ~]# /etc/rc.d/init.d/smb start

this will starts samba server service but it is very simple configuration so that you can excahge files from windows plateform.

after this to test whether you samba is working or not go to windows machine and through run on start manue open ur linux machine for exemple i have 192.168.0.1 is linux machine on which samba is configured i will access this system through windows as
\\192.168.0.1         -----then press enter

it will open you linux machine and there will be two folder one is printer and other is tmp


--------------thats all you SIMPLE SAMBA Configuration--------------------
Title: Samba How to
Post by: ilias on March 01, 2006, 05:06:38 AM
That's fine and simple, if it is shared for user, how to validate the user by user name and password.
Title: Samba How to
Post by: shani on March 01, 2006, 02:38:51 PM
for that you need to make smbusers lists and smbpasswd list
where u can add users and passwords
Title: Samba How to
Post by: ilias on March 02, 2006, 04:21:30 AM
Pls can u elobrate on this i.e step by step so that this topic can be used for a complete samba reference.
Title: Samba How to
Post by: shani on March 02, 2006, 12:33:38 PM
i am bit busy now but i will post the complete manual tomorrow.

thanks for bearing with us.

regards
SHANI