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

Hugh Brown hugh at vecna.com
Thu Apr 11 10:38:22 MDT 2002


It was actually in /usr/bin and that is the only place it exists on my
system.

Hugh

On Thu, 2002-04-11 at 12:18, Elyse Grasso wrote:
> 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?





More information about the LUG mailing list