LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   It's the old Samba question again... (https://www.linuxquestions.org/questions/linux-networking-3/its-the-old-samba-question-again-38977/)

rvandam 12-20-2002 12:33 PM

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

DavidPhillips 12-20-2002 12:45 PM

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.

rvandam 12-20-2002 12:59 PM

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

rvandam 12-20-2002 01:39 PM

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

DavidPhillips 12-20-2002 02:17 PM

you must have access to the shared folder

ls -l foldername

figadiablo 12-21-2002 01:00 AM

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

good luck
Figa

figadiablo 12-21-2002 01:41 AM

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

rvandam 12-21-2002 04:26 PM

Guys,

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

Rino

rvandam 12-22-2002 10:16 AM

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

DavidPhillips 12-22-2002 10:28 AM

it will ask for a password


All times are GMT -5. The time now is 09:32 AM.