Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how do i make samba speak to windows {solved}
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gentoobobby
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 293

PostPosted: Thu Feb 09, 2006 8:27 am    Post subject: how do i make samba speak to windows {solved} Reply with quote

I can ee the server in network nieghboorhood but jut cant access it all i need is one simple share that is browsable by any windoes machine and writeable is thi possible

Last edited by gentoobobby on Fri Feb 10, 2006 8:09 pm; edited 2 times in total
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 476
Location: The Two Niles, Africa

PostPosted: Thu Feb 09, 2006 8:43 am    Post subject: Reply with quote

what did you put in your smb.conf file?
_________________
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Back to top
View user's profile Send private message
gentoobobby
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 293

PostPosted: Thu Feb 09, 2006 8:50 am    Post subject: Reply with quote

well i just edited it all u no how its got all the ; i just took the 1s away which thought would makie it work im trying to get it to hare a folder called all that every one can see.
Back to top
View user's profile Send private message
paul555
l33t
l33t


Joined: 22 Nov 2004
Posts: 612
Location: Greece

PostPosted: Thu Feb 09, 2006 11:09 am    Post subject: Reply with quote

gentoobobby first you shouldn't post your problem here.Better i think was to networking.Now you just need to add at your smb.conf file the correct workgroup name you have specified in windows
Quote:
workgroup = (name of the workgroup)

To make a folder to be browsed anonymously from anyone you have to add to the bottom of smb.conf
Code:
[music]
path = /foo
available = yes
browseable = yes
public = yes
writable = no

Also look here
_________________
"LINUX, MS-DOS, Windows : known as the Good, the Bad and the Ugly." :)
http://www.gnome.gr
Back to top
View user's profile Send private message
gentoobobby
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 293

PostPosted: Thu Feb 09, 2006 11:23 am    Post subject: Reply with quote

i dont really understand the how to 2s man , Do i need to have a samba user and password so that any machine can acess the share

i cannot acces theserver from my windows machine

this is my config which i got of a guy earlie
Code:

[global]
workgroup = MSHOME
server string = Samba Server %v
printcap name = cups
#  lock directory    = /usr/local/samba/var/lock
interfaces = lo eth0
hosts allow = 192.168.7.0/255.255.255.0 127.0.0.1
hosts deny = ALL
lanman auth = no
#bind interfaces only = yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
security = share
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
map to guest = Bad User
guest ok = yes

wins support = no
[print$]
comment = Printer Drivers
# this path holds the driver structure
path = /etc/samba/printer
# add a username to the write list
# if you don't want root to be the only
# printer admin
write list = root




[printers]      # here all printers will be shown; this becomes the Printer]
# share/section under Network Neighborhood
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
printable = yes
printer admin = printer,root


[homes]
path = /
available = yes
browseable = yes
public = yes
writable = no


this still is not letting me access the fileserver asny reason why this could be anything to do with host allow ?
Back to top
View user's profile Send private message
paul555
l33t
l33t


Joined: 22 Nov 2004
Posts: 612
Location: Greece

PostPosted: Thu Feb 09, 2006 11:35 am    Post subject: Reply with quote

gentoobobby look to your smb.conf .You have those lines
Quote:
interfaces = lo eth0
hosts allow = 192.168.7.0/255.255.255.0 127.0.0.1
hosts deny = ALL
lanman auth = no
comment them and restart samba service with
Code:
/etc/init.d/samba restart

_________________
"LINUX, MS-DOS, Windows : known as the Good, the Bad and the Ugly." :)
http://www.gnome.gr
Back to top
View user's profile Send private message
gentoobobby
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 293

PostPosted: Thu Feb 09, 2006 11:40 am    Post subject: Reply with quote

hey man this is still no working i really dont no whats going on and my jobs like half on the line ist there anything else that could be preventing this problem

\\vigor20 is not accesible , is this somethign to do with my router ? when i turned on my machine it said try adding vigor 20 to host i have no diea what thios means but just cannot see why i cant share thios is really annoying me
Back to top
View user's profile Send private message
gentoobobby
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 293

PostPosted: Thu Feb 09, 2006 11:50 am    Post subject: Reply with quote

Do i need to setup a least 1 deafult user name and passowrd ? i cant figure this out i
Back to top
View user's profile Send private message
paul555
l33t
l33t


