LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   samba error (https://www.linuxquestions.org/questions/linux-software-2/samba-error-59352/)

bm1 05-12-2003 05:53 AM

samba error
 
hi everyone i have been working on this prob for about 2 weeks. and ive made some progress however i have come to another problem. i can now access the samba client but the error is "no service is operating at the destination network end point on the remote system" i started samba by typing ./smb start the daemons smb and nmb start. when you setup your smb.conf do i have to enter a username and password in the passwd file for windows. what im trying to say is does my windows password and logon have to be entered into the passwd file on linux?
thanks

jharris 05-12-2003 05:59 AM

So you are trying to connect to your Samba server from a Windows machine yeah? Or are you trying to use smbclient on your linux box to connect to a Windows share?

cheers

Jamie...

masand 05-12-2003 05:59 AM

try smbclient '\\192.168.0.100\homes' -U masand
the ip adress should be of the destnation and masand is the username which is in the files of the destination machine
homes is the directory on which u want to log onto
also u can try out an gui samba manager from samba.org called "xsmbrowser"
it is quite usefull

also which op. sys. u r accessing from which os.

bm1 05-12-2003 06:03 AM

im using xp and rh8. i want to connect from both.
i can access the samba server from linux by typing smbclient //bmlinux/tmp -U bm
then linux prompts for a password and im in. but i cannont connect to samba from windows or from windows to samba
tmp in my smb.conf file looks like

[tmp]
comment= temporary file
path = /home/bm
read only = no
public = yes

thanks

jharris 05-12-2003 06:11 AM

In which case yes, you need a user with the same username as you using under Windows on the Samba server. You'll need to first create the normal Linux user, then add that user to the Samba password file using the smbpasswd command.

I've also heard about problems with session encryption when you are trying to use XP to talk to your Samba server, but I've not actually tried myself.

HTH

Jamie...

bm1 05-12-2003 06:23 AM

im not sure what a normal linux user is. i already have a user called bm. do i need a default user. and is this default user in the smb.conf file or just add him to the passwd with no password? am i making any sense? this is an error when i try to access windows from linux

[begin]
added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0
session request to 192.168.1.1 failed (Called name not present)
session request to 192 failed (Called name not present)

Domain=[MSHOME] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
E$ Disk Default share
IPC$ IPC Remote IPC
SharedDocs Disk
print$ Disk Printer Drivers
ADMIN$ Disk Remote Admin
C$ Disk Default share
Printer Printer Acrobat Distiller

Server Comment
--------- -------
BMLINUX linux
BMWIN windows

Workgroup Master
--------- -------
MSHOME BMWIN
[end]

any ideas thank s

jharris 05-12-2003 09:45 AM

Quote:

Originally posted by bm1
im not sure what a normal linux user is.
LOL - a normal linux user? I'm not sure any of us are really normal ;) What I meant was a user on the linux box that can actually login to the machine, just a regular user, nothing special.
Quote:

Originally posted by bm1
i already have a user called bm. do i need a default user. and is this default user in the smb.conf file or just add him to the passwd with no password?
Have you added this user to the Samba password file? If not, do that - check out the smbpasswd man page for the exact syntax.
Quote:

Originally posted by bm1
am i making any sense?
I don't think I'm qualified to answer this one ;) I think I get where you're going. The defautlt user in smb.conf should still be your 'nobody' user. The error message you gave
Quote:

Sharename Type Comment
--------- ---- -------
E$ Disk Default share
IPC$ IPC Remote IPC
SharedDocs Disk
print$ Disk Printer Drivers
ADMIN$ Disk Remote Admin
C$ Disk Default share
Printer Printer Acrobat Distiller

Server Comment
--------- -------
BMLINUX linux
BMWIN windows

Workgroup Master
--------- -------
MSHOME BMWIN
What produced those?

cheers

Jamie...

masand 05-12-2003 01:25 PM

perhaps u should try "smbaduser masand:gaurav"
masand - ur username
gaurav- name of group
u shpuld have these peviously in ur linux account
then smbpasswd userbane
will do it

angelrod 05-12-2003 02:11 PM

Re: samba error
 
Quote:

Originally posted by bm1
what im trying to say is does my windows password and logon have to be entered into the passwd file on linux?
thanks

Usually when you try to access from windows to linux, it asks you for both, user and password, so you don´t really need to be the same user at windows and linux.

But if windows only asks for a password then it is assuming that you are connecting with your windows username. In that case, try either adding your xp username in linux or change your xp username to a linux´s user one.

P.D. I´ve not used xp too much but when it asks for just a password I think there´s an option like "connect using a different username" then you can type your linux´s user and pass.

bm1 05-13-2003 12:14 AM

i cant ping the windows hostname from windows if that has anything to do with the prob. i have added my windows username and password to linux using passwd -a my windows user is called root. is that ok? the error message i posted was when i was trying to access windows from linux. heres my smb.conf

[begin]

workgroup = MSHOME

server string = linux

hosts allow = 192.168.1.1. 192.168.1.2. 127.

printcap name = /etc/printcap
load printers = yes

printing = lprng

log file = /var/log/samba/%m.log

max log size = 0

security = user


encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

pam password change = yes

obey pam restrictions = yes

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

dns proxy = no


#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no

guest ok = no
writable = no
printable = yes

[tmp]
comment = temporary file space
path = /home/bm
read only = no
public = yes

[end]


thanks for everyones help this far


All times are GMT -5. The time now is 10:48 PM.