[lug] smbmnt path problem, PATH used by 'mount'

Elyse Grasso emgrasso at data-raptors.com
Thu Apr 11 10:18:29 MDT 2002


Those files all looked ok. Do you have smbmnt itself anywhere other than 
/usr/sbin? I had to add a symbolic link from /sbin to the file in /usr/sbin 
to get mount to work.


On Thursday 11 April 2002 06:24 am, you wrote:
> This is what I have in my /etc/fstab
> 
> //hostname/sharename       /mnt/smb        smbfs
> defaults,uid=hugh,credentials=/etc/smb.credentials 0  0
> 
> (except that it is all on one line)
> 
> I am using a stock RH 7.2 machine (with updates applied).
> 
> The mount man page says that it looks for /sbin/mount.smb  to deal with
> mounting smb filesystems.  On my systems /sbin/mount.smb and
> /sbin/mount.smbfs are both links to /usr/bin/smbmount
> 
> I would check permissions on all of the above files to make sure
> everything has execute privileges.
> 
> Hugh
> 
> 
> On Wed, 2002-04-10 at 16:39, Elyse Grasso wrote:
> > If I run smbmount on the command line as root, it works. 
> > 
> > If I put the same parameters into /etc/fstab and try to use mount, I get 
the 
> > following error:
> > 
> > execvp of smbmnt failed. Error was No such file or directory.smbmnt 
failed: 1
> > 
> >  which smbmnt
> > /usr/sbin/smbmnt
> > 
> > I found a FAQ that says the error message means that smbmnt needs to be 
added 
> > to the PATH, but it is in the path.... otherwise smbmount and which would 
not 
> > find it. 
> > 
> > What does mount use as its PATH? Where should I put (or link) smbmnt so 
that 
> > mount can find it?
> > _______________________________________________
> > Web Page:  http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 
> 



More information about the LUG mailing list