<---- template headericclude ----->
you need permission to perform this action
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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 Images Attached Images
    Last edited by dave4gsi; 8th August 2011 at 04:47 AM.

  2. #2
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  3. #3
    Join Date
    Aug 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  4. #4
    Join Date
    Mar 2007
    Location
    Ukraine
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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?

  5. #5
    Join Date
    Aug 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

Similar Threads

  1. Can't perform software update.
    By Cyorg in forum Using Fedora
    Replies: 2
    Last Post: 30th June 2011, 03:27 AM
  2. What would perform better?
    By forkbomb in forum Fedora Focus
    Replies: 4
    Last Post: 24th October 2009, 09:20 PM
  3. Cannot perform yum update Please Help
    By scorbel in forum Using Fedora
    Replies: 6
    Last Post: 18th April 2006, 11:22 PM
  4. low perform...
    By elmagozizou in forum Using Fedora
    Replies: 6
    Last Post: 12th August 2005, 05:54 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]