Re: Samba with no passwords
Matthew Carpenter wrote: chmod 4755 `which smbmnt` In order to do the mounting operation, smbmnt needs to be suid root. Also, smbumount if you are using that one... Generally suid is considered to be A Bad Thing. Is this a case where it is a safe and advisable thing to do? Or just a last ditch solution and pray that it doesn't blow up? Michael ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
On Thu, 7 Aug 2003 12:38:34 -0400 Matthew Carpenter [EMAIL PROTECTED] wrote: h This is still required to use smbmount... I'm not certain about smbfs and /etc/fstab... Did you try the password= attribute? Since most people don't do a blank password or a guest account, this may be a requirement... Yes. I've gotten used to smbclient now - transfer anything I need to my side of the connection. About the only thing I need this for is to burn cds. My older cdwriter package won't install on [EMAIL PROTECTED] WinXP, and I'm too cheap to buy a new one. Also, I still have Win98 on this machine, so I can always boot that up if I can't get to the files any other way. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
On Tue, 05 Aug 2003 12:58:27 -0400 Tim Wunder [EMAIL PROTECTED] wrote: On 8/5/2003 11:52 AM, someone claiming to be Collins Richey wrote: On Tue, 5 Aug 2003 08:04:51 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 3 Aug 2003 19:59:41 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. If you put the appropriate line in /etc/fstab with password=,user= then you can just do 'mount /mnt/samba'. (Or it may have to be user=guest). Thanks. It works with user=guest. OK, now to dig a little deeper. The set of directories (it varies) that I'm wanting to access appear to have no common high level directory(they are anchored on the WinXP desktop), so I need to do a separate mount for each. Short of putting a big list in fstab, is there any way to get a given directory mounted for general use upon demand, either by command or by root command and make the permissionssuch that normal users can manipulate it? After further experimentation This works as root (no passwd prompt, no errors of any sort) mount -t smbfs -o guest //name/Collins /mnt/smb-collins But it does not work from normal user relying on fstab entry //name/Collins /mnt/smb-collins smbfs \ noauto,user,guest 0 0 I get mount //name/Collins cannot mount on /mnt/smb-collins: Operation not permitted smbmnt failed: 1 Any ideas? Don't you need a username=guest line in there somewhere? Check 'man smbmount' I've also tried that. The mount command works with either -o guest or -o user=guest,password= , but I've found no combination that will work in fstab. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
On Tue, 05 Aug 2003 15:06:22 -0400 Tim Wunder [EMAIL PROTECTED] wrote: On 8/5/2003 2:08 PM, someone claiming to be Collins Richey wrote: On Tue, 05 Aug 2003 12:58:27 -0400 Tim Wunder [EMAIL PROTECTED] wrote: On 8/5/2003 11:52 AM, someone claiming to be Collins Richey wrote: On Tue, 5 Aug 2003 08:04:51 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 3 Aug 2003 19:59:41 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. If you put the appropriate line in /etc/fstab with password=,user=then you can just do 'mount /mnt/samba'. (Or it may have to beuser=guest). Thanks. It works with user=guest. OK, now to dig a little deeper. The set of directories (it varies)that I'm wanting to access appear to have no common high leveldirectory(they are anchored on the WinXP desktop), so I need to do aseparate mount for each. Short of putting a big list in fstab, isthere any way to get a given directory mounted for general use upondemand, either by command or by root command and make the permissionssuch that normal users can manipulate it? After further experimentation This works as root (no passwd prompt, no errors of any sort) mount -t smbfs -o guest //name/Collins /mnt/smb-collins But it does not work from normal user relying on fstab entry //name/Collins /mnt/smb-collins smbfs \ noauto,user,guest 0 0 I get mount //name/Collins cannot mount on /mnt/smb-collins: Operation not permitted smbmnt failed: 1 Any ideas? Don't you need a username=guest line in there somewhere? Check 'man smbmount' I've also tried that. The mount command works with either -o guest or-o user=guest,password= , but I've found no combination that will work in fstab. Can't help you too much as I don't have a Windows share that doesn't have a password. But, I set the PASSWD environment variable, and added://192.168.1.8/Tim /mnt/share smbfs noauto,user,rw 0 0 to /etc/fstab and was able to mount the share with 'mount /mnt/share' So perhaps setting USER=guest would work. Dunno if that's workable for you or not... Did you try: //name/Collins /mnt/smb-collins smbfs \ noauto,user,rw,username=guest 0 0 Yes, mount fails as before. I didn't include rw, but I don't think that matters. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
On Wed, 06 Aug 2003 16:34:38 +0200 Klaus-Peter Schrage [EMAIL PROTECTED] wrote: Collins Richey wrote: On Sun, 3 Aug 2003 19:59:41 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. If you put the appropriate line in /etc/fstab with password=,user= then you can just do 'mount /mnt/samba'. (Or it may have to be user=guest). Thanks. It works with user=guest. OK, now to dig a little deeper. The set of directories (it varies) that I'm wanting to access appear to have no common high level directory(they are anchored on the WinXP desktop), so I need to do a separate mount for each. Short of putting a big list in fstab, is there any way to get a given directory mounted for general use upon demand, either by command or by root command and make the permissions such that normal users can manipulate it? Have you tried out smbclient which allows you to browse a samba share without mounting it: smbclient //name_of _computer/directory_name ? Even more comfortable, in kde konqueror you can browse by entering the address smb://name_of _computer/directory_name (the same works in gnome nautilus, as far as I know). Excellent suggestion. Since I'm totally a novice with smb stuff, I wasn't aware of smbclient. That's a good workaround. As to konqueror, browsing works after replying to about 10 dialog boxes, since it doesn't aprove of user=quest without a password. Not especially user friendly grin. As to kde and gnome in general, I don't need the overhead, so this would only be an occasional use item. xfce xffm is supposed to allow browsing, but unfortunately (version 4) it fails to expand my local network (no indication of errors, it just doesn't work). Thanks for the pointer. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
On Tue, 5 Aug 2003 23:46:55 -0400 Matthew Carpenter [EMAIL PROTECTED] wrote: chmod 4755 `which smbmnt` Sounds good, but no workie! I still get the same error. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
h This is still required to use smbmount... I'm not certain about smbfs and /etc/fstab... Did you try the password= attribute? Since most people don't do a blank password or a guest account, this may be a requirement... On Wed, 6 Aug 2003 08:15:06 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Tue, 5 Aug 2003 23:46:55 -0400 Matthew Carpenter [EMAIL PROTECTED] wrote: chmod 4755 `which smbmnt` Sounds good, but no workie! I still get the same error. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users -- Matthew Carpenter [EMAIL PROTECTED] http://www.eisgr.com/ Enterprise Information Systems * Network Service Appliances * Network Consulting, Integration Support * Web Integration and E-Business ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
This is required for users to be able to use the SMB Mounting tools. On Wed, 06 Aug 2003 08:56:58 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Matthew Carpenter wrote: chmod 4755 `which smbmnt` In order to do the mounting operation, smbmnt needs to be suid root. Also, smbumount if you are using that one... Generally suid is considered to be A Bad Thing. Is this a case where it is a safe and advisable thing to do? Or just a last ditch solution and pray that it doesn't blow up? Michael ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users -- Matthew Carpenter [EMAIL PROTECTED] http://www.eisgr.com/ Enterprise Information Systems * Network Service Appliances * Network Consulting, Integration Support * Web Integration and E-Business ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
On 8/5/2003 2:08 PM, someone claiming to be Collins Richey wrote: On Tue, 05 Aug 2003 12:58:27 -0400 Tim Wunder [EMAIL PROTECTED] wrote: On 8/5/2003 11:52 AM, someone claiming to be Collins Richey wrote: On Tue, 5 Aug 2003 08:04:51 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 3 Aug 2003 19:59:41 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. If you put the appropriate line in /etc/fstab with password=,user= then you can just do 'mount /mnt/samba'. (Or it may have to be user=guest). Thanks. It works with user=guest. OK, now to dig a little deeper. The set of directories (it varies) that I'm wanting to access appear to have no common high level directory(they are anchored on the WinXP desktop), so I need to do a separate mount for each. Short of putting a big list in fstab, is there any way to get a given directory mounted for general use upon demand, either by command or by root command and make the permissionssuch that normal users can manipulate it? After further experimentation This works as root (no passwd prompt, no errors of any sort) mount -t smbfs -o guest //name/Collins /mnt/smb-collins But it does not work from normal user relying on fstab entry //name/Collins /mnt/smb-collins smbfs \ noauto,user,guest 0 0 I get mount //name/Collins cannot mount on /mnt/smb-collins: Operation not permitted smbmnt failed: 1 Any ideas? Don't you need a username=guest line in there somewhere? Check 'man smbmount' I've also tried that. The mount command works with either -o guest or -o user=guest,password= , but I've found no combination that will work in fstab. Can't help you too much as I don't have a Windows share that doesn't have a password. But, I set the PASSWD environment variable, and added: //192.168.1.8/Tim /mnt/share smbfs noauto,user,rw 0 0 to /etc/fstab and was able to mount the share with 'mount /mnt/share' So perhaps setting USER=guest would work. Dunno if that's workable for you or not... Did you try: //name/Collins /mnt/smb-collins smbfs \ noauto,user,rw,username=guest 0 0 Good luck, Tim ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
Collins Richey wrote: On Sun, 3 Aug 2003 19:59:41 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. If you put the appropriate line in /etc/fstab with password=,user= then you can just do 'mount /mnt/samba'. (Or it may have to be user=guest). Thanks. It works with user=guest. OK, now to dig a little deeper. The set of directories (it varies) that I'm wanting to access appear to have no common high level directory (they are anchored on the WinXP desktop), so I need to do a separate mount for each. Short of putting a big list in fstab, is there any way to get a given directory mounted for general use upon demand, either by command or by root command and make the permissions such that normal users can manipulate it? Have you tried out smbclient which allows you to browse a samba share without mounting it: smbclient //name_of _computer/directory_name ? Even more comfortable, in kde konqueror you can browse by entering the address smb://name_of _computer/directory_name (the same works in gnome nautilus, as far as I know). Klaus ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
On Tue, 5 Aug 2003 08:04:51 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 3 Aug 2003 19:59:41 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. If you put the appropriate line in /etc/fstab with password=,user= then you can just do 'mount /mnt/samba'. (Or it may have to be user=guest). Thanks. It works with user=guest. OK, now to dig a little deeper. The set of directories (it varies) that I'm wanting to access appear to have no common high level directory(they are anchored on the WinXP desktop), so I need to do a separate mount for each. Short of putting a big list in fstab, is there any way to get a given directory mounted for general use upon demand, either by command or by root command and make the permissions such that normal users can manipulate it? After further experimentation This works as root (no passwd prompt, no errors of any sort) mount -t smbfs -o guest //name/Collins /mnt/smb-collins But it does not work from normal user relying on fstab entry //name/Collins /mnt/smb-collins smbfs \ noauto,user,guest 0 0 I get mount //name/Collins cannot mount on /mnt/smb-collins: Operation not permitted smbmnt failed: 1 Any ideas? -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
On Sun, 3 Aug 2003 19:59:41 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. If you put the appropriate line in /etc/fstab with password=,user= then you can just do 'mount /mnt/samba'. (Or it may have to be user=guest). Thanks. It works with user=guest. OK, now to dig a little deeper. The set of directories (it varies) that I'm wanting to access appear to have no common high level directory (they are anchored on the WinXP desktop), so I need to do a separate mount for each. Short of putting a big list in fstab, is there any way to get a given directory mounted for general use upon demand, either by command or by root command and make the permissions such that normal users can manipulate it? -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
chmod 4755 `which smbmnt` In order to do the mounting operation, smbmnt needs to be suid root. Also, smbumount if you are using that one... On Tue, 5 Aug 2003 15:02:31 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Tue, 05 Aug 2003 15:06:22 -0400 Tim Wunder [EMAIL PROTECTED] wrote: On 8/5/2003 2:08 PM, someone claiming to be Collins Richey wrote: On Tue, 05 Aug 2003 12:58:27 -0400 Tim Wunder [EMAIL PROTECTED] wrote: On 8/5/2003 11:52 AM, someone claiming to be Collins Richey wrote: On Tue, 5 Aug 2003 08:04:51 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 3 Aug 2003 19:59:41 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. If you put the appropriate line in /etc/fstab with password=,user=then you can just do 'mount /mnt/samba'. (Or it may have to beuser=guest). Thanks. It works with user=guest. OK, now to dig a little deeper. The set of directories (it varies)that I'm wanting to access appear to have no common high leveldirectory(they are anchored on the WinXP desktop), so I need to do aseparate mount for each. Short of putting a big list in fstab, isthere any way to get a given directory mounted for general use upondemand, either by command or by root command and make the permissionssuch that normal users can manipulate it? After further experimentation This works as root (no passwd prompt, no errors of any sort) mount -t smbfs -o guest //name/Collins /mnt/smb-collins But it does not work from normal user relying on fstab entry //name/Collins /mnt/smb-collins smbfs \ noauto,user,guest 0 0 I get mount //name/Collins cannot mount on /mnt/smb-collins: Operation not permitted smbmnt failed: 1 Any ideas? Don't you need a username=guest line in there somewhere? Check 'man smbmount' I've also tried that. The mount command works with either -o guest or-o user=guest,password= , but I've found no combination that will work in fstab. Can't help you too much as I don't have a Windows share that doesn't have a password. But, I set the PASSWD environment variable, and added://192.168.1.8/Tim /mnt/share smbfs noauto,user,rw 0 0 to /etc/fstab and was able to mount the share with 'mount /mnt/share' So perhaps setting USER=guest would work. Dunno if that's workable for you or not... Did you try: //name/Collins /mnt/smb-collins smbfs \ noauto,user,rw,username=guest 0 0 Yes, mount fails as before. I didn't include rw, but I don't think that matters. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users -- Matthew Carpenter [EMAIL PROTECTED] http://www.eisgr.com/ Enterprise Information Systems *Network Consulting, Integration Support *Web Development and E-Business ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
Collins Richey schrieb: On Wed, 06 Aug 2003 16:34:38 +0200 Klaus-Peter Schrage [EMAIL PROTECTED] wrote: Collins Richey wrote: On Sun, 3 Aug 2003 19:59:41 -0600 Collins Richey [EMAIL PROTECTED] wrote: On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. If you put the appropriate line in /etc/fstab with password=,user= then you can just do 'mount /mnt/samba'. (Or it may have to be user=guest). Thanks. It works with user=guest. OK, now to dig a little deeper. The set of directories (it varies) that I'm wanting to access appear to have no common high level directory(they are anchored on the WinXP desktop), so I need to do a separate mount for each. Short of putting a big list in fstab, is there any way to get a given directory mounted for general use upon demand, either by command or by root command and make the permissions such that normal users can manipulate it? Have you tried out smbclient which allows you to browse a samba share without mounting it: smbclient //name_of _computer/directory_name ? Even more comfortable, in kde konqueror you can browse by entering the address smb://name_of _computer/directory_name (the same works in gnome nautilus, as far as I know). Excellent suggestion. Since I'm totally a novice with smb stuff, I wasn't aware of smbclient. That's a good workaround. As to konqueror, browsing works after replying to about 10 dialog boxes, since it doesn't aprove of user=quest without a password. Not especially user friendly grin. To avoid any messing with passwords, why don't you simply mark all those directories on the XP computer that you want to see from your Linux machine as shares, i. e. in win explorer, right click at the resp. directories, go to shares and security or so (sorry, I only have the German menus) and make them shares? Klaus ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. Flames anticipated, security, etc., etc., but this is only on my internal net behind the router. If you put the appropriate line in /etc/fstab with password=,user= then you can just do 'mount /mnt/samba'. (Or it may have to be user=guest). Michael ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users
Re: Samba with no passwords
On Sun, 03 Aug 2003 20:16:18 -0500 Michael Hipp [EMAIL PROTECTED] wrote: Collins Richey wrote: Is there any way to cause the mount not to prompt for a passwd? Hint, I have no defined users and do not log in to the WinXP box. Flames anticipated, security, etc., etc., but this is only on my internal net behind the router. If you put the appropriate line in /etc/fstab with password=,user= then you can just do 'mount /mnt/samba'. (Or it may have to be user=guest). Thanks. It works with user=guest. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for. ___ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc - http://www.linux-sxs.org/mailman/listinfo/linux-users