Fedora Linux Support Community & Resources Center
  #1  
Old 28th October 2007, 08:00 PM
ariskk Offline
Registered User
 
Join Date: Sep 2007
Posts: 74
Arrow can someone post his smb.conf file?

Hi, I find it impossible to setup samba to work correctly for me. I just want to share a couple of folders to all windows machines and users. I don't want security, I just want for example /shared folder to be visible by any windows machine and users.

Thanks, Kostas
Reply With Quote
  #2  
Old 28th October 2007, 08:20 PM
hermouche Offline
Registered User
 
Join Date: Apr 2006
Location: Algeria
Posts: 807
Hy,

This is what you asked:

[root@ibm samba]# cat smb.conf
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/10/24 21:34:16

[global]
workgroup = MSHOME
server string = Samba Server Version %v
encrypt passwords = No
log file = /var/log/samba/log.%m
max log size = 50
wins support = Yes
valid users = red
admin users = red
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[redtest]
comment = Access redtest
path = /redtest
guest ok = Yes
[root@ibm samba]#

red
__________________
IBM ThinkPad z60m
Reply With Quote
  #3  
Old 28th October 2007, 10:19 PM
ariskk Offline
Registered User
 
Join Date: Sep 2007
Posts: 74
thanks Hermouche. Unfortunatelly, again, samba is not working ! I copied your config, pasted into my smb.conf and restarted samba. I can see the samba server on my workgroup, but can't open it. Also tried opening straight away the shared folder.

only changes I did is:

workgroup = KALYPSO
...
valid users = root,aris,ariskk

aris is my windows user name. ariskk is my linux user name. I've also tried all combinations of these users.

also tried this:
# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /shared
read only = no
public = yes

didn't work either. Dunno what to do. I've tried also varous combinations from the examples.
Reply With Quote
  #4  
Old 28th October 2007, 10:25 PM
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,509
have you added users to samba and set their passwords?

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #5  
Old 28th October 2007, 10:38 PM
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 56
Posts: 12,371
Hello:
Have you run
testparm /etc/samba/smb.conf

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #6  
Old 28th October 2007, 11:26 PM
ariskk Offline
Registered User
 
Join Date: Sep 2007
Posts: 74
Brian1, I want **any** window user to access the shared folders. But I did try setting up user permissions without any luck. I've posted an other thread regarding this: http://forum.fedoraforum.org/showthr...107#post885107 . I was just able to copy files but not read or modify them!!!

Seve, here is the testparm output:

[root@laptop samba]# testparm smb.conf
Load smb config files from smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[shared]"
Processing section "[tmp1]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

I really can't get what's wrong with samba. I tried many sample configs as described in the samba.conf.
Reply With Quote
  #7  
Old 29th October 2007, 06:48 AM
c.teneyck Offline
Registered User
 
Join Date: Dec 2006
Posts: 54
chmod +777 /whatever the directory you have shared
__________________
http://www.ke5btd.com
Reply With Quote
  #8  
Old 29th October 2007, 06:50 AM
c.teneyck Offline
Registered User
 
Join Date: Dec 2006
Posts: 54
also check your firewall settings make sure you have enabled samba in iptables and selinux
__________________
http://www.ke5btd.com
Reply With Quote
  #9  
Old 1st November 2007, 11:47 PM
ariskk Offline
Registered User
 
Join Date: Sep 2007
Posts: 74
hi, tried chmod 777 /shared , did n't work.

I'm sure it's not a firewall problem, since I can copy files to the shared folder but after copying them I can't open those files!
Reply With Quote
  #10  
Old 5th November 2007, 04:12 AM
c.teneyck Offline
Registered User
 
Join Date: Dec 2006
Posts: 54
ok post your smb.conf file so i can take a look see....
__________________
http://www.ke5btd.com
Reply With Quote
  #11  
Old 5th November 2007, 10:14 AM
ariskk Offline
Registered User
 
Join Date: Sep 2007
Posts: 74
Quote:
Originally Posted by c.teneyck
ok post your smb.conf file so i can take a look see....
Hi, you were right, it was selinux! now all work ok!!! Thanks
Reply With Quote
  #12  
Old 6th November 2007, 07:29 AM
c.teneyck Offline
Registered User
 
Join Date: Dec 2006
Posts: 54
No Problem. I don't use selinux and have it disabled. Good job!
__________________
http://www.ke5btd.com
Reply With Quote
Reply

Tags
file, post, smbconf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf ignores hosts file. host.conf is correct mlee07946 Servers & Networking 2 17th September 2013 08:37 PM
FC6 : Any body plz post a working /etc/X11/xorg.conf for CRT monitors susmit EOL (End Of Life) Versions 1 27th October 2006 04:48 PM
file type of /etc/yum.conf and yumex.profiles.conf? Zigzagcom Security and Privacy 2 25th May 2006 05:39 AM
pls post yum.conf for FC4 FedoX Using Fedora 11 27th August 2005 05:29 AM
Please post the origional FC4 yum.conf Dr.Diesel Fedora Core 4 Test 1 23rd March 2005 06:48 PM


Current GMT-time: 18:57 (Thursday, 30-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Montepuez Travel Photos on Instagram - Puerto Santander Photos - Gereshk Instagram Photos