LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-30-2009, 03:01 PM   #1
the_sLiDe
Member
 
Registered: Sep 2004
Distribution: Slack 10
Posts: 155

Rep: Reputation: 30
Samba problems


Hey everyone, i am fairly inexperienced and am trying to set up samba so that my windows pc's can access a specific folder on my linux machine. So far, it seems that the printer sharing works, but the folder sharing does not. Here is my smb.conf file:

[global]
; General server settings
netbios name = FamilyServer
server string =
workgroup = MSHOME
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast

wins support = no

printing = CUPS
printcap name = CUPS

syslog = 1
syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775

[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes

[MyFiles]
path = /home/share
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = nicolas
force group = nicolas

I have added myself as user, and another (to test on a windows xp comp - with no password).

Thanks for the help!
 
Old 03-30-2009, 03:54 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
I'm not sure why you used "force user" and "force group" both equal to nicolas. Do you have a group named nicolas?

Make sure you add your user to the host machine and then with smbpasswd to samba. If you don't care about sharing your printers with guest ok=yes, you could add that to your folder share too. If you want access to YOUR home files, uncomment the section where it allows that in [homes]

I presume you've studied the excellent documentation at www.samba.org

Hope that helps; don't forget you have to restart samba after making any changes to smb.conf and that you should run testparm first.
 
  


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/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Problems with samba, can't see samba shares windsurfer Linux - Software 20 09-12-2009 05:29 PM
[SAMBA] Problems acessing samba share JoaoMorgado Linux - Software 1 02-06-2006 06:35 AM
[Samba] Problems since update to samba 3 ffred Linux - Networking 6 01-02-2004 06:19 PM
samba problems.... teacup Linux - Networking 8 03-29-2003 12:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:45 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