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-fork.c

    r2224 r2225  
    134134
    135135    if (bkpinfo->nfs_user != NULL) {
    136         mr_asprintf(&tmp1, "sudo -u %s %s", bkpinfo->nfs_user, basic_call);
     136        mr_asprintf(&tmp1, "su - %s -c \"%s\"", bkpinfo->nfs_user, basic_call);
    137137    } else {
    138138        mr_asprintf(&tmp1, "%s", basic_call);
Note: See TracChangeset for help on using the changeset viewer.