LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-31-2005, 05:05 AM   #1
masonmop
LQ Newbie
 
Registered: Jun 2005
Location: The 5th dimesion. I'm using Dine (dimsional Wine) to access this site
Distribution: Ubuntu!! Hooray for Canonical!!
Posts: 25

Rep: Reputation: 15
samba not working


I've been having a problem with samba
I need to share, a printer, the home directory, and another folder called windows over my home network. There are 2 other computers on the network running windows XP and they both need access to the printer and the folder called windows. When I go onto the Windows computer and go Start --> Search --> for computer. It will come up with the computer, but when I double click to get in, it says
Code:
\\Ubuntu is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you hav access permissions. 

The network path was not found
here is the smb.conf

Code:
[global]
printcap name = cups
printing = cups
security = share
workgroup = Harris
wins support = no
encrypted passwords = yes
netbios name = Ubuntu


[printing]
browsable = yes
printable = yes
public = yes
create mode = 0700
guest only = yes
use client driver = yes
guest account = smbprint
path = /home/smbprint

[home]
path = /home
available = yes
browseable = yes
public = yes
writable = yes
read only = no

[windows]
path = /media/windows
available = yes
browseable = yes
public = yes
writable = yes
read only = no
If anyone knows what I am doing wrong, please help me. It would be greatly appreciated.

From The Masonmop
 
Old 07-31-2005, 06:44 AM   #2
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Is the windows path you quote correct? It has to look like it does in your file manager.

For example, on my Mandrake system /windows is on mt Windows drive C. This is mounted under /mnt so that the full path is /mnt/Win_C/windows. It appears that you may have left something out in your path spec.

Sorry, can't help with the printer
 
Old 08-01-2005, 03:00 AM   #3
masonmop
LQ Newbie
 
Registered: Jun 2005
Location: The 5th dimesion. I'm using Dine (dimsional Wine) to access this site
Distribution: Ubuntu!! Hooray for Canonical!!
Posts: 25

Original Poster
Rep: Reputation: 15
It can't be a problem with the windows share because the problem existed way before I added that share to smb.conf

but thank you for your ideas
 
Old 08-01-2005, 05:10 AM   #4
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

maybe you should give a try locally... i mean, connect to your Ubuntu machine a try a:
smbclient -L 127.0.0.1 # that should list the available shares on the Ubuntu machine
smbmount //127.0.0.1/windows /mnt -o username="my samba user"

so if smbclient answers nothing, then you've got a problem in smb.conf
if smbmount hangs, either you've got a problem with users (don't forget that you need to create samba users with the smbuseradd command), or the path to the shared directory is not good (it must be the same as appear in smbclient output).

if everything works, then maybe you've got a firewall running, or the networking service in windaube isn't started or smtg esle

good luck
 
Old 08-01-2005, 05:35 AM   #5
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
I think you need to consider the printer and the windows share as separate problems.

Have you run testparm to check the smb.conf file?
 
Old 08-01-2005, 02:24 PM   #6
Ray4389
Member
 
Registered: Jul 2004
Location: Chesapeake, VA
Distribution: Fedora Core 4
Posts: 57

Rep: Reputation: 15
I have the same problem with mine....
I'm running FC4 though. I get the same permission error when I try to access the shared folders from a windows machine to my samba server on my linux box.
I ran testparm and it all checked out ok.
 
Old 08-02-2005, 02:11 AM   #7
masonmop
LQ Newbie
 
Registered: Jun 2005
Location: The 5th dimesion. I'm using Dine (dimsional Wine) to access this site
Distribution: Ubuntu!! Hooray for Canonical!!
Posts: 25

Original Poster
Rep: Reputation: 15
I didn't know I had to create samba users. How do I do that?
 
Old 08-02-2005, 12:42 PM   #8
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
You only have to create users to give them access to restricted directories. If you declare a share as public then you don't need users.

This is my share for Windows drive D:

[drive_d]
comment = Drive D
path = /mnt/win_d
public = yes
writable = yes

It allows anybody on the network to read and write to any directory in this drive.

Read the comments in the /etc/samba/smb.conf file and also run "man smb.conf".

This should give you all the info you need.
 
  


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
Samba... not working at all... worldgnat Linux - Networking 2 05-28-2005 06:11 PM
Samba isn't Working Snump Fedora 18 10-27-2004 07:59 PM
Samba 3 not working (nearly never), but samba 2 works OK vmicho Linux - Networking 0 10-05-2004 01:03 PM
samba not working right derfaust Slackware 12 07-23-2004 05:41 AM
samba working, then installed openSSL and not samba not working hamish Linux - Networking 3 05-17-2004 01:50 PM

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

All times are GMT -5. The time now is 09:14 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