From owner-freebsd-questions@FreeBSD.ORG Mon Apr 11 21:47:22 2005 Return-Path: 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 72A2316A4D0 for ; Mon, 11 Apr 2005 21:47:22 +0000 (GMT) Received: from route.lis.de (p54A1F5F8.dip.t-dialin.net [84.161.245.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41A3A43D4C for ; Mon, 11 Apr 2005 21:47:21 +0000 (GMT) (envelope-from lis@1234567890qwertzuiopasdfghjklyxcvbnm.de) Received: from xp2400 (master [192.168.0.2]) by route.lis.de (8.13.1/8.13.1) with SMTP id j3BMiKsI014438 for ; Tue, 12 Apr 2005 00:44:21 +0200 (CEST) (envelope-from lis@1234567890qwertzuiopasdfghjklyxcvbnm.de) Message-ID: <00c201c53ee0$089fe460$0200a8c0@xp2400> From: "Lis" To: References: <20050411000839.6683716A50A@hub.freebsd.org> <425A5242.9060502@iaindooley.com> Date: Mon, 11 Apr 2005 23:47:18 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Subject: Re: Loading Samba Shares at Startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2005 21:47:22 -0000 ----- Original Message ----- From: "Iain Dooley" To: Sent: Monday, April 11, 2005 12:32 PM Subject: Loading Samba Shares at Startup > hi there, not really sure if this is appropriate for this list, or if i > should be sending it to the samba lists. i'll try here first. > > i have a samba server which serves a few windows machines, and i also use > it via sharity-light from my freebsd machine running 4.10 RELEASE. i have > a script that loads my shares, and i put it in my rc.d folder (i've taken > out the user and password info): > > #!/bin/sh > /usr/local/sbin/shlight //cessna/http /usr/home/iain/development/http/ -U > * -u * -g wheel -f 775 -d 775 -P * > /usr/local/sbin/shlight //cessna/http_inertia > /usr/home/iain/development/http_inertia/ -U * -u * -g wheel -f 775 -d > 775 -P * > /usr/local/sbin/shlight //cessna/music /usr/home/iain/music -U * -u * -g > wheel -f 775 -d 775 -P * > /usr/local/sbin/shlight //cessna/dools /usr/home/iain/dools_network -U > * -u * -g wheel -f 775 -d 775 -P * > > it runs fine when i start up freebsd, but when i login, i don't have > access to the shares. so i put the call to the script inside my .tcshrc > file, but this means that, even if i login remotely, and every time i > start a new konsole session or scp something, this script runs. > > does anyone have any clues as to why it wouldn't have access to the shares > after running this script from inside rc.d? i really only want it to run > when the machine starts up, not every time i login. > > cheers > > iain > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > why u dont use mount_smbfs? and dont forgett to set ur devices and trusted ips...