[opensuse] How to mask a blank in the password in /etc/samba/cifstab ?
Hi OpenSuse 13.1 64bit I'd like to mount a windows share with the cifs deamon instead of /etc/fstab. The problem seems to be that there is a space in the password of the remote share. In /etc/fstab one can mask spaces with \040. That way I can mount the share but I don't want to expose the password to anyone that can read /etc/fstab. I tried the same in /etc/samba/cifstab but cifs won't start. I tried to put the password in "" and ''. Either /etc/init.d/cifs status dumps some commandline parameter or it reports a permission denied for this share. cifs stays "unused" I tried another useraccount on the windiows-box that has a password without space. This works with cifstab. What's the trick? :} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi, On Sat, Dec 14, 2013 at 06:06:34PM +0100, Andreas wrote:
OpenSuse 13.1 64bit
I'd like to mount a windows share with the cifs deamon instead of /etc/fstab. The problem seems to be that there is a space in the password of the remote share.
In /etc/fstab one can mask spaces with \040.
That way I can mount the share but I don't want to expose the password to anyone that can read /etc/fstab.
I tried the same in /etc/samba/cifstab but cifs won't start. I tried to put the password in "" and ''. Either /etc/init.d/cifs status dumps some commandline parameter or it reports a permission denied for this share. cifs stays "unused"
I tried another useraccount on the windiows-box that has a password without space. This works with cifstab.
What's the trick? :}
Have you tried to mount the same share on the command line by calling mount -t cifs -o username=<user_name> //<server_name>/share and exporting the password beforehand to the PASSWD environment variable. See man mount.cifs for all the details and more options. If that works but the cifstab mechanism doesn't please file a bug report. The very same applies if mounting from the command line doesn't work. In both cases we need to investigate further. Please report it at bugzilla.novell.com as described at http://en.opensuse.org/Samba in the section 'Samba bug reporting and advanced debugging information' You'll find a section titled 'Debugging cifs vfs client' please provided the information requested there and be this nice to check if the instructions are still working. :) If you assign the defect directly to samba-maintainers@suse.de you might accelerate the process (a bit). Add a reference to this thread as available from the openSUSE listserver archive (http://lists.opensuse.org/opensuse/2013-12/msg00535.html) to your defect report and also add a link to your defect report back to this thread with your reply. Cheers, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On Sat, 2013-12-14 at 18:06 +0100, Andreas wrote:
Hi
OpenSuse 13.1 64bit
I'd like to mount a windows share with the cifs deamon instead of /etc/fstab. The problem seems to be that there is a space in the password of the remote share.
Hi Don't rely on the user to mount the share. Use the machine or host key to automount the share -omultiuser. Leave the user to authenticate herself. HTH L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andreas
-
Lars Müller
-
lynn