When configuring a workstation backup, the user password to access the share can't contain a comma character. Step to reproduce the problem: 1) Backup or Restore 2) Select "Configure workstation backup" 3) Complete the field using a user name like "mario" and password "mario,1234" 4) Execute and Verify backup fails because the mount command can't handle the comma inside the password. From 'man smbmount': BUGS Passwords and other options containing , can not be handled. For passwords an alternative way of passing them is in a credentials file or in the PASSWD environment. While is unusual to have a comma in the user name, I think this can happens in passwords.
Closing Duplicates, Wontfix and Invalids
(In reply to comment #15) > (In reply to comment #14) > > Gavin are you sure this is a duplicate? > > Yes, as both are related to the password box in the backup to workstation panel > that cannot contain certain characters. I thought it was a dup, it is a case of the panel accepting a password that is not accepted by mount.cifs (rather than samba). I just didn't remember/find this bug number before Gav.
(In reply to comment #14) > Gavin are you sure this is a duplicate? Yes, as both are related to the password box in the backup to workstation panel that cannot contain certain characters.
(In reply to comment #13) > Marking as a dup of bug 4850 > > *** This bug has been marked as a duplicate of bug 4850 *** Gavin are you sure this is a duplicate? Are comma's not allowed in samba passwords?
Marking as a dup of bug 4850 *** This bug has been marked as a duplicate of bug 4850 ***
The mount man page doesn't tell us how to quote , in the options string. We'd need to look in the source code to find out whether there is such a method. If there isn't, then the only choice looks to be to not allow , in the password.
(In reply to comment #10) > Confirming that this occurs with DAR on SME7. (so moving it) > > A password such as T.est00 works > A password such as T,est00 fails Looking at submitted patches I doubt if it is really necessary to set the password to a variable, I think we can also solve it by quoting a little differently but have not tried. What does it do when you have a comma in your password and you change: if(system("/bin/mount", "-t", $smbfs, "-o", "username=$smbuser,password=$smbpass", $smbshare, "/mnt/backup_smb") == 0) to if(system("/bin/mount", "-t", $smbfs, "-o", 'username="$smbuser",password="$smbpass"', $smbshare, "/mnt/backup_smb") == 0) (It seems bugzilla messes a little with the line ends :( )
Confirming that this occurs with DAR on SME7. (so moving it) A password such as T.est00 works A password such as T,est00 fails This is in the email from the failed backup Mounting backup shared directory 192.168.0.254/temp *** No backup allowed or error during backup *** Error while mounting 192.168.0.254:temp : mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) And from /var/log/messages May 14 09:27:02 sme7test1 kernel: CIFS: Unknown mount option est00 May 14 09:27:02 sme7test1 kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE May 14 09:27:02 sme7test1 kernel: CIFS VFS: Send error in SessSetup = -13 May 14 09:27:02 sme7test1 kernel: CIFS VFS: cifs_mount failed w/return code = -13 Note: Unknown mount option est00 Here it has taken the est00 from the password after the comma
Re-opening, as I expect this affects DAR backup to workstation in latest SME server as well. We should check what happens if comma is included in password. Filippo, are you going to publish your improvements?
Closing Invalids
Bug do not refers to sme software. FTR, the backup lib I mention is introduced in bug 3209.
The patch is for an experimental version of the backup that Federico was working on and the bug had to be opened in our internal bug tracker.
The problem is relative to our internal version of SME Server (NethService). I don't know if dar has the same problem. Sorry for the mistake.
Re-opening, I don't see anything invalid here, except that Giacomo isn't making it clear where the problem lies and what he is patching. I assume that it is the experimental DAR addition to the backup panel. Perhaps it is in a contrib. In either case, we need to keep the bug open, and just move to the correct section of the bug tracker.
Wrong bugtracker.
Created attachment 2100 [details] Patch to handle correctly the password Patch for file /sbin/e-smith/smb_backup
Created attachment 2099 [details] Patch to handle correctly the password Patch for file /etc/e-smith/web/functions/backup