Fedora Linux Support Community & Resources Center
  #1  
Old 8th August 2011, 04:33 AM
dave4gsi Offline
Registered User
 
Join Date: Aug 2011
Posts: 3
windows_7chrome
you need permission to perform this action

Hi all,

I m able to do the changes in the home directory of the users' but when it comes to the /var/www/html folder, it's not allowing to do any changes/create the files or folders

I m able to view the files and it's contents

please suggest what are the correct steps to make it worked

please have a look at the attachment too

#
#======================= Global Settings =====================================

[global]
log file = /var/log/samba/log.%m
cups options = raw
delete readonly = yes
writeable = yes
server string = Samba Server Version %v
path = /var/www/html
write list = @users
force group = users
username map = /etc/samba/user.map
valid users = @users
security = user
user = @users
max log size = 50
wins support = true
; encrypt passwords = yes
; workgroup = PGSNET
; os level = 20
; load printers = yes
; passdb backend = tdbsam



#============================ Share Definitions ==============================

[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
; guest ok = no
; writable = No
printable = yes






thanks
Dave
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	218
Size:	118.4 KB
ID:	21581  

Last edited by dave4gsi; 8th August 2011 at 04:47 AM.
Reply With Quote
  #2  
Old 8th August 2011, 06:36 AM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,865
linuxfedorafirefox
Re: you need permission to perform this action

Samba doesn't have access to the html directory tree. It is protected by SELinux for the use of apache, not samba.

Doing what you want breaks the security surrounding apache, and could allow unauthorized files (via normal apache operation) to corrupt windows.

If you don't care about the security, then disable SELinux.
Reply With Quote
  #3  
Old 8th August 2011, 07:43 AM
dave4gsi Offline
Registered User
 
Join Date: Aug 2011
Posts: 3
windows_7chrome
Re: you need permission to perform this action

selinux is already disabled

---------- Post added at 06:43 AM ---------- Previous post was at 06:41 AM ----------

yes, we want to allow the html folder to the user (after validating a particular group) so they are able to access their home directories, but no permission for write in html
Reply With Quote
  #4  
Old 8th August 2011, 09:05 AM
AlexDudko Offline
Registered User
 
Join Date: Mar 2007
Location: Ukraine
Posts: 381
linuxsusefirefox
Re: you need permission to perform this action

Have you thought about making an apache DocumentRoot directory in your user's home directory and letting access to it?
Reply With Quote
  #5  
Old 8th August 2011, 09:29 AM
dave4gsi Offline
Registered User
 
Join Date: Aug 2011
Posts: 3
windows_7chrome
Re: you need permission to perform this action

Hi,

this one worked for me

after disabling the selinux
iptables
ip6tables
and firewall


smb.cnf

workgroup = MYWORKGROUP
server string = Samba Server Version %v

netbios name = LINUXIA

; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
interfaces = lo eth0
; hosts allow = 127. 192.168.12. 192.168.13.
hosts allow = 192.168.0.

# --------------------------- Logging Options -----------------------------
#
# Log File let you specify where to put logs and how to split them up.
#
# Max Log Size let you specify the max size log files should reach

# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 50

# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.

security = user
passdb backend = tdbsam:/etc/samba/passdb.tdb



#============================ Share Definitions ==============================

[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S




[shared]
comment = Public Shared Folder
browsable = yes
available = yes
path = /shared
writeable = yes
write list = @users
admin users = @users

[local-sites]
comment = local
browsable = yes
read only = no
available = yes
path = /var/www/html
writeable = yes
write list = @users
admin users = @users
Reply With Quote
Reply

Tags
html, samba, windows 7

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
Can't perform software update. Cyorg Using Fedora 2 30th June 2011 03:27 AM
What would perform better? forkbomb Fedora Focus 4 24th October 2009 09:20 PM
Cannot perform yum update Please Help scorbel Using Fedora 6 18th April 2006 11:22 PM
low perform... elmagozizou Using Fedora 6 12th August 2005 05:54 PM


Current GMT-time: 18:49 (Friday, 24-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
Katiola - Buka Travel Photos on Instagram - Godda