From owner-freebsd-questions Thu Dec 19 13:45:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF71B37B401 for ; Thu, 19 Dec 2002 13:45:36 -0800 (PST) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id D402A43EA9 for ; Thu, 19 Dec 2002 13:45:35 -0800 (PST) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id gBJLjRK72591; Thu, 19 Dec 2002 15:45:28 -0600 (CST) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20021219154527.013b44a0@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Thu, 19 Dec 2002 15:45:27 -0600 To: Giorgos Keramidas , Adam Lofstedt From: "Jack L. Stone" Subject: Re: Problem with my startup script? Cc: "'freebsd-questions'" In-Reply-To: <20021219172507.GC985@gothmog.gr> References: <002001c2a77f$f40db760$6f00000a@5adam5> <002001c2a77f$f40db760$6f00000a@5adam5> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 07:25 PM 12.19.2002 +0200, Giorgos Keramidas wrote: >On 2002-12-19 08:59, Adam Lofstedt wrote: >> I am trying to mount a windows share at boot with mount_smbfs. Since I >> have to use the noauto option in fstab (filesystems in fstab are mounted >> before the network is initialized), I have created a startup script >> (smbfsstartup.sh) and placed it in /usr/local/etc/rc.d: >> >> case "$1" in >> start) >> /sbin/mount /myshare >> ;; >> stop) >> #Maybe do something here... >> ;; >> *) >> ;; >> esac >> >> This exact same script worked just fine on another machine. When I >> moved it to a different machine I get this message when my system boots >> up: >> >> Local Package Initialization : (skipping smbfsstartup.sh, not >> executable). > >Take a look at the permissions of the script file with ls(1). The >message is very verbose already. The file has a name that ends in >`.sh' but it is not executable, and this is why it's skipped. > >Quick fix: > > # chmod 0750 /usr/local/etc/rc.d/smbfsstartup.sh > >- Giorgos > Pardon moir for chiming in here, but I have noticed 3 different posts about the proper chmod for the executable on this thread: 744, 755 and now 750 .....I've typically used 755, but if there is some reason for the others as a preference I would be interested in the reasons. or when one should be used over the other... Not second-guessing, just curious. Thanks & Merry Xmas! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message