Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
05-19-2006, 08:47 AM
#1
Member
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56
Rep:
Samba problem
this is my smb.conf file:
[global]
workgroup = OFFICE1
netbios name = SAMLINUX
server string = Samba Server
interfaces = lo, eth0
bind interfaces only = Yes
hosts equiv = /etc/hosts
smb passwd file = /var/lib/samba/private/smbpasswd
username map = /etc/samba/sambausers
log file = /var/log/samba/%m.log
max log size = 50
smb ports = 139 445
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
hostname lookups = Yes
printcap name = cups
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\\.9xprofile
dns proxy = No
wins support = Yes
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
guest ok = Yes
hosts allow = 192.168.0.0, 192.168.0.1, 192.168.0.2, 192.168.0.5, localhost
hosts deny = none
cups options = raw
[printers]
comment = All Printers
path = /var/spool/samba
hosts allow =
hosts deny =
printable = Yes
browseable = No
[homes]
comment = homes directories
valid users = %S
read only = No
inherit acls = Yes
[profiles]
comment = network profiles service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes
[users]
comment = all users
path = /home/
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares
browseable = No
I can see linux from XP, but when i try to get into it, i get network path not found error. I have static IPs for linux and XP from the router.
05-19-2006, 12:50 PM
#2
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Rep:
Which profile are you using to connect to?
05-19-2006, 01:07 PM
#3
Member
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56
Original Poster
Rep:
trying to connect from the admin XP profile, metalsam
I tried adding it to the samba password thingy:
smbpasswd -a metalsam
but i told me that the samba password file didnt exist :s
05-19-2006, 08:46 PM
#4
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,215
Rep:
Are you using this as a NT style domain controller or just a samba server?
05-19-2006, 09:58 PM
#5
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 655
Rep:
; smb passwd file = /var/lib/samba/private/smbpasswd
; username map = /etc/samba/sambausers
comment that line with ; above is sample and restart samba
let see
Last edited by routers; 05-19-2006 at 10:06 PM .
05-20-2006, 02:44 AM
#6
Member
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56
Original Poster
Rep:
ok,
i deleted the IP of my windows computer (192.168.0.5) from the allowed IP adresses, and know windows can see linux.
I also commented those lines, but it still says,
does not have permission, network path not found
Thanks for the help so far !
05-20-2006, 06:55 AM
#7
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 655
Rep:
can i have ur below output
# testparm
05-20-2006, 07:25 AM
#8
Member
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222
Rep:
Quote:
Originally Posted by metalsam
ok,
i deleted the IP of my windows computer (192.168.0.5) from the allowed IP adresses, and know windows can see linux.
I also commented those lines, but it still says,
does not have permission, network path not found
Thanks for the help so far !
Try configuring your Samba server from Webmin. I configured mine from there and it works fine...
Just I thought, is your Samba server and Windows clients in the same workgroup/domain, maybe Samba has a problem if they are not in the same one.
05-20-2006, 07:46 AM
#9
Member
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56
Original Poster
Rep:
yup, ive set teh workgroup.
what is webmin ?
05-20-2006, 08:27 AM
#10
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 655
Rep:
webmin is gui web system manager but let see # testparm
05-20-2006, 08:52 AM
#11
Member
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56
Original Poster
Rep:
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[profiles]"
Processing section "[users]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = OFFICE1
netbios name = SAMLINUX
server string = Samba Server
interfaces = lo, eth0
bind interfaces only = Yes
hosts equiv = /etc/hosts
log file = /var/log/samba/%m.log
max log size = 50
smb ports = 139 445
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
hostname lookups = Yes
printcap name = cups
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\\.9xprofile
dns proxy = No
wins support = Yes
default service = global
guest ok = Yes
hosts allow = 192.168.0.0, 192.168.0.1, 192.168.0.2, localhost
hosts deny = none
[homes]
comment = homes directories
valid users = %S
read only = No
inherit acls = Yes
[profiles]
comment = network profiles service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes
[users]
comment = all users
path = /home/
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares
browseable = No
05-20-2006, 09:59 AM
#12
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 655
Rep:
ok can u try this way , first backup smb.conf
take this file save as smb.conf and restart samba
Quote:
[global]
workgroup = OFFICE1
netbios name = SAMLINUX
encrypt passwords = yes
smb passwd file = smbpasswd %u
unix password sync = no
null passwords = no
server string = Samba Server
[test-user1]
comment = user1
path = /home/user1
valid users = user1
public = no
writable = yes
printable = no
create mask = 0765
--add user1 to linux system
# adduser user1
passwd user1
--adduser to smb
# smbpasswd -a user1
pass...
# /etc/init.d/smb restart
from xp search computer on network type SAMLINUX
i hope this way right for testing
Last edited by routers; 05-20-2006 at 10:00 AM .
05-20-2006, 12:12 PM
#13
Member
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56
Original Poster
Rep:
I changed the file, but know when i look in my workgroup on XP, I cant see linux
05-20-2006, 07:09 PM
#14
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,215
Rep:
Add to the global settings `security = share`
[global]
workgroup = OFFICE1
netbios name = SAMLINUX
encrypt passwords = yes
smb passwd file = smbpasswd %u
unix password sync = no
null passwords = no
server string = Samba Server
security = share
[test-user1]
comment = user1
path = /home/user1
valid users = user1
public = no
writable = yes
printable = no
create mask = 0765
This should allow XP machines to see the share first before asking for a password if the share requires it. And don't forget to restart samba:
Last edited by fotoguy; 05-20-2006 at 07:12 PM .
05-21-2006, 03:31 AM
#15
Member
Registered: Mar 2006
Location: london
Distribution: fedora core 4
Posts: 56
Original Poster
Rep:
ok, now XP can see linux, but i get:
\\Samlinux is not accessible, you may not have permission to use this network resource.
network path was not found.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 07:58 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News