Ignore:
Timestamp:
Jun 17, 2009, 4:47:09 AM (12 years ago)
Author:
Bruno Cornec
Message:

No need to use sudo for NFS user, just use su and avoid any passwd issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-cli.c

    r2224 r2225  
    12411241        mr_asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir);
    12421242        if (bkpinfo->nfs_user) {
    1243             sprintf(tmp, "sudo -u %s echo hi > %s", bkpinfo->nfs_user, tmp1);
     1243            sprintf(tmp, "su - %s -c \"echo hi > %s\"", bkpinfo->nfs_user, tmp1);
    12441244        } else {
    12451245            sprintf(tmp, "echo hi > %s", tmp1);
Note: See TracChangeset for help on using the changeset viewer.