Joined: 22 Nov 2004
Posts: 612
Location: Greece

PostPosted: Thu Feb 09, 2006 11:58 am    Post subject: Reply with quote

This is my smb.conf
Code:
[global]

# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = adslhome

# server string is the equivalent of the NT Description field
   server string = Medic Samba Server %v

# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = cups
   load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
   printing = cups

# 3. Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba3/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Allow users to map to guest:
  map to guest = bad user

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
# Encrypted passwords are required for any use of samba in a Windows NT domain
# The smbpasswd file is only required by a server doing authentication, thus
# members of a domain do not need one.
  encrypt passwords = yes
  smb passwd file = /etc/samba/private/smbpasswd

# 5. Browser Control and Networking Options:
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
   dns proxy = no

#============================ Share Definitions ==============================
wins support = no

# NOTE: If you have a CUPS print system there is no need to
# specifically define each individual printer.
# You must configure the samba printers with the appropriate Windows
# drivers on your Windows clients. On the Samba server no filtering is
# done. If you wish that the server provides the driver and the clients
# send PostScript ("Generic PostScript Printer" under Windows), you have
# to swap the 'print command' line below with the commented one.
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# to allow user 'guest account' to print.
   guest ok = no
   writable = no
   printable = no
   create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
;   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
;   print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
# The following two commands are the samba defaults for printing=cups
# change them only if you need different options:
;   lpq command = lpq -P %p
;   lprm command = cancel %p-%j

# This share is used for Windows NT-style point-and-print support.
# To be able to install drivers, you need to be either root, or listed
# in the printer admin parameter above. Note that you also need write access
# to the directory and share definition to be able to upload the drivers.
# For more information on this, please see the Printing Support Section of
# /usr/share/doc/samba-<version>/Samba-HOWTO-Collection.pdf
[print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root
   guest ok = yes

[books]
path = /home/paul/documents/books
available = yes
browseable = yes
public = yes
writable = no

[music]
path = /mnt/lstorage2/paul/music
available = yes
browseable = yes
public = yes
writable = no

Hope it helps
_________________
"LINUX, MS-DOS, Windows : known as the Good, the Bad and the Ugly." :)
http://www.gnome.gr
Back to top
View user's profile Send private message
d4rkwingduck
Apprentice
Apprentice


Joined: 11 Aug 2005
Posts: 220
Location: somwhere on this big blue earth

PostPosted: Thu Feb 09, 2006 12:18 pm    Post subject: Re: how do i make samba speak to windows Reply with quote

gentoobobby wrote:
I can ee the server in network nieghboorhood but jut cant access it all i need is one simple share that is browsable by any windoes machine and writeable is thi possible


Try following this guide. There is no need to reemerge samba just skip down the guide to the server configuration part. I suggest you start with a clean smb.conf and configure it as per the guide. Keep things simple first in order to establish a simple connection then you can add security related stuff. Remeber to restart samba in order for the configuration to take effect.

Cheers
Back to top
View user's profile Send private message
gentoobobby
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 293

PostPosted: Thu Feb 09, 2006 3:27 pm    Post subject: Reply with quote

hey man got it working now i can like have the share /tmp and i can read write to it but say i make a folder in /tmp called /bob

i can view in side the folder but not write is this somethng to do with permission i have to set or somethign im nearly there now though
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Feb 10, 2006 6:56 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Networking & Security.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 476
Location: The Two Niles, Africa

PostPosted: Sat Feb 11, 2006 7:04 am    Post subject: Reply with quote

gentoobobby wrote:
hey man got it working now i can like have the share /tmp and i can read write to it but say i make a folder in /tmp called /bob

i can view in side the folder but not write is this somethng to do with permission i have to set or somethign im nearly there now though

You have to think carefully about the way you want to use a samba share. If it is to be used by one user just make sure that that user owns the folder he is writing to as a Linux user too.

If you want to have a group share, it is probably best to play with "force user" or "force group" options to change the Linux file owner to be a particular user/group regardless of which user actually writes to the share.

When you have got something basic working you can then experiment with the more advanced options like ACL support.

The best thing to do, is to start off with something simple and then build on it as you understand how things are working.
_________________
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum