![]() |
|
#1
|
|||
|
|||
|
Problem accessing samba shares from Windows XP
Hey everyone.....
I have a RedHat 7.3 box that has a directory being shared as well as a printer. My windows machine was able to access them a couple days ago without problems. Today, I reboot and all of a sudden it says I dont have the privelages to access them. I ended up reformatting my windows machine and I still have the problems. Why does Windows networking work only when it feels like it? I can post my smb.conf in a bit
|
|
#2
|
|||
|
|||
|
Do you not see the shares, or not see the Samba server, or do you not have write permission any more? Do you get errors in your samba logs?
|
|
#3
|
|||
|
|||
|
Do you have a password setup on your winXP box? Or no password?
Is your samba share setup as guest? Post your smb.conf
|
|
#4
|
|||
|
|||
|
Have you checked the Red Hat box and make sure that smbd and nmbd are running. I sometimes have to restart the service on my linux machine to get everything working right.
kill -HUP <pid of smbd> and the same for nmbd I'm guessing that isn't the problem but you at least want to check it bofore running through hoops.
|
|
#5
|
|||
|
|||
|
smbd and nmbd are running...
here is my smb.conf http://marcin.fastlanehw.com/smb.conf my windows XP login/password are the same as on the redhat box ![]()
|
|
#6
|
|||
|
|||
|
on first look i see 3 of these
Code:
security=user security=share secutiry=share the samba services need to be restarted after any changes to the conf file are made.
|
|
#7
|
|||
|
|||
|
Quote:
ok, I remove the last 2 "security=share" and it still doesn't work, I restarted smb completely.. (service smb restart)
|
|
#8
|
|||
|
|||
|
some thing to check would be:
Can you ping the redhat box? Does the network name resolve? The windows error is basically saying it can't see this system on your network. if you can ping the server and resolve the network name (try pinging the network name if the ip address is able to be pinged) then you want to check the permissions of the folder/printer you are trying to access...
|
|
#9
|
|||
|
|||
|
I can ping and SSH into it no problems... It's a permissions problem and I don't know what to do about it.
|
|
#10
|
|||
|
|||
|
Change the debug level of the samba service to something a tad higher
Insert this into your global section ex: Code:
[global] debug level = 1 This helped me solve a persistant error with my computers not being able to view the shares. I had an improper setting in place.
|
|
#11
|
|||
|
|||
|
^^ good suggestion.
Yah so you might also want to check the default dirctory for your windows username share, if it is at a lower level directory than the printer you could have problems. e.g the printer is at /dev/print but the user logs into /home/username I think ou could resolve that ^^ by just cding to /dev and chmod g+rw or o+rw
|
|
#12
|
|||
|
|||
|
Quote:
Here's what I get: Code:
root@rhaptiva ~ # tail -f /var/log/samba/stacker.log
[2005/05/22 09:21:47, 0] param/loadparm.c:lp_do_parameter(2687)
Global parameter security found in service section!
[2005/05/22 09:24:21, 0] smbd/server.c:sig_hup(384)
Got SIGHUP
[2005/05/22 09:24:21, 0] param/loadparm.c:lp_do_parameter(2687)
Global parameter security found in service section!
[2005/05/22 13:02:13, 0] smbd/service.c:make_connection(248)
stacker (192.168.1.25) couldn't find service ::{2227a280-3aea-1069-a2de-08002b30309d}
[2005/05/22 13:02:20, 0] smbd/service.c:make_connection(248)
stacker (192.168.1.25) couldn't find service ::{2227a280-3aea-1069-a2de-08002b30309d}
and it won't log anything newer to it.. (I tried both debug levels)Last edited by Stang Man; 05-28-2005 at 02:05 PM..
|
|
#13
|
|||
|
|||
|
I believe the debug level goes all the way up to 10.
Could you perhaps post your smb.conf? Did you change your windows computer name? when you go into the /var/log/samba and do an "ls -lt" command, what's the newest file? Thats the file you should "tail -f" as you try to access it with the debug level of 1 or 2. That will point out any permission errors. Mine looks a little like this for troubleshooting: Code:
[global] log file = /var/log/samba/log.%m debug level = 1 syslog = 0 Last edited by Bullitt; 05-28-2005 at 05:04 PM..
|
|
#14
|
|||
|
|||
|
I deleted my log file for %m.log and now it won't generate a new one or use one I made with touch.
my Windows computer name is exactly the same, and I posted my smb.conf in my first reply (along with the screenshot of the error)
|
|
#15
|
|||
|
|||
|
Have you looked at your permissions/owner on /usr/rhel4/ yet?
|
|
#16
|
|||
|
|||
|
Quote:
Code:
[rhel4] path = /usr/rhel4/ guest ok = yes writeable = yes security = share
|
|
#17
|
|||
|
|||
|
Quote:
I still can't access it ![]()
|
|
#18
|
|||
|
|||
|
in the /var/log/samba dir, are there _any_ log files being created/updated? You had one that was for your PC, but it hasnt updated in a week. Are you out of space on any of your partitions? "df" or out of inodes "df -i"
|
|
#19
|
|||
|
|||
|
Quote:
/dev/hda1 19487 5811 12670 32% /boot /dev/hda6 908760 16620 845976 2% /home none 31052 0 31052 0% /dev/shm /dev/hdc1 8119744 4869536 2837744 64% /usr /dev/hda5 1031800 49500 929888 6% /var I obviously have PLENTY of space.... the only log files being updated are log.nmbd, log.smbd, and smbd.log (WTF?)
|
|
#20
|
|||
|
|||
|
bump
|
![]() |
| Thread Tools | Search this Thread |
|
|