FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2007
    Age
    50
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation [SOLVED]Access denied with samba share

    Hi
    i configured a new fc 15 and samba.
    I configured a new share in /var/www/site/mail
    [newsletters]
    valid users = newsletters
    path = /var/www/html/site/mail
    writable = yes
    public = no

    but when I go to retrieve the share from windows client \\ipfedora\newsletters
    I am asked username and password, I type but I get access denied

    i also changed the system permission on the folder with group and owner newsletters but don't work

    can you help me please?

    thanks

    Andrea
    Last edited by andreasoc; 17th May 2012 at 01:01 PM.

  2. #2
    Join Date
    May 2011
    Location
    Confoederatio Helvetica (Swissh)
    Age
    46
    Posts
    4,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Access denied with samba share

    Have you provided the username and pw from your windows or linux machine?

    Probably it requires the fedora username and pw, as samba is located on fedora.
    On the other hand, i'm not sure if you may/can create a samba user, which may be required.
    * Shell Wrapper and Runtime Modifier (SWARM): https://github.com/sri-arjuna/SWARM
    * Yet Another Simple Script Installer (YASSI): https://forums.fedoraforum.org/showthread.php?323099
    * EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
    * Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

  3. #3
    Join Date
    Mar 2007
    Age
    50
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Access denied with samba share

    yes.. I enter user and password for samba but don'work

  4. #4
    Join Date
    May 2011
    Location
    Confoederatio Helvetica (Swissh)
    Age
    46
    Posts
    4,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Access denied with samba share

    which user name and pw do you enter?
    * windows ?
    * fedora ?
    * special samba account ?
    * Shell Wrapper and Runtime Modifier (SWARM): https://github.com/sri-arjuna/SWARM
    * Yet Another Simple Script Installer (YASSI): https://forums.fedoraforum.org/showthread.php?323099
    * EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
    * Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

  5. #5
    Join Date
    Mar 2007
    Age
    50
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Access denied with samba share

    samba user newsletters

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

    Re: Access denied with samba share

    Normally, the path /var/www/html/site/mail is owned by apache, and has SELinux labels that would prevent it from being accessed.

    So any user, even with a password, would be denied access.

  7. #7
    Join Date
    May 2011
    Location
    Confoederatio Helvetica (Swissh)
    Age
    46
    Posts
    4,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Access denied with samba share

    Ok.

    Can you access the share from fedora, using any browser with \\ipfedora\newsletters ?

    EDIT:
    Right, did your "setroubleshoot" icon show up in your taskbar?
    It probably provides the solution for your issue, by relabeling (other permissions) the path.
    Last edited by sea; 17th May 2012 at 12:47 PM.
    * Shell Wrapper and Runtime Modifier (SWARM): https://github.com/sri-arjuna/SWARM
    * Yet Another Simple Script Installer (YASSI): https://forums.fedoraforum.org/showthread.php?323099
    * EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
    * Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

  8. #8
    Join Date
    Jun 2007
    Location
    Lake Mary, Florida
    Age
    62
    Posts
    1,088
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Access denied with samba share

    Hello,

    How do you have pasword options setup in smb.conf ?


    Have you ran command " smbpasswd -a newsletters "
    You have "valid users = newsletters" only userid newsletters can sign in

  9. #9
    Join Date
    Mar 2007
    Age
    50
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Access denied with samba share

    Quote Originally Posted by jpollard
    Normally, the path /var/www/html/site/mail is owned by apache, and has SELinux labels that would prevent it from being accessed.

    So any user, even with a password, would be denied access.
    I had forgotten about this particular .. now it works!
    thanks to all!!

Similar Threads

  1. Samba Access Denied from XP
    By anakey93 in forum Servers & Networking
    Replies: 8
    Last Post: 26th December 2011, 06:58 PM
  2. Fedora 13 SAMBA access denied help?
    By tr1pl3x in forum Servers & Networking
    Replies: 2
    Last Post: 17th October 2010, 07:56 AM
  3. Samba - access denied
    By visualocity in forum Servers & Networking
    Replies: 5
    Last Post: 26th August 2009, 03:13 PM
  4. Samba - access denied
    By visualocity in forum Servers & Networking
    Replies: 2
    Last Post: 25th August 2009, 05:03 AM
  5. access denied with samba on FC3
    By d_money in forum Servers & Networking
    Replies: 1
    Last Post: 20th June 2005, 12:25 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
  •