LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-07-2012, 02:14 AM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 177

Rep: Reputation: 0
Permission denied. CAP_SYS_ADMIN necessary


hello,
i have this error on my server ( debian lenny)
Permission denied. CAP_SYS_ADMIN necessary

PLZ help..
 
Old 06-08-2012, 12:12 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Quote:
Originally Posted by hesisaboury View Post
Permission denied. CAP_SYS_ADMIN necessary
Basically one of the capabilities commonly only assigned to root processes, see 'man capabilities'. Knowing the error message is nice but for troubleshooting purposes it would be more interesting how you encountered it (I mean: doing what exactly)...
 
Old 06-09-2012, 01:09 AM   #3
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 177

Original Poster
Rep: Reputation: 0
thank u for your attention,
i sometimes get this error while installing drbd8-utils and drbd8-source and sometimes when i'm testing installed drbd ,.
i think it's kernel bug.am i wright?
 
Old 06-09-2012, 03:21 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
I don't know what causes this in your case as you have not posted any specific commands but it's not a kernel bug. Capabilities are at the core of Discretionary Access Control or DAC for short, the compartmentalization features that separate UID==0 from other users.
 
Old 06-09-2012, 05:34 AM   #5
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 177

Original Poster
Rep: Reputation: 0
i get this error in two situation(for info : i use two virtual server for failover)

1- apt-get install drbd8-utils drbd8-source
2- after installing pacemaker and config for drbd
restarting server may help... here is my config
node server1
node server2
primitive drbd_mars ocf:heartbeat:drbd \
params drbd_resource="mydrbd" \
op start interval="0" timeout="240s" \
op monitor interval="20s" timeout="20s" \
op stop interval="0" timeout="100s"
primitive fs_mars ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/mnt/rep" fstype="ext3" \
op start interval="0" timeout="60s" \
op monitor interval="20s" timeout="40s" \
op stop interval="0" timeout="60s"
primitive vip ocf:heartbeat:IPaddr2 \
params ip="192.168.56.200" nic="eth0" cidr_netmask="24" \
op start interval="0s" timeout="60s" \
op monitor interval="5s" timeout="20s" \
op stop interval="0s" timeout="60s"
ms ms_drbd_mars drbd_mars \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation mars_on_drbd inf: fs_mars ms_drbd_mars:Master
order fs_after_drbd inf: ms_drbd_marsromote fs_mars:start
property $id="cib-bootstrap-options" \
dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
no-quorum-policy="ignore" \
stonith-enabled="false"
rsc_defaults $id="rsc-options" \
resource-stickiness="INFINITY" \
migration-threshold="1"


Best Regards,
 
Old 06-10-2012, 12:58 AM   #6
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 177

Original Poster
Rep: Reputation: 0
i solved the problem by compiling DRBD from source. no more CAP_SYS_ADMIN error....

thank u.
 
Old 06-10-2012, 04:55 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Well done.
 
  


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
[SOLVED] Permission denied nellaisamurai Linux - Desktop 3 11-27-2010 08:18 PM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
permission denied arcturus Linux - Networking 2 11-08-2005 02:30 PM
Permission denied JanDeMan Linux - Newbie 4 04-17-2004 06:03 AM


All times are GMT -5. The time now is 07:36 PM.

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