Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SMB and Windows network problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
roguish
n00b
n00b


Joined: 17 May 2005
Posts: 6
Location: SF East Bay

PostPosted: Fri May 27, 2005 3:54 pm    Post subject: SMB and Windows network problems Reply with quote

Another new adventure in computers. I have just gotten my first Gentoo install up and working pretty good. One nagging problem though. Using smb i can browse out to my windows net, but form the windows machines i can not look in. i get the cute little Login dialog with guest as the user. the user is unchangable. no password seems to work. yes, i'v check user id and passwords in gentoo, smb and windows. even making all of them match does not work. i have read the forums and the smb docs for days now. what's up? i'm fairliy certain it's an smb configuration issue, but i don't really know. i'm beginning to feel pretty stupid, once again.....
What do i need to check? what info can i post to help diagnose the problem? any and all assistance will be sincerely appreciated.:!:
Back to top
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Fri May 27, 2005 4:21 pm    Post subject: Reply with quote

Show us your /etc/samba/smb.conf.
Back to top
View user's profile Send private message
roguish
n00b
n00b


Joined: 17 May 2005
Posts: 6
Location: SF East Bay

PostPosted: Fri May 27, 2005 4:32 pm    Post subject: Reply with quote

thanks for the reply. new to 'posting' so please bear with....here is my /etc/samba/smb.conf file:
(i was also trying to install clam printing, but that can be done later.)

#
# Global parameters
#
[global]
log file = /var/log/samba/log.%m
load printers = yes
guest account = guest
restrict anonymous = 2
# username map = /etc/samba/user.map
interfaces = lo eth0
# winbind trusted domains only = yes
show add printer wizard = yes
public = yes
# passdb backend = root
allow hosts = 127.0.0.1 192.168.10.
# hosts deny = 0.0.0.0
wins support = true
netbios name = P450
printing = cups
server string = p450 Gentoo
path = /home
workgroup = homenet
os level = 20
comment = Gentoo Home
valid users = guest,cat,root,@adm,@users
printcap name = cups
security = share
max log size = 50
printer admin = @ntadmin, root


[public]
comment = shared
path = /mnt/public
guest ok = yes
browseable = yes

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
admin users = root
guest ok = yes
browseable = yes

[home]
case sensitive = no
browseable = yes
create mode = 7777
writeable = yes
path = /home

[guest]
case sensitive = no
browseable = yes
create mode = 7777
writeable = yes
path = /home/guest

[print$]
comment = Printer Drivers
# this path holds the driver structure
path = /etc/samba/printer
browseable = yes
guest ok = yes
read only = yes
write list = @ntadmin, root

[HP4mv]
comment = HP4mv Network Printer
path = /var/spool/samba
printable = Yes
browseable = yes
writeable = no

[printers]
comment = All printers
printable = yes
path = /var/spool/samba
browseable = yes
guest ok = yes
printer admin = root
writable = yes

[public]
comment = Public Files
path = /var/spool/samba
create mask = 0766
Back to top
View user's profile Send private message
maxima
Apprentice
Apprentice


Joined: 01 Oct 2004
Posts: 150

PostPosted: Fri May 27, 2005 4:39 pm    Post subject: Reply with quote

have you created samba password ?
using smbpasswd ?
Back to top
View user's profile Send private message
roguish
n00b
n00b


Joined: 17 May 2005
Posts: 6
Location: SF East Bay

PostPosted: Fri May 27, 2005 4:50 pm    Post subject: Reply with quote

maxima, yes, created smbpassords, serveral times. as i indicated earlier, i have been very careful with all the user ids and passwords as i've read the forums till i was crosseyed. thanks. anything else?
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Fri May 27, 2005 5:36 pm    Post subject: Reply with quote

try:
add this
Code:
  map to guest = bad user

comment out this
Code:
  guest account = guest
to
Code:
  #guest account = guest

_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
roguish
n00b
n00b


Joined: 17 May 2005
Posts: 6
Location: SF East Bay

PostPosted: Fri May 27, 2005 6:08 pm    Post subject: Reply with quote

Thanks, darkphader. i'll try it.
what does it do?
and what, if anything, do i need to restart for the change to take effect?
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Fri May 27, 2005 6:46 pm    Post subject: Reply with quote

I think "map to guest" is needed for guest use. And "guest account" only useful if you want to map a guest user to a specific account and require a password - not usually the desired outcome.
You can restart samba, although it will eventually pickup the smb.conf changes. Also, always run testparm after changing smb.conf to make sure you don't get any errors.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
roguish
n00b
n00b


Joined: 17 May 2005
Posts: 6
Location: SF East Bay

PostPosted: Fri May 27, 2005 7:10 pm    Post subject: Reply with quote

darkphder........no luck. in fact now i don't even get the login dialog. just an immediate error "\\p450 is not accessable. you might not have permission to use this network resource............' also, no errors with testparm.
any other thoughts? strip samba and begin again?
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Fri May 27, 2005 7:34 pm    Post subject: Reply with quote

delete the samba user named "guest"
use smb.conf.example as a template, modifying it to your needs

don't forget the wonderful docs:
http://us2.samba.org/samba/docs/man/Samba-HOWTO-Collection/
http://us2.samba.org/samba/docs/man/Samba-Guide/
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum