LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2003, 06:53 AM   #1
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Rep: Reputation: 30
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
 
Old 05-12-2003, 06:59 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
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...
 
Old 05-12-2003, 06:59 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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.
 
Old 05-12-2003, 07:03 AM   #4
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
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

Last edited by bm1; 05-12-2003 at 07:07 AM.
 
Old 05-12-2003, 07:11 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
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...

Last edited by jharris; 05-12-2003 at 07:12 AM.
 
Old 05-12-2003, 07:23 AM   #6
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
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

Last edited by bm1; 05-12-2003 at 07:40 AM.
 
Old 05-12-2003, 10:45 AM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
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...
 
Old 05-12-2003, 02:25 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 05-12-2003, 03:11 PM   #9
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
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.
 
Old 05-13-2003, 01:14 AM   #10
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
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

Last edited by bm1; 05-13-2003 at 01:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 OS X to Linux Samba file share error ttoomey Linux - Software 1 08-16-2005 11:12 AM
samba error props666999 Slackware 16 12-20-2004 09:29 AM
Help me ID this samba error Eradicator Linux - Networking 1 11-05-2003 02:25 PM
samba error tarak4u Linux - Networking 2 05-16-2002 05:14 AM
Samba Error IHawk Linux - Networking 1 02-21-2002 09:52 PM


All times are GMT -5. The time now is 12:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration