[H]ard|Forum

Go Back   [H]ard|Forum > Bits & Bytes > Operating Systems

Reply
 
Thread Tools Search this Thread
  #1  
Old 05-27-2005, 02:53 AM
Stang Man 2[H]4U, 7.8 Years
 
Stang Man is offline
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  
Old 05-27-2005, 09:36 AM
Fint Gawd, 5.5 Years
 
Fint is offline
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  
Old 05-27-2005, 10:41 AM
scotty do Limp Gawd, 5.4 Years
 
scotty do is offline
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  
Old 05-27-2005, 03:31 PM
sandmanx [H]ardForum Junkie, 8.7 Years
 
sandmanx is offline
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.
__________________
2000 F150 5.4L V8 | 1969 Dodge Dart GT 273ci V8
reading, not just for smart people. - Initial Reactor
you can't walk through the door without blatant stupidity slamming you like a brick wall - BillLeeLee on Best Buy
/kick Archer lol miata
Team FUG-AW: tsuehpsyde | sandmanx | bbq | Penguincomp
  #5  
Old 05-27-2005, 04:37 PM
Stang Man 2[H]4U, 7.8 Years
 
Stang Man is offline
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  
Old 05-27-2005, 05:26 PM
saterth n00bie, 7.2 Years
 
saterth is offline
on first look i see 3 of these

Code:
security=user
security=share
secutiry=share
i think you should only set this once at the begining of the conf file. The extra 2 near the middle and end may cause some problems. Remove the extra's and set the first one and should be working again.

the samba services need to be restarted after any changes to the conf file are made.
  #7  
Old 05-27-2005, 05:55 PM
Stang Man 2[H]4U, 7.8 Years
 
Stang Man is offline
Quote:
Originally Posted by saterth
on first look i see 3 of these

Code:
security=user
security=share
secutiry=share
i think you should only set this once at the begining of the conf file. The extra 2 near the middle and end may cause some problems. Remove the extra's and set the first one and should be working again.

the samba services need to be restarted after any changes to the conf file are made.

ok, I remove the last 2 "security=share" and it still doesn't work, I restarted smb completely.. (service smb restart)
  #8  
Old 05-27-2005, 06:36 PM
Some Llama Limp Gawd, 8.3 Years
 
Some Llama is offline
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  
Old 05-27-2005, 11:06 PM
Stang Man 2[H]4U, 7.8 Years
 
Stang Man is offline
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  
Old 05-28-2005, 01:00 PM
Bullitt 2[H]4U, 5.2 Years
 
Bullitt is offline
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
Then "tail -f /var/log/samba/log.yourwindowscomputernamehere" file and then try to access your shares with windows while keeping an eye on the output from the logs. If you dont see anything, change the debug level to 2, restart the samba service, access share, view log, rinse repeat until you see some error (or success) messages.

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  
Old 05-28-2005, 01:07 PM
Some Llama Limp Gawd, 8.3 Years
 
Some Llama is offline
^^ 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  
Old 05-28-2005, 01:57 PM
Stang Man 2[H]4U, 7.8 Years
 
Stang Man is offline
Quote:
Originally Posted by Bullitt
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
Then "tail -f /var/log/samba/log.yourwindowscomputernamehere" file and then try to access your shares with windows while keeping an eye on the output from the logs. If you dont see anything, change the debug level to 2, restart the samba service, access share, view log, rinse repeat until you see some error (or success) messages.

This helped me solve a persistant error with my computers not being able to view the shares. I had an improper setting in place.

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}
but there's a problem... Back then it worked, today is 5/28 and it's not working 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  
Old 05-28-2005, 04:51 PM
Bullitt 2[H]4U, 5.2 Years
 
Bullitt is offline
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
I'd suggest you have those lines in your global stanza to troubleshoot. All is not lost if you have syslog = 1 do a "tail -f /var/syslog" (as root, probably) and then investigate your shares.

Last edited by Bullitt; 05-28-2005 at 05:04 PM..
  #14  
Old 05-29-2005, 01:55 PM
Stang Man 2[H]4U, 7.8 Years
 
Stang Man is offline
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  
Old 05-30-2005, 11:16 AM
saterth n00bie, 7.2 Years
 
saterth is offline
Have you looked at your permissions/owner on /usr/rhel4/ yet?
  #16  
Old 05-30-2005, 09:06 PM
Bullitt 2[H]4U, 5.2 Years
 
Bullitt is offline
Quote:
Originally Posted by saterth
Have you looked at your permissions/owner on /usr/rhel4/ yet?

Code:
[rhel4]
   path = /usr/rhel4/
   guest ok = yes
   writeable = yes
   security = share
I'd agree. Permissions on that directory (/usr/rhel4) should be world executable (samba has to descend into the dir) and world readable (samba has to read the directory). So a chmod 755 or something like that (ending in 5) should be appropriate to grant read-only privs to that directory.
  #17  
Old 05-30-2005, 11:34 PM
Stang Man 2[H]4U, 7.8 Years
 
Stang Man is offline
Quote:
Originally Posted by Bullitt
Quote:
Originally Posted by saterth
Have you looked at your permissions/owner on /usr/rhel4/ yet?
Code:
[rhel4]
   path = /usr/rhel4/
   guest ok = yes
   writeable = yes
   security = share
I'd agree. Permissions on that directory (/usr/rhel4) should be world executable (samba has to descend into the dir) and world readable (samba has to read the directory). So a chmod 755 or something like that (ending in 5) should be appropriate to grant read-only privs to that directory.
drwxr-xr-x 6 root root 4096 May 21 19:04 rhel4

I still can't access it
  #18  
Old 05-30-2005, 11:52 PM
Bullitt 2[H]4U, 5.2 Years
 
Bullitt is offline
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  
Old 05-31-2005, 01:15 AM
Stang Man 2[H]4U, 7.8 Years
 
Stang Man is offline
Quote:
Originally Posted by Bullitt
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"
/dev/hda3 128844 58920 63272 49% /
/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  
Old 06-02-2005, 09:20 PM
Stang Man 2[H]4U, 7.8 Years
 
Stang Man is offline
bump
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:58 AM.


Valid XHTML 1.0 Transitional

Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2000 - 2009 KB Networks, Inc.