TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [TCLUG:3788] /etc/fstab for smbmount



I said the feature may be there, in a newer version, (not distribution provided)
and you would PROBABLY need to read the documentation on it.  since I have
personaly never done this

On 28-Jan-99 Ben Luey wrote:
> On Thu, 28 Jan 1999, Ben Kochie wrote:
> 
>> actualy, I just saw something about latest version of mount being able to
>> spawn
>> off smbmount to mount files from /etc/fstab.. 
> 
> I tried adding
> 
> //pclueyb/public        /mnt2/samba              smbfs   user,noauto    
> 
> to /etc/fstab , but 
> mount /mnt2/samba
> 
> gave me
> 
> [root@pclueyb /mnt2]# mount samba/
> mount: wrong fs type, bad option, bad superblock on //pclueyb/public,
>        or too many mounted file systems
> [root@pclueyb /mnt2]#                   
> 
> I have mount-2.8a-2, smbfs-2.0.1-4, and samba-2.0.
> 
> Thanks,
> 
> Ben
> 
> 
> 
> 
> 
> 
> 
>> 
>> On 28-Jan-99 Ben Luey wrote:
>> > Is there an equivalent file to /etc/fstab for smbmount. I'd like to be
>> > about to type 
>> > 
>> > smbmount /mnt/dir
>> > and 
>> > smbumount /mnt/dir
>> > 
>> > witohut typing all the //server/directory stuff ( maybe store passwords
>> > also?)
>> > 
>> > If this doesn't exist, what's the best way to write a script to do this? 
>> > I was thinking of having
>> > 
>> > /etc/smbstab have
>> > 
>> > helen //server/helen
>> > john //smith/asdf
>> > 
>> > 
>> > mysmbmount:
>> >#!/bin/sh
>> > options=`grep $1 /etc/smbstab`
>> > shift $options
>> >#note, I know the shift $options isn't the right syntax, but I don't know
>> >#the command to shift the elements of a variable over one
>> > smbmount $options /mnt/$1
>> > 
>> > 
>> > I might do some tail stuff to make sure I only get one line form grep $1 
>> > 
>> > 
>> > 
>> > Thanks,
>> > 
>> > Ben
>> > 
>> > 
>> > 
>> > 
>> > Ben Luey
>> > lueyb@carleton.edu
>> > ICQ: 19144397
>> > 
>> > I have a spelling checker,
>> > Eye got it four my P.C.
>> > It plainly marks four my revue
>> > Miss Steaks I cannot sea
>> > I've rune this poem threw it
>> > I'm sure your pleased too no
>> > Its letter perfect in it's weigh
>> > My checker tolled me sew.        --  Unknown         
>> > 
>> > 
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
>> > For additional commands, e-mail: tclug-list-help@listserv.real-time.com
>> > Try our website: http://tclug.real-time.com
>> 
>> Thank You,
>>         Ben Kochie (ben@nerp.net)
>> 
>> *-----------------------*  [ - * - * - * - * - * - * - * - ]
>> | Unix/Linux Consulting |  [ Haiku Error Message:          ]
>> |  PC/Mac Repair        |  [  Chaos reigns within.         ]
>> |   Networking          |  [  Reflect, repent, and reboot. ]
>> | http://nerp.net       |  [  Order shall return.          ]
>> *-----------------------*  [ - * - * - * - * - * - * - * - ]
>> 
>>  "Unix is user friendly, Its just picky about its friends."
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
>> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
>> Try our website: http://tclug.real-time.com
>> 
> 
> Ben Luey
> lueyb@carleton.edu
> ICQ: 19144397
> 
> Power is given only to those who dare to lower themselves and pick it up.
>  -- Raskolnikov in Crime and Punishment (Fyodor Dostoevsky)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com

Thank You,
        Ben Kochie (ben@nerp.net)

*-----------------------*  [ - * - * - * - * - * - * - * - ]
| Unix/Linux Consulting |  [ Haiku Error Message:          ]
|  PC/Mac Repair        |  [  Chaos reigns within.         ]
|   Networking          |  [  Reflect, repent, and reboot. ]
| http://nerp.net       |  [  Order shall return.          ]
*-----------------------*  [ - * - * - * - * - * - * - * - ]

 "Unix is user friendly, Its just picky about its friends."