Using remote smb share via fstab?
![](https://seccdn.libravatar.org/avatar/bd34bba8e1853f0231bbb54c4af7408a.jpg?s=120&d=mm&r=g)
Date: Sun, 3 Dec 2000 09:03:56 +0100 (CET) From: Ole Kofoed Hansen <okh-linux@post.cybercity.dk> Message-ID: <Pine.LNX.4.21.0012030852450.732-100000@linux.home> Subject: Using remote smb share via fstab? I have a short question (actually two questions): Is it possible to make an entry in /etc/fstab, so that I can have my roommates Win98 shares mounted automatically? If it is, what should the entry look like? I tried looking at the manpages for: - fstab - mount - smbmount - smbmnt without getting any useful hints. Regards Ole -- Quidquid latine dictum sit, altum viditur. (Whatever is said in Latin sounds profound.)
![](https://seccdn.libravatar.org/avatar/9780037659eee370a786a87fb2a08e70.jpg?s=120&d=mm&r=g)
From: "Tim Schall" <grover@router.fortgirlfriend.tzo.com> Date: Sun, 3 Dec 2000 00:15:01 -0800 Message-ID: <NDBBKJGDMLAMHFPKBPOBEEIFCBAA.grover@router.fortgirlfriend.tzo.com> Subject: RE: [SLE] Using remote smb share via fstab? It sure is. Make sure ya have appropriate SMB stuff installed. Mount line in fstab should look something like. machinename:/sharename -t smb defaults 0 0 This will mount the share with the default settings supplied by the Win98 box. It may ask for a password in which case ya can use: machinename:/sharename -t smb username=xxxx,password=xxxxx 0 0 Which will mount the share and send the appropriate info to the win98 box. Ya may note actually need the username part, I don't remember. Please note though, this file is stored clear text and the passwords are sent unencrypted. It >MIGHT< be possible for someone to grab the password as it travels over the wire. If they were really bored..... <p>-----Original Message----- From: Ole Kofoed Hansen [mailto:okh-linux@post.cybercity.dk] Sent: Sunday, December 03, 2000 12:04 AM To: SuSE Linux mailing list Subject: [SLE] Using remote smb share via fstab? <p><p>I have a short question (actually two questions): Is it possible to make an entry in /etc/fstab, so that I can have my roommates Win98 shares mounted automatically? If it is, what should the entry look like? I tried looking at the manpages for: - fstab - mount - smbmount - smbmnt without getting any useful hints. Regards Ole -- Quidquid latine dictum sit, altum viditur. (Whatever is said in Latin sounds profound.) <p>-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
![](https://seccdn.libravatar.org/avatar/ec00c8c2dad5f30d4803320a0b1e352a.jpg?s=120&d=mm&r=g)
Date: Sun, 3 Dec 2000 14:38:15 +0100 From: Cliff Sarginson <cliff@raggedclown.net> Message-ID: <20001203143814.A1431@buffy.local> Subject: Re: [SLE] Using remote smb share via fstab? On Sun, Dec 03, 2000 at 09:03:56AM +0100, Ole Kofoed Hansen wrote:
I have a short question (actually two questions):
Is it possible to make an entry in /etc/fstab, so that I can have my roommates Win98 shares mounted automatically?
If it is, what should the entry look like?
I tried looking at the manpages for: - fstab - mount - smbmount - smbmnt without getting any useful hints.
Regards
Ole
Example from my own fstab # Windows stuff on "giles" # //giles/u /giles/u smbfs auto,username=billy,password=gates 0 0 //giles/root /giles smbfs auto,username=bigus,password=bucks 0 0 Cliff
![](https://seccdn.libravatar.org/avatar/73cd9b1fc018a7de5ed6b854ff1f29a7.jpg?s=120&d=mm&r=g)
Message-Id: <4.3.2.7.0.20001203191704.01f51110@claborn.net> Date: Sun, 03 Dec 2000 19:23:31 -0600 From: wilson@claborn.net (Jonathan Wilson) Subject: Re: [SLE] Using remote smb share via fstab? I have been fighting with this problem for ages and I wish someone could get me a real answer. Everything works except one thing:users can't mount the smb share, even though I have "user" in the fstab options. I have tried fiddleing with the perms on mount, smbmount, and so on, but all I get is stuff like this: [jw@garnet jw]$ mount /mnt/Cschomeserver/ cannot mount on /mnt/Cschomeserver: Operation not permitted smbmnt failed: 1 mount.smbfs: ioctl failed, res=-1 Could not umount /mnt/Cschomeserver: Invalid argument Here's my fstab line: //cschomeserver/servere /mnt/Cschomeserver smbfs noauto,username=anyone,password=,user 0 0 I've also used "smb" instead of "smbfs". mount /mnt/Cschomeserver works PERFECTLY fine for root, either way, but never as any regular user. Does anyone know what it takes to make smbshares user-mountable? I should note that this is on a Red Hat system (sorry....). IMHO it should hardly matter :-( <p> JW <p>At 02:38 PM 12/3/2000 +0100, you wrote:
On Sun, Dec 03, 2000 at 09:03:56AM +0100, Ole Kofoed Hansen wrote:
I have a short question (actually two questions):
Is it possible to make an entry in /etc/fstab, so that I can have my roommates Win98 shares mounted automatically?
If it is, what should the entry look like?
I tried looking at the manpages for: - fstab - mount - smbmount - smbmnt without getting any useful hints.
Regards
Ole
Example from my own fstab
# Windows stuff on "giles" # //giles/u /giles/u smbfs auto,username=billy,password=gates 0 0 //giles/root /giles smbfs auto,username=bigus,password=bucks 0 0
Cliff
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
![](https://seccdn.libravatar.org/avatar/4970a690d65f0be504bf05853e742d20.jpg?s=120&d=mm&r=g)
Message-ID: <3A2B81DB.33406509@cfl.rr.com> Date: Mon, 04 Dec 2000 06:36:59 -0500 From: Mark Hounschell <dmarkh@cfl.rr.com> Subject: Re: [SLE] Using remote smb share via fstab? Jonathan Wilson wrote:
I have been fighting with this problem for ages and I wish someone could get me a real answer.
Everything works except one thing:users can't mount the smb share, even though I have "user" in the fstab options. I have tried fiddleing with the perms on mount, smbmount, and so on, but all I get is stuff like this:
[jw@garnet jw]$ mount /mnt/Cschomeserver/ cannot mount on /mnt/Cschomeserver: Operation not permitted smbmnt failed: 1 mount.smbfs: ioctl failed, res=-1 Could not umount /mnt/Cschomeserver: Invalid argument
Here's my fstab line:
//cschomeserver/servere /mnt/Cschomeserver smbfs noauto,username=anyone,password=,user 0 0
I've also used "smb" instead of "smbfs".
mount /mnt/Cschomeserver works PERFECTLY fine for root, either way, but never as any regular user.
Does anyone know what it takes to make smbshares user-mountable?
I should note that this is on a Red Hat system (sorry....). IMHO it should hardly matter :-(
JW
You might try adding the users to the group disk if you haven't already?? -- Mark Hounschell dmarkh@cfl.rr.com
![](https://seccdn.libravatar.org/avatar/73cd9b1fc018a7de5ed6b854ff1f29a7.jpg?s=120&d=mm&r=g)
Message-Id: <5.0.2.1.0.20001205002026.03473a48@claborn.net> Date: Tue, 05 Dec 2000 00:24:01 -0600 From: wilson@claborn.net (Jonathan Wilson) Subject: Re: [SLE] Using remote smb share via fstab?+as non-root user? At 06:36 AM 12/4/2000 -0500, you wrote:
Jonathan Wilson wrote:
I have been fighting with this problem for ages and I wish someone could get me a real answer.
Everything works except one thing:users can't mount the smb share, even though I have "user" in the fstab options. I have tried fiddleing with the perms on mount, smbmount, and so on, but all I get is stuff like this:
[jw@garnet jw]$ mount /mnt/Cschomeserver/ cannot mount on /mnt/Cschomeserver: Operation not permitted smbmnt failed: 1 mount.smbfs: ioctl failed, res=-1 Could not umount /mnt/Cschomeserver: Invalid argument
Here's my fstab line:
//cschomeserver/servere /mnt/Cschomeserver smbfs noauto,username=anyone,password=,user 0 0
I've also used "smb" instead of "smbfs".
mount /mnt/Cschomeserver works PERFECTLY fine for root, either way, but never as any regular user.
Does anyone know what it takes to make smbshares user-mountable?
I should note that this is on a Red Hat system (sorry....). IMHO it should hardly matter :-(
JW
You might try adding the users to the group disk if you haven't already??
That was a great idea, sadly it didn't work. Any other ideas? Buy the way none of those binaries are owned by the group disk, should they be? [jw@garnet jw]$ ls -ld /bin/mount -rwsr-xr-x 1 root root 56208 Feb 3 2000 /bin/mount [jw@garnet jw]$ ls -ld /usr/bin/smbmount -rwsr-sr-x 1 root root 258160 May 17 2000 /usr/bin/smbmount [jw@garnet jw]$ ls -ld /usr/bin/smbmnt -rwsr-sr-x 1 root root 251728 May 17 2000 /usr/bin/smbmnt [jw@garnet jw]$ ls -ld /usr/bin/smbumount -rwxr-xr-x 1 root root 250704 May 17 2000 /usr/bin/smbumount <p>I think I remember adding the ug+s bit myself. Didn't want to set that on world though :-/
-- Mark Hounschell dmarkh@cfl.rr.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
![](https://seccdn.libravatar.org/avatar/4970a690d65f0be504bf05853e742d20.jpg?s=120&d=mm&r=g)
Message-ID: <3A2CB553.E20DB1A8@cfl.rr.com> Date: Tue, 05 Dec 2000 04:28:51 -0500 From: Mark Hounschell <dmarkh@cfl.rr.com> Subject: Re: [SLE] Using remote smb share via fstab?+as non-root user? Jonathan Wilson wrote:
You might try adding the users to the group disk if you haven't already??
That was a great idea, sadly it didn't work. Any other ideas? Buy the way none of those binaries are owned by the group disk, should they be? No. I don't think it's an executable permission problem. I'm no samba expert though.
[jw@garnet jw]$ ls -ld /bin/mount -rwsr-xr-x 1 root root 56208 Feb 3 2000 /bin/mount [jw@garnet jw]$ ls -ld /usr/bin/smbmount -rwsr-sr-x 1 root root 258160 May 17 2000 /usr/bin/smbmount [jw@garnet jw]$ ls -ld /usr/bin/smbmnt -rwsr-sr-x 1 root root 251728 May 17 2000 /usr/bin/smbmnt [jw@garnet jw]$ ls -ld /usr/bin/smbumount -rwxr-xr-x 1 root root 250704 May 17 2000 /usr/bin/smbumount
I think I remember adding the ug+s bit myself. Didn't want to set that on world though :-/
What are the permissions on /mnt and /mnt/Cschomeserver? <p> -- Mark Hounschell dmarkh@cfl.rr.com
![](https://seccdn.libravatar.org/avatar/bd34bba8e1853f0231bbb54c4af7408a.jpg?s=120&d=mm&r=g)
Date: Sun, 3 Dec 2000 19:07:28 +0100 (CET) From: Ole Kofoed Hansen <okh-linux@post.cybercity.dk> Message-ID: <Pine.LNX.4.21.0012031905240.614-100000@linux.home> Subject: Re: [SLE] Using remote smb share via fstab? Because of the help from Tim and Cliff, I now have the fstab entry I want. Thank you both very much. Regards Ole -- Alden's Laws: (1) Giving away baby clothes and furniture is the major cause of pregnancy. (2) Always be backlit. (3) Sit down whenever possible.
participants (5)
-
cliff@raggedclown.net
-
dmarkh@cfl.rr.com
-
grover@router.fortgirlfriend.tzo.com
-
okh-linux@post.cybercity.dk
-
wilson@claborn.net