LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RH9 & Samba (https://www.linuxquestions.org/questions/linux-software-2/rh9-and-samba-76583/)

Cooner 07-28-2003 08:58 AM

RH9 & Samba
 
I was running RH8 and I have a script to mount certain directories of a WinNT box to certain mount points. Everything worked fine until I "upgraded" to RH9. Now when I run the script it will die at various places and I have to run the mounts one at a time. I would run the script a boot so that the mounts would reattach in the event of a power failure. Life was good now it's just a pain in the a.s.s. Thinking of going back to RH8:( .
Anybody else have or heard of this?

Cooner

tangle 07-28-2003 09:24 AM

Can you post the script?

Cooner 07-28-2003 10:35 AM

here ya go!
#!/bin/bash

mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_reports$ /var/www/html/midco/reports
mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_lode$ /var/www/html/midco/lodedata
mount -t smbfs -o username=thisuser,password=userpass //poweredge/Midcont$ /var/www/html/midco/drawings
mount -t smbfs -o username=thisuser,password=userpass //misc001/midco_images$ /var/www/html/midco/images
mount -t smbfs -o username=thisuser,password=userpass //poweredge/uscable_dwg$ /var/www/html/uscable/drawings
mount -t smbfs -o username=thisuser,password=userpass //poweredge/us_reports$ /var/www/html/uscable/reports
mount -t smbfs -o username=thisuser,password=userpass //misc001/uscable_images$ /var/www/html/uscable/images
mount -t smbfs -o username=thisuser,password=userpass //poweredge/savage$ /var/www/html/sci/drawings
mount -t smbfs -o username=thisuser,password=userpass //poweredge/sv_reports$ /var/www/html/sci/reports

tangle 07-28-2003 11:21 AM

What kind of error message do you get when the script executes?

Cooner 07-28-2003 12:27 PM

Copy of smbmount.log
[2003/07/28 12:23:30, 0] client/smbmount.c:send_fs_socket(383)
mount.smbfs: entering daemon mode for service \\poweredge\mc_reports$, pid=3040
[2003/07/28 12:23:31, 0] client/smbmount.c:send_fs_socket(383)
mount.smbfs: entering daemon mode for service \\poweredge\mc_lode$, pid=3046
[2003/07/28 12:23:32, 0] client/smbmount.c:send_fs_socket(383)
mount.smbfs: entering daemon mode for service \\poweredge\Midcont$, pid=3051

Cooner 07-28-2003 12:31 PM

I suppose I should add that I get no error in the system messages file.
It just stops and you need to hit ctl/z to break out of it

yowwww 07-28-2003 12:37 PM

can they be mounted in the terminal (ie using smbmount, via smbclient)?

tangle 07-28-2003 12:37 PM

You are saying that when you run the cammands manually, it works fine. But when you run the script when booting, it does not work.
Have you tried running the command after login?

yowwww 07-28-2003 12:44 PM

just to add, if u "upgraded" in the true sense of the word to red hat 9 using the upgrade feature, then you are asking for problems, if you did a clean install you would likely eliminate a lot of your concerns.
let's hope u created some separate primary home and usr partitions, lol.

Cooner 07-29-2003 07:23 AM

Well the "upgrade" as I called it was a complete reinstall (I never use anybodys upgrade). The problem happens anytime, ie.. running a script or running a single command in the terminal. Sometimes it works and somtimes it don't. I am starting to believe it may have something to do with the depth of the directories on the NT box though I still have an rH8 box this all works fine on. I have another box with RH9 that I just tried this on last night and I have the same problem.

tangle 07-29-2003 07:35 AM

What version of samba is it? Also did you try the smbmount command instead of mount?

tangle 07-29-2003 07:37 AM

Forgot, is your resolv.conf right? I have had some distros that that never set it up right at install and I had to do it manually. If you don't have the serach mydomain.com in it, it will cause you problems too.

Cooner 07-29-2003 08:07 AM

samba 2.2.7a-8.9.0
The resolv.conf appears to be OK
No I have never tried smbmount command, I thought that was what I was doing with the options -t smbfs ?
Could you give me an example.

tangle 07-29-2003 09:05 AM

The smbmount was just a guess. Can you ping the NT server by name? Do you have any dropped packets when you ping?

emence 07-29-2003 09:23 AM

Cooner, I had the same exact problem you are talking about when I went from 8 to 9.
Quote:


here ya go!
#!/bin/bash

mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_reports$ /var/www/html/midco/reports
mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_lode$ /var/www/html/midco/lodedata
mount -t smbfs -o username=thisuser,password=userpass //poweredge/Midcont$ /var/www/html/midco/drawings
mount -t smbfs -o username=thisuser,password=userpass //misc001/midco_images$ /var/www/html/midco/images
mount -t smbfs -o username=thisuser,password=userpass //poweredge/uscable_dwg$ /var/www/html/uscable/drawings
mount -t smbfs -o username=thisuser,password=userpass //poweredge/us_reports$ /var/www/html/uscable/reports
mount -t smbfs -o username=thisuser,password=userpass //misc001/uscable_images$ /var/www/html/uscable/images
mount -t smbfs -o username=thisuser,password=userpass //poweredge/savage$ /var/www/html/sci/drawings
mount -t smbfs -o username=thisuser,password=userpass //poweredge/sv_reports$ /var/www/html/sci/reports

Try doing this:
mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_reports$/ /var/www/html/midco/reports

Make sure you put a slash after the $, thats what ended up fixing the majority of the issues that I had, Also try adding a sleep 1 command betwwen them. They might be getting the signals hung up on the NT box.

Cooner 07-29-2003 09:23 AM

Yes, I can ping the server by name
and no dropped packets.
I see Samba has a 3.0 beta 3 version available, I may try installing that.

tangle 07-29-2003 09:55 AM

You might want to give emence's idea a try before installing a beta app, it makes sense. The $ might be giving the mount command problems or like he said the signals might be getting messed up.

Cooner 07-29-2003 10:41 AM

I totally missed emence's post . ??
anyway I tried the slash after the $ and got an Invalid share name error
the sleep 1 didn't fix it either.
patience is not one of my strong points!
I have everything running off my RH8 box and I have this fresh download of FreeBSD 5.1. I think this box is about to get it's thought pattern changed. I still have the other RH9 box running so if there are any more ideas I will gladly try them.
Thanks for all the effort!

tangle 07-29-2003 10:45 AM

These kind of things are why I went to Slackware. I got tired of all the gliches that RH and MD have. I installed Slackware on 3 PC's and have not had a problem other than PHP working right with Apache. I just installed Apache and PHP from source and Slack works like a top.


All times are GMT -5. The time now is 02:37 AM.