November 23, 2024, 08:32:18 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Samba How to  (Read 5602 times)

Offline ilias

  • Linux Learner
  • ***
  • Posts: 116
Samba How to
« 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

Offline shani

  • Tux Awared
  • **
  • Posts: 36
Samba How to
« Reply #1 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--------------------

Offline ilias

  • Linux Learner
  • ***
  • Posts: 116
Samba How to
« Reply #2 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.

Offline shani

  • Tux Awared
  • **
  • Posts: 36
Samba How to
« Reply #3 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

Offline ilias

  • Linux Learner
  • ***
  • Posts: 116
Samba How to
« Reply #4 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.

Offline shani

  • Tux Awared
  • **
  • Posts: 36
Samba How to
« Reply #5 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