I'm running a small network, consisting of 1 WinNT box, 2 WinME boxes, and 2 Red Hat Linux 7.2 boxes, one of which is my primary domain controller. Both Linux boxes are running samba-2.2.2-20011013 from rpm. I use LinNeighborhood for most of my connection work, though taking it out of the mix does not change the basic problem. The problem I'm having is that smbmount, smbmnt, and smbumount are installed in /usr/sbin. Because of this, I can make whatever connections I need from the Linux boxes if I'm logged under root, but if I am logged in as a normal user, those three executables cannot be found (/usr/sbin not being on my path). If I attempt to invoke smbmount with an explicit path (/usr/sbin/smbmount //server/public ~/public, for example), I am prompted for a password, the I get the message "execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1" My hunch is that smbmount is trying to find smbmnt along the path, which (again) does not include /usr/sbin. In order for this to work, do I need to alter my path, or there another way of dealing with this? Thanks, David M. Stowell
On Wed, 23 Jan 2002, David M. Stowell wrote:> found (/usr/sbin not being on my path). If I attempt to invoke smbmount > with an explicit path (/usr/sbin/smbmount //server/public ~/public, for > example), I am prompted for a password, the I get the message "execvp > of smbmnt failed. Error was No such file or directory.smbmnt failed: 1" > My hunch is that smbmount is trying to find smbmnt along the path, > which (again) does not include /usr/sbin.smbmount first looks in BINDIR, which should be where smbmount and smbmnt is installed. Failing that it goes for the path.> In order for this to work, do I need to alter my path, or there another > way of dealing with this?Yes. Or make smbmount and smbmnt (also) live in /usr/bin using symlinks. /Urban
Hello> The problem I'm having is that smbmount, smbmnt, and smbumount are > installed in /usr/sbin. Because of this, I can make whatever > connections I need from the Linux boxes if I'm logged under root, but > if I am logged in as a normal user, those three executables cannot be > found (/usr/sbin not being on my path). If I attempt to invoke smbmount > with an explicit path (/usr/sbin/smbmount //server/public ~/public, for > example), I am prompted for a password, the I get the message "execvp > of smbmnt failed. Error was No such file or directory.smbmnt failed: 1" > My hunch is that smbmount is trying to find smbmnt along the path, > which (again) does not include /usr/sbin. > In order for this to work, do I need to alter my path, or there another > way of dealing with this?Well, you can modify the file /etc/profile to include the /usr/sbin for all users or make symlinks in /usr/bin (ln -s /usr/sbin/smbmount /usr/bin/smbmount, for example). But the error sounds to me that the file ~/public (/home/user/public) aren?t available. This directory exists? Regards ============================= Administra?ao da Rede FACIN / PUCRS Ramal 4184 Pr?dio 30 - Sala 145
On 2002.01.23 15:07 Luiz Alfredo Baggiotto wrote:> Well, you can modify the file /etc/profile to include the /usr/sbin > for all users or make > symlinks in /usr/bin (ln -s /usr/sbin/smbmount /usr/bin/smbmount, for > example). But the > error sounds to me that the file ~/public (/home/user/public) aren?t > available. This > directory exists? > Regards~/public exists. I decided to solve the problem by symlinking the three smb programs - it worked without compromising the permissions of the entire /usr/sbin directory. Thanks to all, David M. Stowell