?
Solved

Setting up Samba Share - Fedora 5

Posted on 2006-06-06
16
Medium Priority
?
2,357 Views
Last Modified: 2013-12-06
Hi there,

Just setitng up some Samba shares in Fedora and when I browse to the computer in windows
ie
\\10.0.0.88
I then get prompted for my Samba username and password - which I enter
Then I can see the share points I have access to

But when I goto open any of them I get a
"\\10.0.0.88\FolderName is not accessible. You might not have permission to use this network resource..."

I checked the config file and it seemed ok, and rebooted the machine but still not having any joy.

Suggestions?
0
Comment
Question by:wildzero
16 Comments
 
LVL 10

Author Comment

by:wildzero
ID: 16848996
Herm, I just realised I could access my home directory so

Current setup

/home/nick
/home/simon/winshares/folder1
/home/simon/winshares/folder2

I created a samber user called nick
I setup the share so I could access both folder1 and folder2 however it seems I get unable to locate network path when I try and goto anywhere other then my home directory on my windows box (loggin in with nick)
so it has something to do with the group I presume?
0
 
LVL 10

Author Comment

by:wildzero
ID: 16849032
Sorry

The error I get is

"\\10.0.0.88\folder1is not accessible. You might not have permission to use this network resource...
Unable to locate network resource (? or path ?) "

nick is added to the user list for both shares
0
 
LVL 20

Accepted Solution

by:
nedvis earned 750 total points
ID: 16849700
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 10

Author Comment

by:wildzero
ID: 16849717
Yea I did that and added users
So.....
When I add users using that 'Add users and groups' should I put them all into the same privilage group?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 16849753
please post the result of
  ls -ld /path/to/folder1
(where this is the physical path to folder1 as you have configured in smb.conf)

Also post the complete entry for
  [folder1]
from your smb.conf
0
 
LVL 10

Author Comment

by:wildzero
ID: 16850214
kk will do
not at that location so will post it when I get in

=)
0
 
LVL 1

Expert Comment

by:aravinthrk
ID: 16850454
Hi,

Refer to this thread and look for my suggestion under the name "aravinthrk"

http://www.experts-exchange.com/Networking/Linux_Networking/Q_21868798.html

Good Luck,
Aravinth.
0
 
LVL 10

Author Comment

by:wildzero
ID: 16856683
ok in my samba.conf filel I have this

[Folder1]
path = /home/fileshares/shares/folder1
writeable = yes
browseable = yes
valid users = nick,simon

[Folder2]
path = /home/fileshares/shares/folder2
writeable = yes
browseable = yes
valid users = nick,simon,bob


When I do
ls -ld /home/fileshares/shares/folder1

I get
drwxrwxr-x 2 fileshares fileshares 4096 Jun 08:55 folder1

so
I made the folders with the user fileshares
I have added nick, simon and bob to the group fileshares
nick, simon, bob and fileshares are all samber users

When I borwse to \\10.0.0.88 with nick, simon and bob I can see the folders (bob can't see folder1) but when they try and enter any folder other then there home directory, they get an error. When I borwse to \\10.0.0.88 with fileshares I can see all the folders and I can open those files etc.

So *throws hands up in air* dunno.....

0
 
LVL 10

Author Comment

by:wildzero
ID: 16856748
Futher more...
login via ssh for nick and do id
uid=500(nick) gid=500(nick) groups=(500), 501(fileshares)

do the same for fileshares user and get
uid=501(fileshares) gid=501(fileshares) groups=501(fileshares)

Herm
0
 
LVL 10

Author Comment

by:wildzero
ID: 16857439
Ok so I moved folder1 and folder2 out of the home directory
and now all is well :D

except
bob can see both folder1 and folder2, even though he is only ment to see folder2
he can't access folder1 but it still shows up...

:/
0
 
LVL 10

Author Comment

by:wildzero
ID: 16858005
Ok something else just weird.

when I made bob I set it so he didn't have a home directory.
when I re-create him with a home directory then he does only have access to folder2 but the downside is he gets access to his home directory....

grr ;(
0
 
LVL 10

Author Comment

by:wildzero
ID: 16858014
sorry... ignore that last post - I was wrong
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 16858882
> he can't access folder1 but it still shows up...
use in smb.conf:
browseable = no
0
 
LVL 10

Author Comment

by:wildzero
ID: 16859531
but then neither user can see it it seems..
thats what happened in my testing cos thats what I thought it was

the users that were on the valid user list coun't see it either (but could access it if I typed in the address)

hmm
0
 
LVL 1

Expert Comment

by:pc_suresh
ID: 16918714
please try by disabling SELinux in Fedora Core, You can disable it from the firewall/security option

Suresh
0
 
LVL 10

Author Comment

by:wildzero
ID: 17033805
Thanks, after digging around that site I found the answer :D

Cheers!
0

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month14 days, 7 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question