LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-04-2004, 07:23 AM   #1
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Rep: Reputation: 16
Samba log in issues.....


Hello all,

I am having issues login into the samba network with my Windows laptop (XP). I'm probably misunderstanding something. I have samba installed and from what I read in the manual, set up correctly. I am trying to add a user with "smbpasswd -a Username" command but I'm not sure what to add. Do I add the user and password of the user on the XP Laptop? Also, I use webmin to edit the settings of Samba because I find it's the easiest medium and one of the settings in the Authentication window is "User Mapping." I can enter a Linux user and then a Windows user. Not sure what this does but it made me curious.

Thank you for any tips! I can be more specific if anyone requests.
 
Old 09-04-2004, 07:42 AM   #2
PBSchmidt
Member
 
Registered: Aug 2004
Location: Aachen, Germany
Distribution: Debian Sarge
Posts: 129

Rep: Reputation: 15
man smbpasswd

Quote:
When run as normal user it allows the user to change the password used for their SMB sessions on any machines that store SMB passwords
HTH, Peter
 
Old 09-04-2004, 07:42 PM   #3
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
Ok, the user on the XP laptop that I am trying to give access to is the Administrator account. When I try to run smbpasswd for Laptop user Administrator, I get this:

Code:
[root@shane shane]# smbpasswd -a administrator
New SMB password:
Retype new SMB password:
Failed to initialise SAM_ACCOUNT for user administrator.
Failed to mdify password entry for user administrator
Also, the laptop does not even see the samba network! It did at one time but then I changed something but can't remember what it was. Here is my smb.conf file:

Code:
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/09/04 18:21:04

# Global parameters
[global]
	log file = /var/log/samba/log.%m
	ldap ssl = no
	read list = Administrator
	admin users = Administrator
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	printer name = HPOfficeJetG55
	write list = Administrator
	map to guest = Bad User
	encrypt passwords = yes
	user = Administrator
	public = yes
	printer admin = @adm
	wins support = true
	dns proxy = No
	writeable = yes
	printing = cups
	server string = Samba Server %v
	path = /home/shane/
	workgroup = AUDIOMECHANIC
	os level = 20
	comment = Shane's Home
	printcap name = cups
	valid users = Administrator
	max log size = 50

[Shane Home]
	comment = Home Directories
	username = Administrator,adm
	valid users = adm
	read only = No

[printers]
	comment = All Printers
	path = /var/spool/samba
	create mask = 0700
	guest ok = Yes
	printable = Yes
	print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
	browseable = No

[print$]
	path = /var/lib/samba/printers
	write list = @adm, root
	inherit permissions = Yes
	guest ok = Yes

[pdf-generator]
	comment = PDF Generator (only valid users)
	path = /var/tmp
	printable = Yes
	print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J" &
There has to be something wrong either with this file, or with the laptop confguration but I can't figure out what it is. I racking my brain here! I know it's something stupid and simple. It always is with me.

Thanks for the reply, by the way!

-Shane
 
Old 09-04-2004, 08:03 PM   #4
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
To tired now to study this in detail,

but usual samba issues are encrypted/nonencrypted password etc.

If it's that there is a knowledgebase thingy on MS site.

Personally I would try to write Administrator as A dminsitrator and not as a dministrator. Just to be anal from the start. I don't know if that is important, but hey better exclude it from the Start.

But any MS network is a pile of shite IMO. No end of hassle with that pap.

Also Personal Firewall?

Maybe start with a less ambitious conf?

my
 
Old 09-04-2004, 08:43 PM   #5
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
Quote:
Originally posted by DrNeil
[B]To tired now to study this in detail,

but usual samba issues are encrypted/nonencrypted password etc.

If it's that there is a knowledgebase thingy on MS site./b]
I'm getting pretty tired myself. Think I'll go to bed soon but I'm not done internet-vegging.

Samba is set up for encrypted, I believe.

Quote:
Originally posted by DrNeil
Personally I would try to write Administrator as A dminsitrator and not as a dministrator. Just to be anal from the start. I don't know if that is important, but hey better exclude it from the Start.
Yea, tried both.

Quote:
Originally posted by DrNeil
But any MS network is a pile of shite IMO. No end of hassle with that pap.
Agreed.

Quote:
Originally posted by DrNeil
Also Personal Firewall?
Nope.

Quote:
Originally posted by DrNeil
Maybe start with a less ambitious conf?

my
I don't get it. This is the conf file that urpmi gave me when I installed samba.
 
Old 09-06-2004, 07:03 PM   #6
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
Ok, long story short, I now have Fedora instead of Mandrake 10.0. I have configured my network settings exactly the same as they were previously set. The XP laptop will not even see the samba server! It can't even see the share I have set up. Something is wrong because my Fedora box DOES see the XP laptop! I found that out when playing around with the printer utility. It was asking me where the printer was connected and I saw "Network Windows (SMB)" in the list so I got curious and clicked on it and voila! The was the laptop listed there! I'm not sure how else to make my computer see the laptop other than pinging but that really doesn't relate to Samba.

Right now, my primary method for configuring Samba is through Webmin and SWAT. Could a configuration be wrong on the laptop?

I ran testparm on the smb.conf file and this is what I got (smb.conf file also diplayed):

Code:
[shane@shane shane]$ testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[shane]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
        workgroup = AUDIOMECHANIC
        server string = Shane's Computer
        password server = None
        guest account = shane
        username map = /etc/samba/smbusers
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        dns proxy = No
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431
        guest ok = Yes

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

[shane]
        comment = Shane
        path = /home/shane
        read only = No
[shane@shane shane]$
What does the lmhosts file do?

Also, yes I have created users in the smbpasswd file but that shouldn't keep the laptop from SEEING the network, should it?

Last edited by AudioMechanic; 09-06-2004 at 07:21 PM.
 
Old 09-06-2004, 07:34 PM   #7
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
Also, I've done a little reading and have come to a conclusion that it may be my etc/hosts, etc/hosts.deny, and etc/hosts.allow files messing me up. How do I set these up?

I only have one entry in the etc/hosts file and here it is:

Code:
127.0.0.1		shane.shane.com shane localhost.localdomain localhost
The more I read, the more confuser I get!

Note: I can't even spell "confused: right!
 
Old 09-06-2004, 10:02 PM   #8
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
I finally got it! I wrote "ALL : ALL" in my host.deny file and "ALL : 1.1.69.0" in my host.allow file. I was racking my brain wondering why the samba server would not show up in the Network neighborhood window! Then I got an idea that I should have got several hours earlier: do a network search from the windows box for the samba server. I did and VOILA! There it is! For some reason though, I couldn't use the Administrator username to sign in so I used one of the regular one's. I can always change the permissions of it later using webmin.

WAHOO!

Now to get NFS working....
 
  


Reply



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
kppp log on issues CrimsonSparc Linux - Software 2 05-31-2005 11:58 AM
GUI Log in issues. redknight Linux - Software 1 06-22-2004 03:23 PM
Samba Log svsalian Linux - General 1 01-18-2004 02:32 AM
issues w/ my user log in RIgimp75 Mandriva 3 08-24-2003 10:20 PM
Samba log u4113072 Linux - General 0 10-03-2002 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:41 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
Open Source Consulting | Domain Registration