[Samba] problems mounting smbfs
Nelson, Mark
Mark.Nelson at trw.com
Fri Jul 19 12:02:04 GMT 2002
Thanks!
found that even tho I have smbmnt in my $PATH
---snip---
[root at 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 at XIAM.com]
Sent: Friday, July 19, 2002 11:54 AM
To: Nelson, Mark; samba at 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 at trw.com]
Sent: 19 July 2002 19:34
To: Donal Byrne; samba at 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 at XIAM.com]
Sent: Friday, July 19, 2002 11:28 AM
To: Nelson, Mark; samba at 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 at trw.com]
Sent: 19 July 2002 19:22
To: samba at 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
More information about the samba
mailing list