Trying to add share to /etc/fstab with spaces in password
I'm trying to add a share to /etc/fstab, but the account I need to connect with has spaces in the password, and mount doesn't like it. How do I format this?
//195.212.215.32/myshare /mnt/hdrive cifs exec,iocharset=utf8,username=ralph,password=This password is very long |
Likely you can use a ? where the space would be, or prefix the space with \.
(Normally works for problem filenames.) |
Try \040 for the space characters. That's the way to represent spaces in the mount point directory name. Hopefully it works for the mount options, too.
|
You could try adding the password to a file at /password in the form:
Code:
password=<password> Then use this option instead of "password=": Code:
credentials=/password |
All times are GMT -5. The time now is 11:12 PM. |