LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   configuring samba server (https://www.linuxquestions.org/questions/linux-server-73/configuring-samba-server-712795/)

amit_kalipur 03-19-2009 07:04 AM

configuring samba server
 
Dear all,
I installed RHEL5 on VMware workstation and configured samba server and also installed guest windows on vmware.when i try to access samba server through guest windows,It displays error "network path was not found"
Here i am attaching the output of smbclient -L localhost -U% and cat /etc/hosts.May u assist me what is the cause and solution.
Regards.

cyprinidae 03-19-2009 08:43 AM

It seems the client doesn't recognize the server by name. What if you try to access it by \\server_ip_address\share from windows client? If it fails again firewal or selinux are probably blocking smb. If you can access share it'll be the matter of setting up host names.

michaelk 03-20-2009 07:01 PM

Moved: This thread is more suitable in Server and has been moved accordingly to help your thread/question get the exposure it deserves.

amit_kalipur 03-21-2009 05:48 AM

Quote:

Originally Posted by cyprinidae (Post 3480710)
It seems the client doesn't recognize the server by name. What if you try to access it by \\server_ip_address\share from windows client? If it fails again firewal or selinux are probably blocking smb. If you can access share it'll be the matter of setting up host names.


Thank you very much for kind help.Now after disabling firewal i am accessing samba through guest windows.But one problem is arising that when i double click on that folder, an error message is displayed "folder was not accessible,You may not have perssion" while I assigned full perssion 777 on that forder.

Thanks and Regars
Amit

cyprinidae 03-22-2009 06:20 PM

Hi Amit,
it must be an issue with username now...
If your windows username is different from your samba username you won't be able to access the share. You'll need to use 'runas' (I think) in windows or map the drive with different username as option.
Your linux user must also be 'samba enabled', so please have a look at smbpasswd command, e.g.
Code:

smbpasswd -a test
adds user test to smbpasswd file.
You can test it with smbclient command
Code:

smbclient -L your_server -U your_username
If you can see the list of shared directiories, it's Ok. If the user is not in smbpasswd you'll receive "session setup failed: NT_STATUS_LOGON_FAILURE"
I hope that helps...


All times are GMT -5. The time now is 05:35 PM.