LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-20-2002, 12:33 PM   #1
rvandam
LQ Newbie
 
Registered: Aug 2002
Location: Atlanta, GA
Distribution: RedHat 8.0
Posts: 23

Rep: Reputation: 15
It's the old Samba question again...


OK. I'm fairly new at Linux, although I have set up a few installs over the last six months.

Right now I have a problem with Samba. I can see the shares in Windows, but cannot access them ('..the network name cannot be found...').

I have been reading through the Samba postings on this forum and have been scouring the 'net for answers, but nothing seems to help.

Here's what I've done so far (I am using WebMin to admin Samba BTW):

1. Set up users on Samba with same userid/pw as on windows.
2. Set up a share in Samba with user level permissions
3. Grant access permission to the folder for these users

This produces this smb.conf file (some commented sections deleted):

[global]
log file = /var/log/samba/%m.log
dns proxy = no
smb passwd file = /etc/samba/smbpasswd
netbios name = SambaShare
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
workgroup = PSACORP
encrypt passwords = yes
security = user
passwd program = /usr/bin/passwd
max disk size = 500
pam password change = yes

[Test]
comment = Linux share
writeable = yes
public = yes
path = /home/Rino

I can see 'SambaShare', and can open it. In Sambashare, I can see the printer folder (which I can access without any problem), and also my shared directory ('Test'). When I click 'Test' it displays the messagebox that tells me that the network name cannot be found.

I tried accessing the share using the IP address instead of the name, but that didn't help.

Can someone point me in the direction where I should troubleshoot this problem (global/folder user access permissions, WINS settings, ....)?

Thanks.

Rino
 
Old 12-20-2002, 12:45 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
The capitol "R" in the username has me worried.

I don't think it's a good idea to use upper case
usernames in a unix environment.

Aside from that take a look in the smbpasswd file

Also the [homes] share in samba is far better than
creating a normal share in a users home folder.

Last edited by DavidPhillips; 12-20-2002 at 12:49 PM.
 
Old 12-20-2002, 12:59 PM   #3
rvandam
LQ Newbie
 
Registered: Aug 2002
Location: Atlanta, GA
Distribution: RedHat 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
You may have a point there. I just created a home directories share and it works fine...

I'll go ahead and create another share (lowercase) and see if that works better.

Thanks.

Rino
 
Old 12-20-2002, 01:39 PM   #4
rvandam
LQ Newbie
 
Registered: Aug 2002
Location: Atlanta, GA
Distribution: RedHat 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
Mmm, that didn't quite work:

I created a new directory : /home/backup
Then I shared it through Samba. It shows up as a share, but again is not accessible....

This is starting to drive me nuts!

What permissions (if any) do I need to set on the directory? Right now, I have created a group called ShareUsers, and grant them access to this folder.

To clarify, my new smb.conf file:

log file = /var/log/samba/%m.log
dns proxy = no
smb passwd file = /etc/samba/smbpasswd
netbios name = SambaShare
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
workgroup = PSACORP
encrypt passwords = yes
security = user
passwd program = /usr/bin/passwd
max disk size = 500
pam password change = yes

[rinobp]
path = /home/backup

Thanks for your help.

Rino

Last edited by rvandam; 12-20-2002 at 01:46 PM.
 
Old 12-20-2002, 02:17 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you must have access to the shared folder

ls -l foldername
 
Old 12-21-2002, 01:00 AM   #6
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
just a wild guess, that ussually works for me, try changing the security from user to share.

good luck
Figa
 
Old 12-21-2002, 01:41 AM   #7
figadiablo
Member
 
Registered: Feb 2002
Location: Virginia USA
Distribution: Slackware, CentOS, Fedora
Posts: 342

Rep: Reputation: 30
Here's my smb.conf file. its working for me:
# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2002/12/19 22:29:45

# Global parameters
[global]
netbios name = DA_SERVER
server string = DA_SERVER
security = user
encrypt passwords = Yes
update encrypted = Yes
smb passwd file = /etc/samba/smbpasswd
name resolve order = host bcast
local master = No
lock dir = /tmp/samba
guest account = guest
hosts allow = 192.168.50.

[figa]
comment = figa
path = /home/figa
read only = No
guest ok = Yes



its a pretty basic configuration, but it works. I just finished configuring my samba.

just make sure that you have a local account in Linux for the user trying to access the share. then do a:
smbpasswd - a [username]
and it will promt you for a password for that user. after that when accessing the share, use the same password.



Figa
 
Old 12-21-2002, 04:26 PM   #8
rvandam
LQ Newbie
 
Registered: Aug 2002
Location: Atlanta, GA
Distribution: RedHat 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
Guys,

Thanks for the help. I think I have it working now, although the permissions still seem a little iffy sometimes.

Rino
 
Old 12-22-2002, 10:16 AM   #9
rvandam
LQ Newbie
 
Registered: Aug 2002
Location: Atlanta, GA
Distribution: RedHat 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
permission settings

OK, I have a few question about folder permissions:

Here's what I've done:

I have created a 'ShareUsers' group (on the box that shares folders). The group contains three users. The userID's (and passwords) are identical to the ones I use on the windows machines.

I have shared a few folders, owned by a userID on the Linux box, and giving access to the ShareUsers group. It also had read and execute permissions for the 'others' group.

--

When I access the shares from a windows machine, they show up, and I can access them (after reenterng the userid and password), but the access is granted through the 'others', not through the ShareUsers group. I can tell because I can only read and execute, not write to the share (ShareUsers have read and write permissions).

My question:
When I access the share for the first time (from a windows machine), should it ask me for userid/password, or is it supposed to use my windows logon for that?

Thanks for your help.

Rino
 
Old 12-22-2002, 10:28 AM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it will ask for a password
 
  


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
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba question Ryknow215 Linux - General 3 02-23-2004 06:11 PM
Samba question Marklar Linux - Networking 30 01-02-2004 03:44 PM
A Samba Question? gsmonk Linux - Networking 2 08-20-2003 09:14 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM

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

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