Re: su amanda doesn't have permissions
2003-08-08 18:38:42
Also sprach S. Keel (Fri 08 Aug 02003 at 03:09:49PM -0700):
> Hopefully someone here can help...I've been working through the
> Frankenlinux setup instructions along with the Using Amanda Chapter at
> Backupcentral to setup my site, but have run into a problem when I try to
> run...
>
> su amanda -c "amlabel daily DailySet1-001" ...as root
>
> bash reports that it cannot find 'amlabel'
>
> 'amlabel' is installed into /usr/local/sbin, so I went ahead and added
> that path to my amanda user's $PATH environment variable, but it still
> doesn't work. I'm hesitant to make changes to ENV_PATH and ENV_SUPATH in
> /etc/login.defs becuase I don't want every user to have elevated
> privileges.
>
> Does anyone have a suggestion.
Preferably:
sudo -u backup amlabel daily DailySet1-001
Alternatively (untested):
su - amanda -c "amlabel daily DailySet1-001"
--
Best Regards,
mds
mds resource
877.596.8237
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know. The more I know, the more I know I don't know . . .
--
pgpXrTxeoQ4Pq.pgp
Description: PGP signature
|
|
|