Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th July 2011, 01:54 PM
Kamil_ Offline
Registered User
 
Join Date: Sep 2009
Location: Poland
Posts: 8
linuxfirefox
Permisions to samba share in home directory

Hi there!
I have got few samba shares. All of them are on location either /media/disk/.. or /home/kamil/... I can't access these in home directory, there is alert "Failed to mount windows share". So my question is, what system permissions should I set to shares on home directory?

Here are my settings for two shares, 2nd share one is working well and 1st doesn't:
Code:
[root@galadriel kamil]# ls -la /home/kamil/ | grep Desktop
drwxr-xr-x.   2 kamil kamil      4096 Jul 14 12:15 Desktop
[root@galadriel kamil]# ls -la /media/disk/ | grep Obraz
drwxrwxrwx 1 root root   8192 Jul 22 14:25 Obraz


---------- Post added at 02:54 PM ---------- Previous post was at 01:41 PM ----------

after setting least restrictive permission 777 to /home/kamil/Desktop share and after chown'ing ang chgrp'ing to root I still can't access share in my home directory. Some ideas?
Reply With Quote
  #2  
Old 27th July 2011, 01:58 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,107
linuxfedorafirefox
Re: Permisions to samba share in home directory

/media will not export via samba.

/home will not export via samba unless you set the SELinux security controls.
Reply With Quote
  #3  
Old 27th July 2011, 02:05 PM
Kamil_ Offline
Registered User
 
Join Date: Sep 2009
Location: Poland
Posts: 8
linuxfirefox
Re: Permisions to samba share in home directory

Quote:
Originally Posted by jpollard View Post
/media will not export via samba.
So why it's working now. I can access shares on my /media/...

Quote:
Originally Posted by jpollard View Post
/home will not export via samba unless you set the SELinux security controls.
Code:
[root@galadriel kamil]# sestatus 
SELinux status:                 disabled
Reply With Quote
  #4  
Old 27th July 2011, 02:08 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: Permisions to samba share in home directory

Hello,

I would try just /home/USER_ID , changing to 777 is a high security risk
Reply With Quote
  #5  
Old 27th July 2011, 02:25 PM
Kamil_ Offline
Registered User
 
Join Date: Sep 2009
Location: Poland
Posts: 8
linuxfirefox
Re: Permisions to samba share in home directory

I've done chmod 777 only for examine reason, and it turned out that it's not permission problem.
But the problem is I don't want to share whole /home/kamil directory, but only particular subdirectories of /home/kamil.
Reply With Quote
  #6  
Old 27th July 2011, 02:32 PM
beaker_'s Avatar
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,050
linuxredhatfirefox
Re: Permisions to samba share in home directory

Quote:
I've done chmod 777 only for examine reason, and it turned out that it's not permission problem.
But the problem is I don't want to share whole /home/kamil directory, but only particular subdirectories of /home/kamil.
Ok so what's so hard about that? path = /home/kamil/WhereEverItIs.
Reply With Quote
  #7  
Old 27th July 2011, 02:40 PM
Kamil_ Offline
Registered User
 
Join Date: Sep 2009
Location: Poland
Posts: 8
linuxfirefox
Re: Permisions to samba share in home directory

As I said before, I can't access on second fedora computer any share that is inside of home directory.

Code:
[logi]
        path = /home/kamil/logi
;       read only = yes
;       browseable = yes
        guest ok = yes

[Boot]
        path = /media/winxp/Boot
;       read only = yes
;       browseable = yes
        guest ok = yes
second is accessible, first not.
Reply With Quote
  #8  
Old 27th July 2011, 02:50 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,107
linuxfedorafirefox
Re: Permisions to samba share in home directory

basically, it appears that you are turning off all security controls.

As far as winxp/Boot - what filesystem is it? NTFS maybe? If so, then NTFS has no security controls itself.
Reply With Quote
  #9  
Old 27th July 2011, 02:55 PM
Kamil_ Offline
Registered User
 
Join Date: Sep 2009
Location: Poland
Posts: 8
linuxfirefox
Re: Permisions to samba share in home directory

Solved
Don't know why, but this works well
Code:
[root@galadriel kamil]# chmod +x /home/kamil
Now I've access to all my shares. Thanks for your wasted time. :-)
Reply With Quote
Reply

Tags
home, samba

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
Encrypting home directory shared over samba. jjcf89 Servers & Networking 1 6th May 2009 01:17 AM
Samba Share Not Displaying All Files In Directory Paul Goncalves Using Fedora 0 18th October 2007 01:18 PM
Apache web directory in user's folder share with Samba ramirez.alex Installation and Live Media 1 15th March 2007 04:12 PM
samba only mounts users home directory Kingtu Servers & Networking 1 18th October 2006 01:21 AM


Current GMT-time: 21:47 (Friday, 24-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