LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-08-2005, 03:44 PM   #1
mjm70
Member
 
Registered: Dec 2004
Location: Canada
Posts: 34

Rep: Reputation: 15
Question Getting samba working with two linux machines


I have had no luck getting samba to work between two linux machines. I have a small network with two lunux boxes, and a hand full of NT/W2K/XP machines.

I have no problem what so ever with the windows machines connecting to the samba server. I can see the files in the directories, and the access is set so that I can read and write to them without any problems.

I just can't seem to get it to work well with the linux box. I have added into my /etc/fstab file:
/192.168.5.100/share /mnt/share smbfs credentials=/etc/samba/auth.pixle.matt,sync 0 0

this was generated with the MCC app. so I would assume it should work some what. If I type in from a terminal: mount -t smbfs //192.168.5.100/share /mnt/share it does mount, but all the files are set to root/root, and the write access for anyone else is just read. This makes writing to the files difficult.

All the machines are just peer to peer networked. they currently do not have any domain controller for centeralized user accounts and passwords. If I was to do this I would like it on the Mandriva linux box. Is this a good idea, and will it help with getting samba to work? What would you recomend for the controler? Would I setup samba to act as a controller, and how do you configure linux to work with this?

Any suggestions into what direction to go is much appreciated.
 
Old 07-09-2005, 11:00 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I have several linux boxes (they seem to be breeding). I do not use samba. As I understand it, samba is for networking with windows computers.

linux------>samba------>samba------>linux is more complex than:

linux------>------linux


You can still use samba to link to your windows computers, but just use linux to network the linux ones. Of course, this being linux, you can have several things going on at once.

To network linux computers, it is very easy just to use ssh and nfs. Try putting "nfs howto" & "ssh howto" into google and following the first links.

nfs is probably the easiest to set up and is just for sharing files, but ssh is a lot of fun, extremely neat and saves running between computers.

HTH
 
Old 07-10-2005, 10:22 PM   #3
RoofRabbit
Member
 
Registered: Mar 2004
Location: Lenoir, NC USA
Distribution: Mandrake 10.2
Posts: 129

Rep: Reputation: 15
Samba works Linux to Linux just fine, I use it all the time between several pcs here at home and my home server. The most common mistake is not telling Linux the IPs of the other pc's hostnames. I have more info on my website for Samba.

http://roofrabbit.com
 
Old 07-11-2005, 12:11 AM   #4
Aaack
Member
 
Registered: Jul 2005
Location: Buenos Aires, Argentina
Distribution: Ubuntu Intrepid Ibex
Posts: 36

Rep: Reputation: 15
Well, I usually solved this using the webmin package for every computer.

In the "servers" section you can configure (in a really easy way) the samba shares and it's permissions, etc.

May be you should give it a try.
 
Old 07-12-2005, 05:00 PM   #5
mjm70
Member
 
Registered: Dec 2004
Location: Canada
Posts: 34

Original Poster
Rep: Reputation: 15
Following the instructions from http://roofrabbit.com I have sort of gotten the samba to work. I now have a share that can be browsed from windows and loads into linux. However, it sets all the files to root/root for ownership and restricts writing to the share for everyone else. This is only true for linux. Windows works just fine.

I did run into a problem with the swat package. It says it loaded correctly, but when I try to access it, I get the error message "the connection was refused when attempting to conenect to 127.0.0.1:901" I don't know what is up with that, but I added the users using the command line smbpasswd -a <user name>

I don't know what I need to change onto the linux workstations to get this to work properly? I will paste a copy of my smb.conf file (as it;s on another machine) later.

Any help is appreciated as I want to get to the bottom of this.

mjm

update: this is my smb.conf file


#======================= Global Settings =====================================
[global]

workgroup = IMAGE

server string = Samba Server %v

# 2. Printing Options:

printcap name = cups
load printers = yes
printcap cache time = 60
printing = cups
printer admin = @adm

# 3. Logging Options:

log file = /var/log/samba/log.%m
max log size = 50

# 4. Security and Domain Membership Options:

hosts allow = 192.168.5. 127.
map to guest = bad user
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

# 5. Browser Control and Networking Options:

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain master = yes
preferred master = yes

# 6. Domain Control Options:

domain logons = yes

#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = yes
writable = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0700

print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
use client driver = yes

[print$]
path = /var/lib/samba/printers
browseable = yes
write list = @adm root
guest ok = yes
inherit permissions = yes
# Settings suitable for Winbind:
# write list = @"Domain Admins" root
# force group = +@"Domain Admins"

[pdf-gen]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
printing = bsd
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
lpq command = /bin/true

[public]
comment = Public Stuff
path = /home/samba31/public
public = yes
browseable = yes
writable = yes

Last edited by mjm70; 07-12-2005 at 05:04 PM.
 
  


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 on fedora connects to linux machine but unseen on windows machines vyom Linux - Networking 5 07-04-2006 02:25 AM
Samba to all my XP Machines? surfduke Linux - Networking 1 09-20-2005 02:06 AM
Using Samba on all my machines Neoxeekhrobe Linux - Networking 1 08-22-2005 12:30 PM
nslookup not working on client machines only nbarraud *BSD 3 11-25-2004 01:09 PM
perl plugin not working on some linux machines nda211 Linux - Newbie 5 02-04-2003 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:19 AM.

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