Changeset 2225


Ignore:
Timestamp:
Jun 17, 2009, 4:47:09 AM (10 years ago)
Author:
bruno
Message:

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

Location:
branches/2.2.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo-doc/mondoarchive.8

    r2224 r2225  
    125125If your NFS server only accept write from a backup user, you may specify it with the syntax:
    126126.B user@machine:/mount/path
    127 and mondoarchive will try to do its best to support it using sudo.
     127and mondoarchive will try to do its best to support it.
    128128
    129129.TP
  • 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);
  • 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.