LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2003, 10:26 AM   #16
lflores
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Original Poster
Rep: Reputation: 0

I am using redhat so I guess I am Soro I will do that ASAP thanks for the tip.
 
Old 08-12-2003, 12:58 PM   #17
JRandom
Member
 
Registered: Aug 2003
Location: Grand Junction, CO, USA
Distribution: Changes monthly. Also use Solaris, IRIX, and FreeBSD (and that's just at my house!)
Posts: 40

Rep: Reputation: 15
Hello,

This may sound silly, but what is the TCP/IP hostname of the box running Samba? Your example of using "\\samba" in windows to connect to the host leads me to believe that it must be "samba". Samba will default the SMB server's name to the hostname segment of the FQDN. Try this:

In your smb.conf file add the line:

netbios name = samba

and restart samba. Also, it seems that your smb.conf file may be missing a share definition. For testing purposes, add these lines:

[Public]
comment = Shared Folder
path = /home/public
public = yes
writable = yes


and make sure the /home/public folder exists.

Again, restart Samba (and maybe the XP machine for good measure!) and test for effect.

--Eric
 
Old 08-12-2003, 01:40 PM   #18
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
Try this

Try using the following as your smb.conf file. Make a backup of the old one just in case. I assumed that you already created the lfores user and there is a valid entry for him/her in /etc/passwd and /etc/group. You will also need to add the user to samba by doing: smbpasswd -a lflores. You should specify a password for that user. The password can be anything, but it is not really necessary. The output should be as follows:

Code:
[root@Samba-box root] smbpasswd -a lflores
New SMB password:
Retype new SMB password:
Added user lflores.
[root@Samba-box root]
You will need to adjust the permissions of the /data/everyone directory. First, change the owner and group of the directory to the lflores user do this by: chown lflores: /data

You should also change the permissions of the directory so that it has user and group read, write, execute and the setgid bit on. Do this by: chmod 2770 /data/everyone.

I assume that the windows XP boxes are all in the same workgroup, if not, change them so they are all the same. Another thing that will help is if you set the wins server address in the IP configuration to be the address of the samba server. This will make it easy for boxes to find each other and the samba server on the network.

If you have any questions, feel free to post. Let me know how this works for you.

Sid

Also, make sure that firewalls are turned off on the server and the XP boxes. Make sure the configuration works first, then you can work on getting firewalls configures properly.




Code:
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++

# Samba Configuration File

[global]

	netbios name = lflores-server
        server string = File Server (Samba %v)
	workgroup = arista
	security = SHARE
	encrypt passwords = yes
	null passwords = Yes

	# Guest Options
	guest ok = yes
	guest account = lflores

	# Browsing Stuff
	os level = 33
	wins support = yes
	preferred master = Yes
        domain master = Yes



[Public]
        comment = Public Share
	path = /data/everyone/
        read only = No
        create mask = 0660
        directory mask = 2770
        
        
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Last edited by sidmark-2850; 08-12-2003 at 01:41 PM.
 
Old 09-11-2003, 12:45 PM   #19
mimil
LQ Newbie
 
Registered: Jul 2003
Location: toulouse (france)
Distribution: Linux Mandrake 9.0
Posts: 13

Rep: Reputation: 0
What about using Webmin ?

I have a network of Win 9x and Win Me clients, getting an IP with DHCP, two Samba shares set up on a Linux (Mdk 9.0) server with permissions depending on the user logged.

It's working perfectly from win to linux.

I still have a few problems the other way around (that is, surfing the win shares from the linux box).

I set everything up thanks to Webmin, and it worked just fine.

For your precise problem, you might need to add Samba users (do it either with Webmin or Swat (a user-friendly web interface designed to configure samba)) and to synchronize your Unix accounts and samba (win) accounts.

Good luck
 
Old 09-25-2003, 03:51 PM   #20
thegreatgatsby
Member
 
Registered: Aug 2003
Location: England
Distribution: SuSE 9.3 pro
Posts: 332

Rep: Reputation: 30
how do I add samba users in webmin?
what names should they use?
are these the same as my xp login names or can it be different?

then what do I do
(exactly same difficulties as above)

thanks

(confused)
 
Old 09-25-2003, 09:29 PM   #21
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
I have Windows XP home able to browse the samba shares in a redhat 9 box with the machines in different subnets. If you are interested the howto is in http://cmisip.home.insightbb.com/network.htm

Check the bottom of the freeswan article as well as it concerns the use of a guest account to allow print access.

Netbios info needs to be able to travel from one pc to another. I think you may be having netbios problems. Netbios broadcasts do not leave the subnet that the machines are in. Read the browsing.txt in samba. The way I understand it, all machines in a particular subnet participate in an election and a local master browser is elected which receives all the browse lists from the other computers in that subnet. The domain master browser (which could be your samba server) then collects these browse lists from the local master browsers of each subnet. The browse list is a list of computers with file and print services. All this information is stored in a wins server (which can be your samba server) which machines can use to resolve netbios names. If you need netbios to cross to other subnets, you will need a wins server and a domain master server.

Also I am using security = user. For access to shares without having to enter a valid password, use the guest account. You can use map to guest = bad user so If somebody enters an invalid username, they are assigned the guest account.

The following article shows some commands in XP that you can use to troubleshoot.
http://www.onlamp.com/pub/a/onlamp/e...p7/index2.html


Hope this helps
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba issues trebek Linux - Networking 3 04-28-2005 03:10 PM
samba issues cham0169 Linux - Software 1 04-11-2005 08:37 AM
Samba Issues jetfanroy Linux - Newbie 10 07-29-2003 08:25 AM
Samba Issues TheTrexx Linux - Networking 4 12-16-2002 12:30 PM
Samba issues chris Linux - General 4 11-22-2001 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration