Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


skykissme

219 posts

Master Geek


#8119 5-Jun-2006 12:59
Send private message

Hi All

I'm trying to config Samba Server on RedHat 7.2 to work with Win98, W2K, and XP with a Proxy server as part of CTC course.

I don't really understand the concept and how to get through the configuration. Could anyone PM me with some explaination on smb.conf config. Or some example I can have a look at.

I try reading the RedHat manual and Samba build-in  Manual. But not clear about it. Please help.

Thank you

Pimmy




We'll never be too old to learn, and we learn at least one new thing every day.

Create new topic
barf
643 posts

Ultimate Geek


#37734 5-Jun-2006 17:13

using a text editor, edit the file /etc/samba/smb.conf
there are easier ways and even GUIs to do this, but you always learn more by learning how to do it the 'old-skool way' first
the smb.conf file is split into a [global] configuration section and per-share configuration(s)
if you have a smb.conf that is full of comments and example configurations, rename it (mv) and start with a new, blank smb.conf
lets look at a simple smb.conf
----- begin smb.conf ----
[global]
workgroup = WORKGROUP
server string = Test Samba Server
security = share

[warez]
path = /home/warez
comment = My Warez
writable = no
public = yes
----- end smb.conf ------
if you have a little intuition the function of most of these lines should be clear or even obvious, what will need explaining is the security line
the access-control to the 'warez' share (a share is in this example is [warez] and the lines below) is controlled by the 'public = yes' parameter

using security = share is the easiest way to get your samba server up and running. user-based access (security = user) and replacing a domain controller I dont want to get into right away ;-)

once you've edited your smb.conf don't forget to run '/etc/init.d/smb restart' to activate the changes to the configuration file.




Sniffing the glue holding the Internet together



skykissme

219 posts

Master Geek


#37884 7-Jun-2006 12:24
Send private message

Thank you very much barf. I finally found the problem on RH7.2 that stop it from working properly. Something to do with hostname, it's not saving the change, as soon as I restart the daemon, hostname got switch back to default. But all beside that, it's working. Thank you again.




We'll never be too old to learn, and we learn at least one new thing every day.

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.