LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setuid & file permission (https://www.linuxquestions.org/questions/linux-newbie-8/setuid-and-file-permission-365156/)

Azhrarn 09-20-2005 05:31 AM

Setuid & file permission
 
Hi guys,
I m running Red Hat 9
Trying to setup Amanda (its a real bitch of a program...).

I get this problem:
WARNING: program /usr/local/amanda/sbin/amcheck: not setuid-root

so I found somewhere on the net this solution
chmod u+s ./amcheck
(I may have also run chown on it...)

and it worked.

Now however I have
killpgrp: debug 1 pid 7062 ruid 517 euid 517: start at Tue Sep 20 11:55:11 2005
/usr/local/amanda/libexec/killpgrp: version 2.4.5
killpgrp: error [must be setuid root]

I run chmod & chown and it still gives me the error

If I use setuid it says "setuid root. bash: setuid: command not found"

I'm very confused.
Also, I needed to make a folder accessible to amanda so I chmod it to 777, but I m sure this isn t an ideal solution, how do I set permission only for user amanda?

Thanks a mil, this program is making me go blind
Paul

tkedwards 09-20-2005 09:05 PM

Quote:

Trying to setup Amanda (its a real bitch of a program...).
It sure is. Luckily once you've got it setup and got your head around how it works its pretty trouble-free.

Quote:

If I use setuid it says "setuid root. bash: setuid: command not found"
setuid is not a command, its a permissions setting, which you've already set with your chmod u+s.

Post the output of
Code:

ls -l /usr/local/amanda/sbin/amcheck
I run the amanda commands like this:
Code:

su - #to make sure you're root
su amanda -c "amcheck MyBackupSetName"

Quote:

Also, I needed to make a folder accessible to amanda so I chmod it to 777, but I m sure this isn t an ideal solution, how do I set permission only for user amanda?
Which folder is this? Amanda installs itself as a member of the disk group (at least it did for me on RHEL using Redhat's amanda packages) which means it has access to any file on disk regardless of permissions when doing its backups.


All times are GMT -5. The time now is 09:35 PM.