LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2005, 06:31 AM   #1
Azhrarn
Member
 
Registered: Aug 2005
Location: Europe
Posts: 63

Rep: Reputation: 15
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
 
Old 09-20-2005, 10:05 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Useful article: "Linux File & Directory Permission Mistakes" sundialsvcs Linux - Security 1 08-15-2005 12:50 PM
Linux File permission & the sticky bit hq4ever Linux - Newbie 8 07-02-2004 04:46 PM
file permission Nechos Linux - Software 2 10-04-2003 04:31 PM
file permission maildhanraj Linux - General 3 04-05-2003 05:06 AM
file permission !!! hitesh_linux Linux - General 5 03-25-2003 01:27 PM


All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration