Re: [opensuse] How to mask a blank in the password in /etc/samba/cifstab ?
On Sat, Dec 14, 2013 at 07:28:51PM +0100, Andreas wrote:
I tried it with the command line and the env-variable. That way it works.
Trying to give the password as parameter on the command line doesn't work though. No way username=xx,password=Ab-CD 123 That way the number is an unrecognized parameter and cifs dumps it's helptext.
username=xx,password=Ab-CD\040123 username=xx,password="Ab-CD 123" username=xx,password='Ab-CD 123'
--> permission denied
Please check if this applies to the current version of mount.cifs available from the network:samba:STABLE openSUSE Build Servce reporitory at http://download.opensuse.org/repositories/network:/samba:/STABLE/openSUSE_13... openSUSE 13.1 includes cifs-utils-6.2 and the last modification to network:samba:STABLE/cifs-utils verifies only the gpg signature of the source tar ball. Therefore you only have to check if a more recent kernel version helps. See http://en.opensuse.org/openSUSE:Kernel_of_the_day If also this approach fails please file a bug report upstream at https://bugzilla.samba.org/ , add all the details of your testing approach, and add a reference to this thread, a link to the mailing list archive as suggested with my first reply. Also report the bug ID back here. Thanks, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
I didn't try your last suggestions, yet, but I found another thing. I can't mount share via cifstab that has a space in the remote folder name. Thats the same problem. In /etc/fstab I can replace the space with \040 but cifstab won't work that way. Am 14.12.2013 20:22, schrieb Lars Müller:
On Sat, Dec 14, 2013 at 07:28:51PM +0100, Andreas wrote:
I tried it with the command line and the env-variable. That way it works.
Trying to give the password as parameter on the command line doesn't work though. No way username=xx,password=Ab-CD 123 That way the number is an unrecognized parameter and cifs dumps it's helptext.
username=xx,password=Ab-CD\040123 username=xx,password="Ab-CD 123" username=xx,password='Ab-CD 123'
--> permission denied Please check if this applies to the current version of mount.cifs available from the network:samba:STABLE openSUSE Build Servce reporitory at http://download.opensuse.org/repositories/network:/samba:/STABLE/openSUSE_13...
openSUSE 13.1 includes cifs-utils-6.2 and the last modification to network:samba:STABLE/cifs-utils verifies only the gpg signature of the source tar ball.
Therefore you only have to check if a more recent kernel version helps. See http://en.opensuse.org/openSUSE:Kernel_of_the_day
If also this approach fails please file a bug report upstream at https://bugzilla.samba.org/ , add all the details of your testing approach, and add a reference to this thread, a link to the mailing list archive as suggested with my first reply. Also report the bug ID back here.
Thanks,
Lars
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/14/2013 01:35 PM, Andreas wrote:
I didn't try your last suggestions, yet, but I found another thing.
I can't mount share via cifstab that has a space in the remote folder name. Thats the same problem.
In /etc/fstab I can replace the space with \040 but cifstab won't work that way.
I haven't tried with spaces, but I have had good luck using a credentials file for cifs mounts: mount.cifs //server/share /mountpoint -o credentials=/home/david/mnt/cfile the contents of the credentials file (cfile) is simply: username=your_username password=your_password This may give you the option of putting your_password in " or ' and getting it to work. Of course it just needs to be readable to you. Worth a try. You can also try character codes (your \040, etc.). -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Thank you for the hint at those credential files. :) interestingly THERE the \040 works go figure :} On the other hand the cred-file does work in fstab, too I'm just wondering if the cifs thingy is worth the headache. If cifstab would accept \040 it'd be all nice and fluffy. While the cred-file solves the problem with a space in the password it still doesn't help when there is a space in the remote folder name. Well, at least now I have a way to use fstab without exposing passwords there. Am 14.12.2013 23:29, schrieb David C. Rankin:
On 12/14/2013 01:35 PM, Andreas wrote:
I didn't try your last suggestions, yet, but I found another thing.
I can't mount share via cifstab that has a space in the remote folder name. Thats the same problem.
In /etc/fstab I can replace the space with \040 but cifstab won't work that way.
I haven't tried with spaces, but I have had good luck using a credentials file for cifs mounts:
mount.cifs //server/share /mountpoint -o credentials=/home/david/mnt/cfile
the contents of the credentials file (cfile) is simply:
username=your_username password=your_password
This may give you the option of putting your_password in " or ' and getting it to work. Of course it just needs to be readable to you. Worth a try. You can also try character codes (your \040, etc.).
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/14/2013 08:50 PM, Andreas wrote:
Thank you for the hint at those credential files. :) figure :}
On the other hand the cred-file does work in fstab, too I'm just wondering if the cifs thingy is worth the headache.
If cifstab would accept \040 it'd be all nice and fluffy.
interestingly THERE the \040 works go While the cred-file solves the problem with a space in the password it still doesn't help when there is a space in the remote folder name. Well, at least now I have a way to use fstab without exposing passwords there.
Progress is made in slow but determined steps. Glad to see the credentials file provided the flexibility to handle the pssswd with space inclusions. I had a feeling it would. Handling the remote share_with_space_in_name, is probably easiest handled by calling the 'admin', reminding him that only 'idiots' put spaces in sharesnames and convince him to get rid to the second part of the sharename -- problem solved. If not surely you can use filename escpes and/or quoting to mount those shares -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 15.12.2013 08:40, schrieb David C. Rankin:
Progress is made in slow but determined steps. Glad to see the credentials file provided the flexibility to handle the pssswd with space inclusions. I had a feeling it would. Handling the remote share_with_space_in_name, is probably easiest handled by calling the 'admin', reminding him that only 'idiots' put spaces in sharesnames and convince him to get rid to the second part of the sharename -- problem solved. If not surely you can use filename escpes and/or quoting to mount those shares
I told him though he claims that directory was created by a commercial software to dump log files so he couldn't change the directory name. It's not a special share. The whole drive is shared and on this server I just need the directory with the space in the name. I'll continue mounting it with fstab till cifs gets its act together. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andreas, On Wed, Dec 18, 2013 at 12:05:03AM +0100, Andreas wrote:
Am 15.12.2013 08:40, schrieb David C. Rankin:
Progress is made in slow but determined steps. Glad to see the credentials file provided the flexibility to handle the pssswd with space inclusions. I had a feeling it would. Handling the remote share_with_space_in_name, is probably easiest handled by calling the 'admin', reminding him that only 'idiots' put spaces in sharesnames and convince him to get rid to the second part of the sharename -- problem solved. If not surely you can use filename escpes and/or quoting to mount those shares
I told him though he claims that directory was created by a commercial software to dump log files so he couldn't change the directory name. It's not a special share. The whole drive is shared and on this server I just need the directory with the space in the name.
I'll continue mounting it with fstab till cifs gets its act together.
What's the bug report we need to track this? Please report it via https://bugzilla.samba.org/ and report the ID back here to this thread. In the bug report please reference this thread. Thanks, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
participants (3)
-
Andreas
-
David C. Rankin
-
Lars Müller