Fedora Linux Support Community & Resources Center
  #1  
Old 2nd October 2008, 04:58 PM
andreasoc Offline
Registered User
 
Join Date: Mar 2007
Age: 36
Posts: 25
Samba Share of web folder ..

hi
i have fc9 and i setup an folder in /var/www/html/folder the share with samba with a valid users but don't access trhought a windows client ..
Reply With Quote
  #2  
Old 3rd October 2008, 07:36 AM
gibz85's Avatar
gibz85 Offline
Registered User
 
Join Date: Jul 2008
Location: echo "doublebounce" >> /india/kochin
Age: 27
Posts: 97
Give little more info...

You dont want windows client to access the share?????????
__________________
:eek: From the gods own country :)

:) Be Free Be Linux :)
Make A Difference
Reply With Quote
  #3  
Old 3rd October 2008, 07:55 AM
andreasoc Offline
Registered User
 
Join Date: Mar 2007
Age: 36
Posts: 25
yes from windows go to \\ipserverfedora\share and when digit user and psw don't enter ..
Reply With Quote
  #4  
Old 3rd October 2008, 08:10 AM
gibz85's Avatar
gibz85 Offline
Registered User
 
Join Date: Jul 2008
Location: echo "doublebounce" >> /india/kochin
Age: 27
Posts: 97
is your windows machine in another network that of linux...

if not

How many windows machine you need to block is it huge in size...

Or

You want to block all the windows machine ... No matter where is it ...(Not sure if this can be done)
__________________
:eek: From the gods own country :)

:) Be Free Be Linux :)
Make A Difference
Reply With Quote
  #5  
Old 3rd October 2008, 08:13 AM
gibz85's Avatar
gibz85 Offline
Registered User
 
Join Date: Jul 2008
Location: echo "doublebounce" >> /india/kochin
Age: 27
Posts: 97
If you dont want Windows to access samba share you could use NFS....
__________________
:eek: From the gods own country :)

:) Be Free Be Linux :)
Make A Difference
Reply With Quote
  #6  
Old 3rd October 2008, 08:13 AM
andreasoc Offline
Registered User
 
Join Date: Mar 2007
Age: 36
Posts: 25
[mail]
comment = Mail
writeable = yes
valid users = utente
path = /var/www/html/newsletters/mail/

this is the share in samba
Reply With Quote
  #7  
Old 3rd October 2008, 08:14 AM
andreasoc Offline
Registered User
 
Join Date: Mar 2007
Age: 36
Posts: 25
i want to access for client windows to samba share !
Reply With Quote
  #8  
Old 3rd October 2008, 08:16 AM
gibz85's Avatar
gibz85 Offline
Registered User
 
Join Date: Jul 2008
Location: echo "doublebounce" >> /india/kochin
Age: 27
Posts: 97
With samba you could block a network from accessing your share and you can also block particular ip from accessing the share... I Don thing you can block computer according to there operating system
__________________
:eek: From the gods own country :)

:) Be Free Be Linux :)
Make A Difference
Reply With Quote
  #9  
Old 3rd October 2008, 08:28 AM
andreasoc Offline
Registered User
 
Join Date: Mar 2007
Age: 36
Posts: 25
Quote:
Originally Posted by gibz85 View Post
with samba you could block a network from accessing your share and you can also block particular ip from accessing the share... I don thing you can block computer according to there operating system
i wan't block any access..
Reply With Quote
  #10  
Old 3rd October 2008, 08:45 AM
gibz85's Avatar
gibz85 Offline
Registered User
 
Join Date: Jul 2008
Location: echo "doublebounce" >> /india/kochin
Age: 27
Posts: 97
Quote:
Originally Posted by andreasoc View Post
i wan't block any access..
I Didn't get you.... Please give a detail info about ya setup and also what exactly is the purpose of blocking....
__________________
:eek: From the gods own country :)

:) Be Free Be Linux :)
Make A Difference
Reply With Quote
  #11  
Old 3rd October 2008, 01:49 PM
briantan Offline
Registered User
 
Join Date: Jun 2008
Posts: 715
Edit /etc/samba/smb.conf, set up "security=user" and "passdb backend = tdbsam" (both default), and add a [html] section as shown below.
Code:
[global]
        workgroup = MSHOME
        server string = Samba Server Version %v
        log file = /var/log/samba/log.%m
        max log size = 50
        security = user
        passdb backend = tdbsam
        load printers = yes
        cups options = raw
        mangled names = no
[homes]
        comment = Home Directories
        browseable = no
        writable = yes
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes
[html]
   comment = HTML
   path = /var/www/html
   public = yes
   writable = yes
   printable = no
   create mask = 0775 
   read only = no
Add user/password via "smbpasswd"
Code:
# smbpasswd -a andreasoc  <=== andreasoc must be a Linux userid
New SMB password: xxxxxx <=== may be different from Linux password
Retype new SMB password: xxxxxx
Added user andreasoc.
If samba client to be able to update, setup permission for /var/www/html
Code:
# chown -R andreasoc /var/www/html
or
# chmod -R 777 /var/www/html
Edit /etc/sysconfig/network to define hostname (eg soc used below) or via "# system-config-network"
Code:
HOSTNAME=soc.domain.com
Restart network if using network service (NetworkManager should pickup change automatically.)

Enable smb and nmb service
Code:
# /sbin/chkconfig smb on
# /sbin/chkconfig nmb on
Start smb and nmb service
Code:
# /sbin/service smb start
# /sbin/service nmb start
Accept samba ports in firewall.
Code:
# system-config-firewall
Click "Trusted Services" and "check" Samba 137/udp, 138/udp, 139/tcp, 445/tcp
Apply and Reload
Check that firewall is opened.
Code:
# nmap -p 445 localhost
To access share from Windows, type "\\soc\html" in windows file explorer, and enter userid/passwd setup via smbpasswd. To mount share, use "Tools->Map Network Drive..." select "H" for drive and enter "\\soc\html" in "Folder".

Last edited by briantan; 3rd October 2008 at 01:52 PM. Reason: change // to \\
Reply With Quote
Reply

Tags
folder, samba, share, web

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
/usr/share folder gone Falconus Using Fedora 4 17th September 2009 10:09 PM
Apache web directory in user's folder share with Samba ramirez.alex Installation and Live Media 1 15th March 2007 04:12 PM
Share folder mac an ms ardainbox Using Fedora 0 1st March 2007 10:11 AM
Fedora 5 share folder neptune Servers & Networking 1 26th September 2006 01:47 AM
Share folder for all users? gnomicGhost Using Fedora 3 19th April 2006 08:35 PM


Current GMT-time: 10:59 (Thursday, 23-05-2013)

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