• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Help - How to configure Samba in RH7.3?

Cooky

Golden Member
I'd like to read and write files on a Linux box from WinXP. Both machines are on the same private network. Here's what I've done:
Installed Samba 2.2.7.
Tried some varieties of smb.conf that I found on the web, including the one in AT's FAQ section. Whever I try to access the Linux box I get error messages saying I don't have permission and contact the admin for the remote host...

Could someone please tell me
1. Where I can download a properly pre-configured smb.conf file or how I should configure it
2. What accounts I should set up?? Some suggest creat an account matching my Windows machine name, some suggest otherwise. And how do I creat these accounts, (smbpasswd ??)

thanks for answering my questions.,
 
Actually reading the docs here, in SWAT, and on samba.org helps a lot! Dont just copy the smb.conf, read the docs to understand the configuration parameters you are setting. And you will need SAMBA accounts, and I think smbpasswd is how you create them.
 
How to configure Samba in RH7.3?

1.) install
"rpm -ivh samba-whatever.rpm"

2.) read the example config
"pico /etc/smb.conf" (might be /etc/samba/smb.conf)

3.) uncomment the example config you want to use

4.) add a new users
"su", password, "passwd username" (or "smbpasswd username" depending on what kind of a user you want to create)

5.) start samba
"/etc/init.d/samba start"

6.) mount your share from your windows machine providing the account name/pword you created in #4

7.) if all went well, setup samba to start by default
"/usr/sbin/chkconfig --level 2345 samba on"


This is all off the top of my head at 2:30 in the morning... try it and post if something went wrong.

bart
 
Buddha Bart-
Thank you so much for the detailed instruction.
I've got Samba installed
I guess my first question is which lines in /etc/samba/smb.conf to uncomment and what variables/parameters to setup.
Below is what I have:
workgroup=WORKGROUP
server string = SambaServer
hosts allow=192.168.1. 127.
log file = /usr/local/samba/var/log. %m
max log size = 50
security = user
socket options = TCP_NODELAY

[homes]
comment = Home Directories
path = /home
browseable = no
writable = yes
public = yes

I've used smbpasswd to add user; my question for this step is does the new user I create need to match the name of the WinXP machine name, or it doesn't matter?

I've ensured Samba is started at boot up.

For step #6, exactly how do I access the share from XP? I can see the LinuxBox in Network Neighborhood but when I click it I get:
\\LinuxBoxName is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.
The account is not authorized to log in from this station.

If I change the line
security = user to
security = share, I get a prompt w/ user account as: \\LinuxBoxName\guest (this is grayed out so I can't change login) asking for password. I've made sure guest exists both in passwd and smbpasswd but no matter what I type, it's no good.
 
Just got it to work!! Thanks for y'all's input!!

I swear to God, the first time I followed the instruction listed in the FAQ section it didn't work at all....I guess what I did wrong was to put the share path under [homes], which should've been as it is...
Besides, I used SWAT (the web GUI) to modify the smb.conf file, w/o knowing that by doing so will erase all the comments that came w/ the default smb.conf so I had some trouble putting all the pieces back together.

One more question, does anyone know if this works in Solaris9 on a Sun Ultra2, or just on Linux?? I looked and couldn't find RPM on my Sun station so I assume I'll have to compile the program instead of installing RPM??
 
Originally posted by: Cooky
Just got it to work!! Thanks for y'all's input!!

I swear to God, the first time I followed the instruction listed in the FAQ section it didn't work at all....I guess what I did wrong was to put the share path under [homes], which should've been as it is...
Besides, I used SWAT (the web GUI) to modify the smb.conf file, w/o knowing that by doing so will erase all the comments that came w/ the default smb.conf so I had some trouble putting all the pieces back together.

One more question, does anyone know if this works in Solaris9 on a Sun Ultra2, or just on Linux?? I looked and couldn't find RPM on my Sun station so I assume I'll have to compile the program instead of installing RPM??

Sun has its own package system. Check out sunfreeware.com for a bunch of pre-built packages.
 
Originally posted by: mcveigh
FAQ you!

I've been stuck getting Samba to run, myself, so I'll try this tomorrow. Thanks!

While I successfully advertised my LINUX site so it appeared in the Win98se WorkGroup list, the individual LINUX Shares [FileSystems] wouldn't show up in Windows: in the jargon, "they could not be Browsed". The Shares would show up in LINUX when it browsed itself, however; likewise the Win98 Shares could be browsed by Linux.

I read [seemingly endless] How-To's which pointed to "password encryption issues" blocking Windows browsing of LINUX unless one changed default settings, but I never could crack that nut (though I hacked at settings on both LINUX and Win98se]. I presume you folks are seeing your LINUX shares on the Win systems using just the FAQ indicated... and this runs contrary to my understanding of the password-encryption issues or I missed something in that FAQ.

If this FAQ just permits mounting shares w/o "browsing" -- w/o Win98 seeing lists of available LINUX shares] -- then perhaps I understood the password-encryption issues; if not, then I bungled them !!! I never thought to try to mount a Share I couldn't browse.

This problem has driven me to actually order RedHat documentation -- totally against the spirit of LINUX !! 🙂 [BTW, Buy.com has the best price on Red Hat Linux 8 with DVD that I've seen.] Only a few more days and I'll have another thousand page book which I'll hardly use! So it goes....
 
Originally posted by: Basilisk
Originally posted by: mcveigh
FAQ you!

I've been stuck getting Samba to run, myself, so I'll try this tomorrow. Thanks!

While I successfully advertised my LINUX site so it appeared in the Win98se WorkGroup list, the individual LINUX Shares [FileSystems] wouldn't show up in Windows: in the jargon, "they could not be Browsed". The Shares would show up in LINUX when it browsed itself, however; likewise the Win98 Shares could be browsed by Linux.

I read [seemingly endless] How-To's which pointed to "password encryption issues" blocking Windows browsing of LINUX unless one changed default settings, but I never could crack that nut (though I hacked at settings on both LINUX and Win98se]. I presume you folks are seeing your LINUX shares on the Win systems using just the FAQ indicated... and this runs contrary to my understanding of the password-encryption issues or I missed something in that FAQ.

If this FAQ just permits mounting shares w/o "browsing" -- w/o Win98 seeing lists of available LINUX shares] -- then perhaps I understood the password-encryption issues; if not, then I bungled them !!! I never thought to try to mount a Share I couldn't browse.

This problem has driven me to actually order RedHat documentation -- totally against the spirit of LINUX !! 🙂 [BTW, <a class=ftalternatingbarlinklarge href="http://www.buy.com/retail/product.asp?sku=31025867&loc=106" target=blank>Buy.com has the best price on Red Hat Linux 8 with DVD</a> that I've seen.] Only a few more days and I'll have another thousand page book which I'll hardly use! So it goes....

Hopefully the part I bolded is the stupidest thing I read today.
 
Back
Top