LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-05-2005, 11:53 AM   #1
jedimastermopar
Member
 
Registered: Jun 2004
Distribution: fedora core 1 and core 2
Posts: 178

Rep: Reputation: 30
samba problem


using samb version 3.0.10 or something close to that.

Just setting up a simple share for all the users on my box just a test I have severl smb.conf's most have lots of stuff in them but I always get stuck on the same part. when I try and access any share I get a message on the windows box saying

\\servername\homes is not accessible.
The network name cannot be found

here is the most basic stripped down smb.conf I have tried.

[global]
workgroup = workgroup
server string = Samba is fantastic
security = share
encrypt passwords = Yes

[homes]
comment = Home Directories
read only = No
create mask = 0750

Any ideas?
 
Old 05-05-2005, 12:24 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
You have to make the server a WINS server or tell samba where the WINS server is. Also you need to tell it your NETBOIS name.

netbios name = [pc name]
wins support = true
or
wins server = [ip address of WINS server]
 
Old 05-05-2005, 12:45 PM   #3
jedimastermopar
Member
 
Registered: Jun 2004
Distribution: fedora core 1 and core 2
Posts: 178

Original Poster
Rep: Reputation: 30
SElinux is not installed. Using Redhat version 4.0 ES all updates are up to date
[root@eagle samba]# smbd -V
Version 3.0.10-1.4E


Changed to
[global]
workgroup = WORKGROUP
server string = Samba is fantastic
security = share
encrypt passwords = Yes
netbios name = EAGLE
wins support = true

[homes]
comment = Home Directories
read only = No
create mask = 0750


Still getting the exact same thing.
 
Old 05-05-2005, 12:49 PM   #4
jedimastermopar
Member
 
Registered: Jun 2004
Distribution: fedora core 1 and core 2
Posts: 178

Original Poster
Rep: Reputation: 30
Also just to add detail.
When I open My Computer and type in the address \\eagle I get prompted for a password I type in the username and the password and it accepts it and then it show me a list of the shares, then when I click on the share thats when I am getting this message.
 
Old 05-05-2005, 01:01 PM   #5
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Try adding this to [homes]

browsable = no
writeable = yes
 
Old 05-05-2005, 01:03 PM   #6
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
No space after the share when you map...
"\\192.168.1.6\foo" works
"\\192.168.1.6\foo " doesn't

I think you also need a path defined.
path=/home
 
Old 05-05-2005, 03:32 PM   #7
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
To be able to browse to a share like you want your going to have to have browseable=yes
 
Old 05-05-2005, 04:57 PM   #8
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
since youre able to see the share and just dont have access to it, add a Valid Users line

Valid Users = your-username

that should take care of the permission problems
oh yeah, you'll also want to make sure you have a smbpasswd file

cd /etc/samba
touch smbpasswd
smbpasswd -a your-username

restart the samba process and you should be good to go
 
Old 05-05-2005, 06:17 PM   #9
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Here is my smb.conf that I use at home. The home share works and the data share works.

[global]
workgroup = mydomain
server string = myserver
security = user
hosts allow = 192.168.0. 127.
load printers = yes
log file = /var/log/samba.%m
max log size = 10000
socket options = TCP_NODELAY
local master = yes
os level = 65
preferred master = yes
wins support = yes
dns proxy = no

[homes]
comment = Home Directories
browseable = no
writable = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes

[data]
comment = Shared Data
path = /pub/data
valid users = bob tom sam
write list = bob tom
read list = sam
public = no
writable = yes
printable = no
create mask = 0775

It is set to be the master browser and WINS server. It is setup to allow access to 192.168.0.0/255.255.255.0 network only.

Last edited by tangle; 05-05-2005 at 06:20 PM.
 
Old 05-06-2005, 08:38 AM   #10
jedimastermopar
Member
 
Registered: Jun 2004
Distribution: fedora core 1 and core 2
Posts: 178

Original Poster
Rep: Reputation: 30
Not sure what it was, but I wasn't able able to access the home directories. was very odd. but I just made a new directory in the /home and it works just fine. So I think my problem is fixed.

Where is the standard place to store shares? in var or pub? like if I wanted to make a directory called smbshares and then put a bunch f directories below that which are shared?
 
Old 05-06-2005, 09:10 AM   #11
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Quote:
Where is the standard place to store shares? in var or pub? like if I wanted to make a directory called smbshares and then put a bunch f directories below that which are shared?
I think that is a personal prefference thing. I prefer to make a partition and name it /pub. I seen some distros use /usr/share/pub and /var/pub. A common file stystem hierarchy is one of the things that I would like to see all distro adopt. I know some would argue, but it would make it easier on users and programmers.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 04:07 PM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
Samba problem MichaelHall Slackware 0 03-03-2004 02:31 AM
Problem with Samba monowar Linux - Newbie 1 07-05-2002 05:56 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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