Hi all, is there an upgrade to samba 2.2.x in suse ftp site? I am with suse 7.1 and I cant find it... even if I think I saw it some times ago. Moreover how can I add an SMB share to fstab? How can I pass username and password? Best regards, Tazio
On Fri, 13 Jul 2001, Tazio Ceri wrote:
Hi all, is there an upgrade to samba 2.2.x in suse ftp site? I am with suse 7.1 and I cant find it... even if I think I saw it some times ago.
ftp://ftp.suse.com/pub/suse/i386/update/7.2/n2/samba-2.2.0a-0.i386.rpm
Moreover how can I add an SMB share to fstab? How can I pass username and password?
mount -t smbfs -o username=user,password=foobar //server/share /mnt/samba
Best regards, Tazio
-- 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 and the archives at http://lists.suse.com
Chad Whitten Network/Systems Administrator Nexband Communications chadwick@nexband.com
dog@intop.net wrote:
On Fri, 13 Jul 2001, Tazio Ceri wrote:
Hi all, is there an upgrade to samba 2.2.x in suse ftp site? I am with suse 7.1 and I cant find it... even if I think I saw it some times ago.
ftp://ftp.suse.com/pub/suse/i386/update/7.2/n2/samba-2.2.0a-0.i386.rpm
Thank you
Moreover how can I add an SMB share to fstab? How can I pass username and password?
mount -t smbfs -o username=user,password=foobar //server/share /mnt/samba
I do not want to be root to mount those file sistems... I added the right line to fstab, but I wasn't able to mount that. Then I made smbmnt u+s, but it wasn't enough. My mistake was that the mount point must be owned by that user... Now I got it! Thanks for your answer. Tazio
so did the rpms for 7.2 work on 7.1? I wasnt sure if they would? On Sun, 15 Jul 2001, Tazio Ceri wrote:
dog@intop.net wrote:
On Fri, 13 Jul 2001, Tazio Ceri wrote:
Hi all, is there an upgrade to samba 2.2.x in suse ftp site? I am with suse 7.1 and I cant find it... even if I think I saw it some times ago.
ftp://ftp.suse.com/pub/suse/i386/update/7.2/n2/samba-2.2.0a-0.i386.rpm
Thank you
Moreover how can I add an SMB share to fstab? How can I pass username and password?
mount -t smbfs -o username=user,password=foobar //server/share /mnt/samba
I do not want to be root to mount those file sistems... I added the right line to fstab, but I wasn't able to mount that. Then I made smbmnt u+s, but it wasn't enough. My mistake was that the mount point must be owned by that user... Now I got it!
Thanks for your answer. Tazio
-- 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 and the archives at http://lists.suse.com
Chad Whitten Network/Systems Administrator Nexband Communications chadwick@nexband.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 13 July 2001 15:59, you ( dog@intop.net ) wrote:
On Fri, 13 Jul 2001, Tazio Ceri wrote:
Hi all, is there an upgrade to samba 2.2.x in suse ftp site? I am with suse 7.1 and I cant find it... even if I think I saw it some times ago.
ftp://ftp.suse.com/pub/suse/i386/update/7.2/n2/samba-2.2.0a-0.i386.rpm
Moreover how can I add an SMB share to fstab? How can I pass username and password?
mount -t smbfs -o username=user,password=foobar //server/share /mnt/samba
Best regards, Tazio
-- 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 and the archives at http://lists.suse.com
Chad Whitten Network/Systems Administrator Nexband Communications chadwick@nexband.com
I've been dorking with this for months now and finally got a hairbrained idea that worked. I use this so that my working account (non-privilaged user) can activate SaMBa share mounts as needed. Description follows with examples. in my /etc/fstab file I added these entries: //harlette/linux /net/harlette harlette noauto,user 0 0 This tells the system anytime I try: mount /net/harlette that it's a harlette filesystem. It looks in /sbin and finds a mount.harlette script which basically has this in it: #! /bin/sh echo "Attempting to mount share on Harlette" mount.smbfs \\\\harlette\\linux /net/harlette -o username=the-username,password=the-password This appears to be working for both mount and umount even via a non-privilaged user. Which is what I needed. The /sbin/umount.harlette script has: #! /bin/sh echo "Attempting to unmount share on Harlette..." umount /net/harlette I hope this helps someone. Ambrosius - -- ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ??????????????????????????????? Name: Harold aka "Ambrosius" Email: ambrosius@mailandnews.com (L)ICQ Number: 117212600 Distro: SuSE Linux 7.1 Pro Registered Linux User: 216397 ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ??????????????????????????????? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7UUog1UIAeY3WgCcRAlwzAJ4jnAVv0FfAoqRqaXuO71hWTnqblQCaAh5j lRLEfOyzKRNwedtbzk3DEig= =x+HM -----END PGP SIGNATURE-----
interesting. thats a pretty neat hack. On Sun, 15 Jul 2001, Ambrosius wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday 13 July 2001 15:59, you ( dog@intop.net ) wrote:
On Fri, 13 Jul 2001, Tazio Ceri wrote:
Hi all, is there an upgrade to samba 2.2.x in suse ftp site? I am with suse 7.1 and I cant find it... even if I think I saw it some times ago.
ftp://ftp.suse.com/pub/suse/i386/update/7.2/n2/samba-2.2.0a-0.i386.rpm
Moreover how can I add an SMB share to fstab? How can I pass username and password?
mount -t smbfs -o username=user,password=foobar //server/share /mnt/samba
Best regards, Tazio
-- 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 and the archives at http://lists.suse.com
Chad Whitten Network/Systems Administrator Nexband Communications chadwick@nexband.com
I've been dorking with this for months now and finally got a hairbrained idea that worked. I use this so that my working account (non-privilaged user) can activate SaMBa share mounts as needed. Description follows with examples. in my /etc/fstab file I added these entries:
//harlette/linux /net/harlette harlette noauto,user 0 0
This tells the system anytime I try: mount /net/harlette that it's a harlette filesystem. It looks in /sbin and finds a mount.harlette script which basically has this in it:
#! /bin/sh echo "Attempting to mount share on Harlette" mount.smbfs \\\\harlette\\linux /net/harlette -o username=the-username,password=the-password
This appears to be working for both mount and umount even via a non-privilaged user. Which is what I needed.
The /sbin/umount.harlette script has: #! /bin/sh echo "Attempting to unmount share on Harlette..." umount /net/harlette
I hope this helps someone. Ambrosius - -- ������������������������������� ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ??????????????????????????????? Name: Harold aka "Ambrosius" Email: ambrosius@mailandnews.com (L)ICQ Number: 117212600 Distro: SuSE Linux 7.1 Pro Registered Linux User: 216397 ������������������������������� ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ??????????????????????????????? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org
iD8DBQE7UUog1UIAeY3WgCcRAlwzAJ4jnAVv0FfAoqRqaXuO71hWTnqblQCaAh5j lRLEfOyzKRNwedtbzk3DEig= =x+HM -----END PGP SIGNATURE-----
-- 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 and the archives at http://lists.suse.com
Chad Whitten Network/Systems Administrator Nexband Communications chadwick@nexband.com
On Sun, 15 Jul 2001, Ambrosius wrote: a> I've been dorking with this for months now and finally got a hairbrained a> idea that worked. I use this so that my working account (non-privilaged a> user) can activate SaMBa share mounts as needed. Description follows with a> examples. in my /etc/fstab file I added these entries: a> a> //harlette/linux /net/harlette harlette noauto,user 0 0 a> a> This tells the system anytime I try: mount /net/harlette that it's a a> harlette filesystem. It looks in /sbin and finds a mount.harlette script a> which basically has this in it: a> a> #! /bin/sh a> echo "Attempting to mount share on Harlette" a> mount.smbfs \\\\harlette\\linux /net/harlette -o a> username=the-username,password=the-password a> a> This appears to be working for both mount and umount even via a a> non-privilaged user. Which is what I needed. a> a> The /sbin/umount.harlette script has: a> #! /bin/sh a> echo "Attempting to unmount share on Harlette..." a> umount /net/harlette a> Any particular reason why your not using the autofs package? This does pretty much what you are intending by mounting a share whenever you make an attempt to access it. After a certain ammount of inactivity on that share, it automatically unmounts it. Here's what I have in my autofs files: skull@daydream:~ > ypcat -k auto.master /home auto.home -nosuid,noquota /auto auto.misc -nosuid,noquota skull@daydream:~ > ypcat -k auto.home skull -rw,intr,nosuid,noquota wetdream:/home/skull nitz -rw,intr,nosuid,noquota wetdream:/home/nitz skull@daydream:~ > ypcat -k auto.misc music -rw,intr,nosuid,noquota wetdream:/music public -rw,intr,nosuid,noquota wetdream:/public I use ypcat because the files actually reside on the server and are shared with yp to the workstations. The following is what happens when I try and access nitz's home directory: skull@daydream:/opt/moneydance > ls /home skull skull@daydream:/opt/moneydance > ls /home/nitz ls: /home/nitz: Permission denied skull@daydream:/opt/moneydance > ls /home nitz skull as you can see from the first example, nitz isn't mounted because I've never accessed it, but as soon as I try, you can see that it's mounted. Your /etc/mtab file soon begins to look like the following: skull@daydream:~ > cat /etc/mtab /dev/hda7 / reiserfs rw 0 0 proc /proc proc rw 0 0 /dev/hda5 /boot ext2 rw 0 0 devpts /dev/pts devpts rw 0 0 automount(pid270) /misc autofs rw,fd=5,pgrp=270,minproto=2,maxproto=4 0 0 automount(pid275) /net autofs rw,fd=5,pgrp=275,minproto=2,maxproto=4 0 0 automount(pid296) /home autofs rw,fd=5,pgrp=296,minproto=2,maxproto=4 0 0 automount(pid309) /auto autofs rw,fd=5,pgrp=309,minproto=2,maxproto=4 0 0 wetdream:/public /auto/public nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/home/skull /home/skull nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/music /auto/music nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/home/nitz /home/nitz nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 and after a few minutes (seems like about 10) of not accessing nitz's home directory you'll see the following: skull@daydream:~ > ls /home skull with the following no in /etc/mtab skull@daydream:~ > cat /etc/mtab /dev/hda7 / reiserfs rw 0 0 proc /proc proc rw 0 0 /dev/hda5 /boot ext2 rw 0 0 devpts /dev/pts devpts rw 0 0 automount(pid270) /misc autofs rw,fd=5,pgrp=270,minproto=2,maxproto=4 0 0 automount(pid275) /net autofs rw,fd=5,pgrp=275,minproto=2,maxproto=4 0 0 automount(pid296) /home autofs rw,fd=5,pgrp=296,minproto=2,maxproto=4 0 0 automount(pid309) /auto autofs rw,fd=5,pgrp=309,minproto=2,maxproto=4 0 0 wetdream:/public /auto/public nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/home/skull /home/skull nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/music /auto/music nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 you'll notice the last entry for /home/nitz is now missing. a> -- S.Toms - smotrs@mindspring.com - www.mindspring.com/~smotrs SuSE Linux v7.0+ - Kernel 2.2.18 "Nuclear war would really set back cable." -- Ted Turner
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 15 July 2001 12:46, you ( S.Toms ) wrote:
On Sun, 15 Jul 2001, Ambrosius wrote:
Any particular reason why your not using the autofs package? This does pretty much what you are intending by mounting a share whenever you make an attempt to access it. After a certain ammount of inactivity on that share, it automatically unmounts it. Here's what I have in my autofs files:
skull@daydream:~ > ypcat -k auto.master /home auto.home -nosuid,noquota /auto auto.misc -nosuid,noquota
skull@daydream:~ > ypcat -k auto.home skull -rw,intr,nosuid,noquota wetdream:/home/skull nitz -rw,intr,nosuid,noquota wetdream:/home/nitz
skull@daydream:~ > ypcat -k auto.misc music -rw,intr,nosuid,noquota wetdream:/music public -rw,intr,nosuid,noquota wetdream:/public
I use ypcat because the files actually reside on the server and are shared with yp to the workstations. The following is what happens when I try and access nitz's home directory:
skull@daydream:/opt/moneydance > ls /home skull
skull@daydream:/opt/moneydance > ls /home/nitz ls: /home/nitz: Permission denied
skull@daydream:/opt/moneydance > ls /home nitz skull
as you can see from the first example, nitz isn't mounted because I've never accessed it, but as soon as I try, you can see that it's mounted. Your /etc/mtab file soon begins to look like the following:
skull@daydream:~ > cat /etc/mtab /dev/hda7 / reiserfs rw 0 0 proc /proc proc rw 0 0 /dev/hda5 /boot ext2 rw 0 0 devpts /dev/pts devpts rw 0 0 automount(pid270) /misc autofs rw,fd=5,pgrp=270,minproto=2,maxproto=4 0 0 automount(pid275) /net autofs rw,fd=5,pgrp=275,minproto=2,maxproto=4 0 0 automount(pid296) /home autofs rw,fd=5,pgrp=296,minproto=2,maxproto=4 0 0 automount(pid309) /auto autofs rw,fd=5,pgrp=309,minproto=2,maxproto=4 0 0 wetdream:/public /auto/public nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/home/skull /home/skull nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/music /auto/music nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/home/nitz /home/nitz nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0
and after a few minutes (seems like about 10) of not accessing nitz's home directory you'll see the following:
skull@daydream:~ > ls /home skull
with the following no in /etc/mtab
skull@daydream:~ > cat /etc/mtab /dev/hda7 / reiserfs rw 0 0 proc /proc proc rw 0 0 /dev/hda5 /boot ext2 rw 0 0 devpts /dev/pts devpts rw 0 0 automount(pid270) /misc autofs rw,fd=5,pgrp=270,minproto=2,maxproto=4 0 0 automount(pid275) /net autofs rw,fd=5,pgrp=275,minproto=2,maxproto=4 0 0 automount(pid296) /home autofs rw,fd=5,pgrp=296,minproto=2,maxproto=4 0 0 automount(pid309) /auto autofs rw,fd=5,pgrp=309,minproto=2,maxproto=4 0 0 wetdream:/public /auto/public nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/home/skull /home/skull nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0 wetdream:/music /auto/music nfs rw,nosuid,noquota,intr,noquota,addr=192.168.0.11 0 0
you'll notice the last entry for /home/nitz is now missing.
a> Pick one: Because I'm a moron. Becaue I didn't think about it. Because I haven't had much luck with autofs... (drake's wouldn't always unmount the resource) Still learning a loota stuff.
Thanks I'll peek a sneak into this May be a viable solution for my friend. He's a long time windoze user and frowned when I told him the mount and umount commands. ThanX Ambrosius - -- ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ??????????????????????????????? Name: Harold aka "Ambrosius" Email: ambrosius@mailandnews.com (L)ICQ Number: 117212600 Distro: SuSE Linux 7.1 Pro Registered Linux User: 216397 ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ??????????????????????????????? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7UiOf1UIAeY3WgCcRAiwAAJ0RwsYDHyfhA00N15kH2Eic7ugIrwCeLVBQ qE6I6bscBttoFC9xbw0LgP4= =u7UB -----END PGP SIGNATURE-----
participants (4)
-
Ambrosius
-
dog@intop.net
-
S.Toms
-
Tazio Ceri