LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-15-2008, 02:29 PM   #1
jenny
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Rep: Reputation: 0
Smile Samba with Fedora Core


Objective: To share a folder on Linux computer so WinXP computers can access it.
Problem: I can see the folder, but can't access it. "Not accessible".

I am running Gnome on Fedora Core 7 (default install) and attempting to get Samba to work.

Logged in as root, I create a share- "/var/www/shared"
I made it "Writable" and "Visible".
I "Allow access to everyone" just to test it.
Workgroup name FC
Authentication is User
I added a user, password and windows user

Restarted to make sure everything took affect, but no access to folder.

Any suggestions?
Jenny
 
Old 01-15-2008, 02:37 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Look in the logs in /var/log/smbd or /var/log/samba. See if any errors are given there.
 
Old 01-15-2008, 02:48 PM   #3
jenny
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
"Permission Denied" is all the log says.

...I also tried completely disabling the firewall.

Last edited by jenny; 01-15-2008 at 02:53 PM.
 
Old 01-15-2008, 02:59 PM   #4
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello jenny

There is one thing that catches a lot of people out with samba and that is the question of users. It may be your problem.

If you have a user on Windows then that same user must exist on your Linux machine as a regular Linux user and must have access to the directory you are trying to share.

That same user must also be a user created specifically in Samba and have the same username and password for it to all operate seamlessly.

So to put it simply, you would have a user jenny on your windows machine with the password 1234.

You would create a regular Linux user jenny with password 1234

And then a samba user jenny with password 1234

If you haven't come across it, the samba user can be created two ways in Fedora.

system-config-samba

from a root command line will give you the samba configuration utility. But you can also do it with:

smbpasswd -a jenny
jenny
and be prompted for the password.

The Linux user jenny must have access to the shared folder. It is possible to restrict access to the folder through samba as well and in the samba configuration gui above you can restrict access to shares to individual users or leave it open to all.
 
Old 01-15-2008, 03:24 PM   #5
jenny
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, I tried the exact same username and password for Linux user, WinXP user and Samba user... still no access. I get the error:
"Share is not accessible. You may not have permission".

I tried changing the Linux and Samba usernames from the WinXP username and I could access my home folder, but not the shared folder. I received a different error:
"Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed."
 
Old 01-15-2008, 04:13 PM   #6
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello Jenny

When I make a folder shared off /var/www it is owned by root and is useable only by root and presumably anyone who is a member of the root group.

As normal users are not created with any of roots privileges I won't be able to access that share as a normal user unless I change ownership of the folder.

Have you tried that?

One thing that you might try as well is to create a forder directly off / and change its ownership to your usual user and see if you can share that. I certainly have no trouble there and we could certainly compare configurations.

There is a useful diagnostic to see just what you are sharing from a Linux box.

On that machine open a terminal window in the name of one of your users and issue the command:

Code:
smbclient -L atx17
That's the name of the machine I'm sitting at now and the output of the command is:

Quote:
[bbfuller@atx17 ~]$ smbclient -L atx17
Password:
Domain=[ATX17] OS=[Unix] Server=[Samba 3.0.28-0.fc8]

Sharename Type Comment
--------- ---- -------
Old_Calendar Disk on atx17
testsamba Disk on atx17
boxroom Disk on atx17
IPC$ IPC IPC Service (Samba Server Version 3.0.28-0.fc8)
dj5550 Printer DeskJet 5550
lasjet1300 Printer LaserJet 1300
bbfuller Disk Home Directories
Domain=[ATX17] OS=[Unix] Server=[Samba 3.0.28-0.fc8]

Server Comment
--------- -------

Workgroup Master
--------- -------
LOCAL ATX17
[bbfuller@atx17 ~]$
Which tells me just what things samba is sharing for that user on this machine.

Edit: It's all got a bit compressed horizontally in the copy and paste I'm afraid but it'll do to compare.

Last edited by bbfuller; 01-15-2008 at 04:15 PM.
 
Old 01-16-2008, 08:17 AM   #7
jenny
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, I tried giving ownership of the shared folder to my Samba user and still no access... although I can access my home directory and create/delete files.

Still sounds like a permission thing? ... since I can access my home folder.

*************edit!
Ahhh.... SUCCESS! I logged in as the Samba user and created a folder, then logged in as root and shared that folder and it worked! I think the problem was that my user had no permissions on the /var folder and everything under it.

Jenny

Last edited by jenny; 01-16-2008 at 08:25 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 6 and samba fdahl_009 Fedora 8 01-26-2007 12:09 PM
Samba in Fedora Core 4 arew264 Linux - Networking 5 10-27-2005 03:28 PM
samba and fedora core 2 l32 Linux - Networking 5 08-28-2004 10:17 AM
samba and fedora core icone Linux - Networking 3 06-15-2004 12:39 PM
Samba And Fedora Core 2 ikenbonnie Linux - Newbie 5 06-05-2004 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration