LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Operation not permitted (https://www.linuxquestions.org/questions/linux-general-1/operation-not-permitted-4175454507/)

tapi 03-18-2013 05:58 AM

Operation not permitted
 
Hie iam receiving this error, iam using RHEL 5.3

Starting BackupPC: runuser: cannot set groups: Operation not permitted

I can start the service as root user but i cannot start it as backuppc. i have changed the permission on the script from root to backuppc. But still i cannot start the service backuppc as backuppc user

eklavya 03-18-2013 06:01 AM

Quote:

Originally Posted by tapi (Post 4913760)
Hie iam receiving this error, iam using RHEL 5.3

Starting BackupPC: runuser: cannot set groups: Operation not permitted

I can start the service as root user but i cannot start it as backuppc. i have changed the permission on the script from root to backuppc. But still i cannot start the service backuppc as backuppc user

Do not put same questions in multiple forums.
You have put this here already
http://www.linuxquestions.org/questi...ed-4175454506/

tapi 03-18-2013 06:04 AM

operation not permitted
 
user backuppc has groups apache and backuppc

eklavya 03-18-2013 06:11 AM

Have you started the service using sudo?
If it is regular user, it should use sudo.

tapi 03-18-2013 06:13 AM

Iam using RHEL 5.3

---------- Post added 03-18-13 at 01:14 PM ----------

the service backuppc is not running

eklavya 03-18-2013 06:25 AM

Does it give this error too?
BackupPC startup failed

How do you start the service?

tapi 03-18-2013 06:28 AM

[backuppc@machine_name ~]$ /etc/init.d/backuppc start
Starting BackupPC: runuser: cannot set groups: Operation not permitted
[FAILED]

eklavya 03-18-2013 06:40 AM

and what does it give if you enter
$ sudo /etc/init.d/backuppc start
or
$ sudo service backuppc start

tapi 03-18-2013 07:09 AM

Iam putting my root password by still giving the below error

[backuppc@wanderers ~]$ sudo /etc/init.d/backuppc start
Password:
Sorry, try again.

eklavya 03-18-2013 07:19 AM

Do not put root password, see what is it saying.
Put your user password there.

tapi 03-18-2013 07:21 AM

[backuppc@wanderers ~]$ sudo /etc/init.d/backuppc start
Password:
backuppc is not in the sudoers file. This incident will be reported.

eklavya 03-18-2013 07:24 AM

Open the file /etc/sudoers
Add following line in it
Code:

backuppc        ALL=(ALL) ALL

tapi 03-18-2013 07:30 AM

thank you very much it's working


All times are GMT -5. The time now is 10:08 AM.