Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SAMBAnot working.

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I am using RedHat 7.2 and have configured using GnoSamba. I cannot see my linux box from my windows system. Also, how am I supposed to access Windows shares from Linux?
 
First, can you ping your linux computer from the windows computer and vise versa?

I'm not to familiar with Redhat but in Mandrake I use a program call Komba2 so you may want to look to see if you have that installed.
 
How does your smb.conf file look like ?
All configuration regarding samba is done in that file.
take a look at man smb.conf
default location for smb.conf is /etc/samba/smb.conf
/Sören
 
Here is my '/etc/samba/smb.conf' file.

;*******************section global*****************
[global]
log file = /var/log/samba-log.%m
lock directory = /var/lock/samba
share modes = yes
;*******************section homes*****************
[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0750
;*******************section Public*****************
[Public]
comment = Public
path = /home/public/
guest ok = yes
guest_account = nobody
guest only = yes
writeable = yes
;*******************section WebSite*****************
[WebSite]
comment = WebMaster
path = /var/valid users = mark, apache
writeable = yes
;*******************section tmp*****************
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
 
Hello!.

You are missing several an important items in your samba configuration file, I think that you should read the samba howto.
You are missing something like:

You're not telling samba what nic card (ip address)are you going to use to share files using Samba.
You are missing your group name.
You must decide if you what to use Encryption password if you are using Win95b or above
 
If you cannot , or will not use swat, then at least run testparm against your config..

Right off the bat you have no workgroup name,so windows
boxen cannot and never will be able to connect.
In global assign the workgroup the windows machines are
in.
Previous post was right also in that you need to enable encrypted passwords.

Running testparm and saving it to a text file will give
you all of the available settings so you can look
through and then fix what you need to in smb.conf.
 
Hi,

On your 'other' question - the easiest way to handle windows shares from a linux client is to use 'mount' to mount them as your would any other filesystem. For example :


mount -t smbfs -o username=joeuser,password=foobar //ntserver/test /mnt/test

Then everything for that share will be in /mnt/test .

(The linux mount point - shown above as /mnt/test would have to pre-exist. Create with '/sbin/mkdir /mnt/test' )

To do the equivalent of a dos command 'net view \\ntserver' you can do :

smbclient -L //ntserver -U guest%

or

smbclient -L //ntserver -U joeuser%foobar

Hope this helps


 
You might also have to use one of the registry hacks which comes in the samba distribution on the clients which connect to it if you choose to have no encryption. Otherwise the windows machines will attempt to send encrypted passwords, which will be rejected by samba. C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
Wow, thanks guys. I will try all these out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top