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.
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.
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.
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150
Rep:
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.
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.
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.
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.