I've spent the last 2 days trying to get smbfs to mount via fstab. Using redhat 7.3 and the latest samba as of 7/17/02. I can mount from the command line using smbmount as follows: smbmount //localhost/wwwshare /smbwww -o username=smbuser,password=xxxxxxxx I can not mount from the command line using: mount -t smbfs -o username=smbuser,password=xxxxxxxx //localhost/wwwshare /smbwww The following error is returned when trying to use the 'mount' command as stated above: execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 Consequently, I have not been able to auto mount in fstab using //localhost/wwwshare /smbwww smbfs username=smbuser,password=xxxxxxxx 0 0 as a sanity check the following command is successful as well: smbclient //localhost/wwwshare -U smbuser Am I missing something simple? Am I going nuts? Any and all input is very much appreciated! Mark Nelson
try: mount -t smbfs -o username=smbuser,password=xxxx //localhost/wwwshare /mnt/smbwww -----Original Message----- From: Nelson, Mark [mailto:Mark.Nelson@trw.com] Sent: 19 July 2002 19:22 To: samba@lists.samba.org Subject: [Samba] problems mounting smbfs I've spent the last 2 days trying to get smbfs to mount via fstab. Using redhat 7.3 and the latest samba as of 7/17/02. I can mount from the command line using smbmount as follows: smbmount //localhost/wwwshare /smbwww -o username=smbuser,password=xxxxxxxx I can not mount from the command line using: mount -t smbfs -o username=smbuser,password=xxxxxxxx //localhost/wwwshare /smbwww The following error is returned when trying to use the 'mount' command as stated above: execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 Consequently, I have not been able to auto mount in fstab using //localhost/wwwshare /smbwww smbfs username=smbuser,password=xxxxxxxx 0 0 as a sanity check the following command is successful as well: smbclient //localhost/wwwshare -U smbuser Am I missing something simple? Am I going nuts? Any and all input is very much appreciated! Mark Nelson -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Donal, thanks for the reply. I setup the smbwww in mount (as root mkdir /mnt/smbwww)and tried the command in the format that you gave. I received the same error. Mark -----Original Message----- From: Donal Byrne [mailto:donal.byrne@XIAM.com] Sent: Friday, July 19, 2002 11:28 AM To: Nelson, Mark; samba@lists.samba.org Subject: RE: [Samba] problems mounting smbfs try: mount -t smbfs -o username=smbuser,password=xxxx //localhost/wwwshare /mnt/smbwww -----Original Message----- From: Nelson, Mark [mailto:Mark.Nelson@trw.com] Sent: 19 July 2002 19:22 To: samba@lists.samba.org Subject: [Samba] problems mounting smbfs I've spent the last 2 days trying to get smbfs to mount via fstab. Using redhat 7.3 and the latest samba as of 7/17/02. I can mount from the command line using smbmount as follows: smbmount //localhost/wwwshare /smbwww -o username=smbuser,password=xxxxxxxx I can not mount from the command line using: mount -t smbfs -o username=smbuser,password=xxxxxxxx //localhost/wwwshare /smbwww The following error is returned when trying to use the 'mount' command as stated above: execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 Consequently, I have not been able to auto mount in fstab using //localhost/wwwshare /smbwww smbfs username=smbuser,password=xxxxxxxx 0 0 as a sanity check the following command is successful as well: smbclient //localhost/wwwshare -U smbuser Am I missing something simple? Am I going nuts? Any and all input is very much appreciated! Mark Nelson -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
found it. even tho smbmnt is in my $PATH /usr/sbin/ I put a symlink in /usr/bin pointing to /usr/sbin/smbmnt and it fixed the issue. 2 days for this.. lol.. "linux is only free if your time is worthless" -unknown Mark -----Original Message----- From: Nelson, Mark Sent: Friday, July 19, 2002 11:34 AM To: Donal Byrne; samba@lists.samba.org Subject: RE: [Samba] problems mounting smbfs Donal, thanks for the reply. I setup the smbwww in mount (as root mkdir /mnt/smbwww)and tried the command in the format that you gave. I received the same error. Mark -----Original Message----- From: Donal Byrne [mailto:donal.byrne@XIAM.com] Sent: Friday, July 19, 2002 11:28 AM To: Nelson, Mark; samba@lists.samba.org Subject: RE: [Samba] problems mounting smbfs try: mount -t smbfs -o username=smbuser,password=xxxx //localhost/wwwshare /mnt/smbwww -----Original Message----- From: Nelson, Mark [mailto:Mark.Nelson@trw.com] Sent: 19 July 2002 19:22 To: samba@lists.samba.org Subject: [Samba] problems mounting smbfs I've spent the last 2 days trying to get smbfs to mount via fstab. Using redhat 7.3 and the latest samba as of 7/17/02. I can mount from the command line using smbmount as follows: smbmount //localhost/wwwshare /smbwww -o username=smbuser,password=xxxxxxxx I can not mount from the command line using: mount -t smbfs -o username=smbuser,password=xxxxxxxx //localhost/wwwshare /smbwww The following error is returned when trying to use the 'mount' command as stated above: execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 Consequently, I have not been able to auto mount in fstab using //localhost/wwwshare /smbwww smbfs username=smbuser,password=xxxxxxxx 0 0 as a sanity check the following command is successful as well: smbclient //localhost/wwwshare -U smbuser Am I missing something simple? Am I going nuts? Any and all input is very much appreciated! Mark Nelson -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Just in case it might help got this from http://www.uwsg.iu.edu/hypermail/linux/net/0102.0/0042.html Edit /etc/fstab to add the following line: //[servername]/[mountpoint] /mnt/[mountdirectory] smbfs noauto,rw,username=[username] 0 0 It is never a good idea to store your password in this file, as it is world-readable by default. When you want to mount the share type: # mount /mnt/[mountdirectory] and you'll be prompted for [username]'s password. -----Original Message----- From: Nelson, Mark [mailto:Mark.Nelson@trw.com] Sent: 19 July 2002 19:34 To: Donal Byrne; samba@lists.samba.org Subject: RE: [Samba] problems mounting smbfs Donal, thanks for the reply. I setup the smbwww in mount (as root mkdir /mnt/smbwww)and tried the command in the format that you gave. I received the same error. Mark -----Original Message----- From: Donal Byrne [mailto:donal.byrne@XIAM.com] Sent: Friday, July 19, 2002 11:28 AM To: Nelson, Mark; samba@lists.samba.org Subject: RE: [Samba] problems mounting smbfs try: mount -t smbfs -o username=smbuser,password=xxxx //localhost/wwwshare /mnt/smbwww -----Original Message----- From: Nelson, Mark [mailto:Mark.Nelson@trw.com] Sent: 19 July 2002 19:22 To: samba@lists.samba.org Subject: [Samba] problems mounting smbfs I've spent the last 2 days trying to get smbfs to mount via fstab. Using redhat 7.3 and the latest samba as of 7/17/02. I can mount from the command line using smbmount as follows: smbmount //localhost/wwwshare /smbwww -o username=smbuser,password=xxxxxxxx I can not mount from the command line using: mount -t smbfs -o username=smbuser,password=xxxxxxxx //localhost/wwwshare /smbwww The following error is returned when trying to use the 'mount' command as stated above: execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 Consequently, I have not been able to auto mount in fstab using //localhost/wwwshare /smbwww smbfs username=smbuser,password=xxxxxxxx 0 0 as a sanity check the following command is successful as well: smbclient //localhost/wwwshare -U smbuser Am I missing something simple? Am I going nuts? Any and all input is very much appreciated! Mark Nelson -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
This seems familiar to a problem I had. I could not do the SMB mount and received the same error. It turned out to be that the directory for files smbmount and smbmnt were not in the path. It may be trying to mount them in the fstab the PATH does not exist yet and the files can't be found. HTH Don Hammer Network Administrator Evanite Fiber Corporation 1115 SE Crystal Lake Dr Corvallis, OR 97333 (541) 753-0391 voice (541) 753-0388 fax hammerd@evanite.com -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On Behalf Of Nelson, Mark Sent: Friday, July 19, 2002 11:22 AM To: samba@lists.samba.org Subject: [Samba] problems mounting smbfs I've spent the last 2 days trying to get smbfs to mount via fstab. Using redhat 7.3 and the latest samba as of 7/17/02. I can mount from the command line using smbmount as follows: smbmount //localhost/wwwshare /smbwww -o username=smbuser,password=xxxxxxxx I can not mount from the command line using: mount -t smbfs -o username=smbuser,password=xxxxxxxx //localhost/wwwshare /smbwww The following error is returned when trying to use the 'mount' command as stated above: execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 Consequently, I have not been able to auto mount in fstab using //localhost/wwwshare /smbwww smbfs username=smbuser,password=xxxxxxxx 0 0 as a sanity check the following command is successful as well: smbclient //localhost/wwwshare -U smbuser Am I missing something simple? Am I going nuts? Any and all input is very much appreciated! Mark Nelson -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba ********* PRIVACY STATEMENT ********* This e-mail and its attachments contain confidential information, and are intended only for the individual or entity indicated. If you are not the intended recipient, you are hereby notified that the disclosure, copying, distribution or use of the contents of this transmission is strictly prohibited, and no privilege or protection has been waived. If you have received this communication in error, please notify the sender immediately and then delete the message from the computer.
Thanks! found that even tho I have smbmnt in my $PATH ---snip--- [root@hdservices etc]# echo $PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin ---snip--- When I put a symlink in /usr/bin to /usr/sbin/smbmnt it now works. Not sure exactly why, but I'm not going to argue the fix. RE: the username and password in the fstab, I'm moving it out to a credentials file (-o credentials=/path/to/.file). Just wanted to make it as simple as I could first to get it working. Will be Chmod 600 the .file too. Thanks again! Mark -----Original Message----- From: Donal Byrne [mailto:donal.byrne@XIAM.com] Sent: Friday, July 19, 2002 11:54 AM To: Nelson, Mark; samba@lists.samba.org Subject: RE: [Samba] problems mounting smbfs Just in case it might help got this from http://www.uwsg.iu.edu/hypermail/linux/net/0102.0/0042.html Edit /etc/fstab to add the following line: //[servername]/[mountpoint] /mnt/[mountdirectory] smbfs noauto,rw,username=[username] 0 0 It is never a good idea to store your password in this file, as it is world-readable by default. When you want to mount the share type: # mount /mnt/[mountdirectory] and you'll be prompted for [username]'s password. -----Original Message----- From: Nelson, Mark [mailto:Mark.Nelson@trw.com] Sent: 19 July 2002 19:34 To: Donal Byrne; samba@lists.samba.org Subject: RE: [Samba] problems mounting smbfs Donal, thanks for the reply. I setup the smbwww in mount (as root mkdir /mnt/smbwww)and tried the command in the format that you gave. I received the same error. Mark -----Original Message----- From: Donal Byrne [mailto:donal.byrne@XIAM.com] Sent: Friday, July 19, 2002 11:28 AM To: Nelson, Mark; samba@lists.samba.org Subject: RE: [Samba] problems mounting smbfs try: mount -t smbfs -o username=smbuser,password=xxxx //localhost/wwwshare /mnt/smbwww -----Original Message----- From: Nelson, Mark [mailto:Mark.Nelson@trw.com] Sent: 19 July 2002 19:22 To: samba@lists.samba.org Subject: [Samba] problems mounting smbfs I've spent the last 2 days trying to get smbfs to mount via fstab. Using redhat 7.3 and the latest samba as of 7/17/02. I can mount from the command line using smbmount as follows: smbmount //localhost/wwwshare /smbwww -o username=smbuser,password=xxxxxxxx I can not mount from the command line using: mount -t smbfs -o username=smbuser,password=xxxxxxxx //localhost/wwwshare /smbwww The following error is returned when trying to use the 'mount' command as stated above: execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 Consequently, I have not been able to auto mount in fstab using //localhost/wwwshare /smbwww smbfs username=smbuser,password=xxxxxxxx 0 0 as a sanity check the following command is successful as well: smbclient //localhost/wwwshare -U smbuser Am I missing something simple? Am I going nuts? Any and all input is very much appreciated! Mark Nelson -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba