I've seen several references to running smbmount from /etc/fstab, but I've never seen an example. Does anyone have an example fstab entry that does this? Thanks Steve Litt
Using amd-utils (Linux RH 6.0, 2.2.5-15 kernel, amd-utils, Samba 2.0.3) I have the following in my /etc/fstab: //KIDS/DISK /home/gerry/share smbfs user,exec,dev,suid,rw,uid=500,gid=502,umask=0 0 0 It just works. I'm going to try the 'username=xxxx,password=yyyy' trick soon at the office to see if it'll fix a problem there. Gerry -- Gerry Creager Mapping Sciences Laboratory 409.845.7201 Office Texas Agricultural Experiment Station 409.845.2273 Fax Texas A&M University System 409.228.7686 Pager (preferred) College Station, Texas 77843-2120 gerry@page4.tamu.edu Pager: 4092287686@mobile.att.net "Opinions expressed are mine and do not necessarily represent those of Texas A&M University."
On Wed, 24 Nov 1999, Steve Litt wrote:> I've seen several references to running smbmount from /etc/fstab, but I've > never seen an example. Does anyone have an example fstab entry that does this?I just tested it with: //server/share /mnt/tmp smb username=urban,password=xxx 0 0 I have an old version of mount so I get an error like this: cola:~#mount error: Device or resource busy Please refer to the smbmnt(8) manual page smbmnt failed: 255 mount.smb: ioctl failed, res=-1 Could not umount /mnt/tmp: Device or resource busy But the mount works. The latest util-linux is supposed to fix this I believe. /Urban
Thanks Urban, I confirm that>//server/share /mnt/tmp smbfs username=urban,password=xxx 0 0works, although in my case since I was mounting a share mode share from a w98 box I needed to eliminate the username=whatever. Once again, I'm using Samba 2.0.6 on almost stock Red Hat 6.0. I also confirm your>cola:~#mount error: Device or resource busyI got the following in my boot.log: Nov 24 11:38:27 mainserv netfs: Mounting SMB filesystems succeeded Nov 24 11:38:27 mainserv mount: mount error: Device or resource busy Nov 24 11:38:26 mainserv portmap: portmap startup succeeded Nov 24 11:38:27 mainserv netfs: Mounting SMB filesystems succeeded Nov 24 11:38:27 mainserv mount: mount error: Device or resource busy Nov 24 11:38:27 mainserv netfs: Mounting other filesystems succeeded As did you, I found the mount succeeded in spite of the error messages. Thanks Buddy! Thanks also to Gerry Creager. Gerry, I'll be trying your method with pid and gid later. Thanks everyone Steve Litt At 02:34 AM 11/25/1999 +1100, you wrote:>On Wed, 24 Nov 1999, Steve Litt wrote: > >> I've seen several references to running smbmount from /etc/fstab, but I've >> never seen an example. Does anyone have an example fstab entry that doesthis?> >I just tested it with: > >//server/share /mnt/tmp smb username=urban,password=xxx 0 0 > >I have an old version of mount so I get an error like this: > >cola:~#mount error: Device or resource busy >Please refer to the smbmnt(8) manual page >smbmnt failed: 255 >mount.smb: ioctl failed, res=-1 >Could not umount /mnt/tmp: Device or resource busy > > >But the mount works. The latest util-linux is supposed to fix this I >believe. > >/Urban > >
I have a new problem. I made this share: //wincli/menudata /mnt/menu smbfs password=whatever,user,auto 0 0 mount /mnt/menu works on root, not on a different user. Empty directory is chmod 777, and as per my understanding of user smbmount, I chmod 4775 /usr/local/samba/bin/smbmnt. Didn't work. Just for fun I chmod 4775 /usr/local/samba/bin/smbmount. Didn't work. Here's the symptom: $ mount /mnt/menu $ cannot mount on /mnt/menu: Operation not permitted smbmnt failed: 1 mount.smbfs: ioctl failed, res=-1 Could not umount /mnt/menu: Invalid argument $ Note that if I comment out the fstab entry and try to do it manually, that doesn't work either: $ smbmount //wincli/menudata /mnt/menu -opassword=whatever cannot mount on /mnt/menu: Operation not permitted smbmnt failed: 1 mount.smbfs: ioctl failed, res=-1 Could not umount /mnt/menu: Invalid argument $ The preceding command worked perfectly when executed as user root. What haven't I done? Thanks Steve Litt At 08:55 AM 11/25/1999 +1100, you wrote:>Thanks Urban, > >I confirm that > >>//server/share /mnt/tmp smbfs username=urban,password=xxx 0 0 > >works, although in my case since I was mounting a share mode share from a >w98 box I needed to eliminate the username=whatever. Once again, I'm using >Samba 2.0.6 on almost stock Red Hat 6.0. I also confirm your > >>cola:~#mount error: Device or resource busy > >I got the following in my boot.log: > >Nov 24 11:38:27 mainserv netfs: Mounting SMB filesystems succeeded >Nov 24 11:38:27 mainserv mount: mount error: Device or resource busy >Nov 24 11:38:26 mainserv portmap: portmap startup succeeded >Nov 24 11:38:27 mainserv netfs: Mounting SMB filesystems succeeded >Nov 24 11:38:27 mainserv mount: mount error: Device or resource busy >Nov 24 11:38:27 mainserv netfs: Mounting other filesystems succeeded > >As did you, I found the mount succeeded in spite of the error messages. >Thanks Buddy! Thanks also to Gerry Creager. Gerry, I'll be trying your >method with pid and gid later. > >Thanks everyone > >Steve Litt > > >At 02:34 AM 11/25/1999 +1100, you wrote: >>On Wed, 24 Nov 1999, Steve Litt wrote: >> >>> I've seen several references to running smbmount from /etc/fstab, but I've >>> never seen an example. Does anyone have an example fstab entry that does >this? >> >>I just tested it with: >> >>//server/share /mnt/tmp smb username=urban,password=xxx 0 0 >> >>I have an old version of mount so I get an error like this: >> >>cola:~#mount error: Device or resource busy >>Please refer to the smbmnt(8) manual page >>smbmnt failed: 255 >>mount.smb: ioctl failed, res=-1 >>Could not umount /mnt/tmp: Device or resource busy >> >> >>But the mount works. The latest util-linux is supposed to fix this I >>believe. >> >>/Urban >> >> > >