LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 05-04-2005, 08:47 AM   #1
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Rep: Reputation: 15
fedora 3 Samba Setup Tutorial


Just installed fedora 3 for the first time and I'm trying to setup an anonymous samba server so I can access some shared folders via my windows box.

I used that pretty gui tool that comes with fedora 3 called "samba server configuration". So I setup a share, checked writable and visible, then I checked allow access to everyone. I then setup the server settings in the preferences menu, then I restarted the samba server. Now I can access my windows shares from my linux box, but I can't access my linux shares from my windows box. I can see the shared folders by going to \\linuxBoxIP but when I click on a shared folder, I get a permission denied error.

Oh, and I had the authentication mode set to share. When I set it to user, I get a user and password prompt. I've also tried creating a user, then restarting the server but the user and pass aren't accepted.

Last edited by section31; 05-04-2005 at 08:51 AM.
 
Old 05-04-2005, 08:59 AM   #2
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
In my experience samba can be a bit flaky in this respect. I have found that stopping and starting the services (smb & nmb) usually gives it the kick it needs.

as root
#service nmb stop && service smb stop
#service nmb start && service smb start
 
Old 05-04-2005, 09:01 AM   #3
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Original Poster
Rep: Reputation: 15
Trust me, I've restarted samba numerous times. Its something else I'm doing thats causing problems.

Last edited by section31; 05-04-2005 at 09:07 AM.
 
Old 05-04-2005, 09:04 AM   #4
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
ok then, whats in your smb.conf?
 
Old 05-04-2005, 09:07 AM   #5
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Original Poster
Rep: Reputation: 15
Now i'm trying to do it through the console, and I get this error when trying to create a user.


Failed to initialise SAM_ACCOUNT for user dave. Does this user exist in the UNIX password database?
Failed to modify password entry for user dave


Any ideas? I'm using this crappy guide -> http://www.mjmwired.net/resources/mj...c3.shtml#samba
 
Old 05-04-2005, 09:09 AM   #6
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
is there a unix user called dave on your box?
you'll need one.

I find it easier to set samba up through webmin as it gives you a gui. (www.webmin.com)
 
Old 05-04-2005, 09:12 AM   #7
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by skunkburner
is there a unix user called dave on your box?
you'll need one.
Oh, so when I create the user, I should use the same user/pass as my linix box. According to that guide it said to use anything but that, LOL.

Quote:
Originally posted by skunkburner
I find it easier to set samba up through webmin as it gives you a gui. (www.webmin.com)
Cool, I'll take a look at that.

I'm still kind of shocked that there isn't a tutorial on how to get samba setup using the gui. Every single tutorial i've seen, they're using the console.

Last edited by section31; 05-04-2005 at 09:13 AM.
 
Old 05-04-2005, 09:16 AM   #8
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
using a gui is cheating really. you don't actually learn how to configure samba as the gui does all that for you. it just a lot easier : )

you can set up just samba users - I just can't remember how to do that off the top of my head.

Last edited by skunkburner; 05-04-2005 at 09:18 AM.
 
Old 05-04-2005, 09:36 AM   #9
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Original Poster
Rep: Reputation: 15
crap man, I still can't get it to work even with webmin.

To setup a share with no user and no pass, what do you need to have your security setting set to in the windows netorking options on webmin.

Everytime I get the prompt fot the user and pass, it doesn't accept any of the samba users i made on webmin. (

Last edited by section31; 05-04-2005 at 09:39 AM.
 
Old 05-04-2005, 09:44 AM   #10
section31
LQ Newbie
 
Registered: Jul 2003
Location: San Antonio
Posts: 25

Original Poster
Rep: Reputation: 15
oh WTF, I finally got it working. Thanks for all the help man. I guess the reason it wasn't working was because I was connecting using \\linuxIP

Instead, I tried \\sambaServerName and that seemed to have fixed it. phewwwwwwwwwwww. I feel so relieved, i've been working on this issue for over 4 hours.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Tutorial: how to setup a web server with fedora 3 fuelinjection LinuxQuestions.org Member Success Stories 1 07-14-2005 08:55 AM
Samba Tutorial Snipersnest Linux - Newbie 7 02-14-2005 07:19 AM
Samba Tutorial LinuxRam Linux - General 4 08-15-2004 01:36 PM
Samba setup w/ Fedora C1 ogden2k Linux - Networking 3 04-11-2004 01:12 PM
FYI: mysql setup tutorial inl. chrooting markus1982 Linux - Security 0 03-07-2004 10:53 AM


All times are GMT -5. The time now is 02:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration