Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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, ....)?
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.