LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with SAMBA (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-samba-532174/)

bostonantifan 02-25-2007 01:52 AM

Problems with SAMBA
 
I am trying to set up a SAMBA server, and I've been following the instructions in the "Fedora 6 Bible". It seems that I'm missing a few files. According to the book, when I run the following command:

rpm =qa | grep samba

the output should be:
samba-*
system-config-samba
samba-swat-*
samba-common-*
samba-client-*

My listing, however is missing the system-config-samba & samba-swat-* lines. I've tried reinstalling using the 'yum install samba' command, but get the same results. Can anyone give me a hand with this? I'd really like to get a SAMBA server working, and would appreciate any assistance.

prozac 02-25-2007 02:08 AM

if you have samba, samba-common and samba-client, it is enough to get samba working. the other two packages just provide samba administration. you can hand-edit /etc/smb.conf file (or whereever that you put it) and configure your shares (there are examples in the smb.conf itself). run 'testparm' to check your syntax and share definitions. testparm doesn't warns about missing share directories so you need to make sure the shared directories exists and has proper permissions. you then need to add and samba user using 'smbpasswd -a username'. this user should exist in your system. make sure smb connections are allowed through your firewall, check your tcpwrapper (/etc/hosts.allow and hosts.deny) and then try to mount the share from local as well as remote machine.

bostonantifan 02-25-2007 02:36 AM

Share question
 
I'm a little confused about the shares you refer to. I checked my smb.conf file, and I saw nothing that mentioned shares, or anything that looked like a directory path that would be shared through SAMBA. Can you give me any more info, or point me to some documentation or a tutorial on SAMBA? Thanks for the info so far.

prozac 02-25-2007 02:49 AM

don't you use samba to share files & directories? it's what samba is for, so there should be shares defined in smb.conf. if you run samba without configuring anything, your home directories and printers are shared by default. if you want to share some other directories, you need to manually add them to smb.conf, here's a portion of smb.conf

Quote:

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
you should google for a 'samba howto' and read it IMO.

makix 04-09-2007 02:15 PM

Hi i have just made a flash tutorial which aims to to show you how to configure your samba and windows shares.
You can watch it from http://arilaripi.org/index.php?optio...ileinfo&id=318

i hope it will be useful for beginners :Pengy:


All times are GMT -5. The time now is 12:42 AM.