LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-08-2012, 02:46 PM   #1
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Rep: Reputation: Disabled
Sorry, user deploy is not allowed to execute '/bin/mkdir 1' as root on localhost


Hello,

I created a user who should have rights to work under /opt/lampp/htdocs directory. This directory is having below rights.

drwxr-xr-x 184 deploy deploy 12288 Dec 3 17:42 htdocs

i created a user deploy which belongs to deploy group
uid=502(deploy) gid=502(deploy) groups=502(deploy) context=root:system_r:hotplug_t:SystemLow-SystemHigh

but now when user deploy going to create any directory/files under /opt/lampp/htdocs, is giving the below error

Sorry, user deploy is not allowed to execute '/bin/mkdir 1' as root on localhost

Please let me know how to fix this.

Thanks,
Sunny
 
Old 09-08-2012, 04:42 PM   #2
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by sunnysthakur View Post
Hello,

I created a user who should have rights to work under /opt/lampp/htdocs directory. This directory is having below rights.

drwxr-xr-x 184 deploy deploy 12288 Dec 3 17:42 htdocs

i created a user deploy which belongs to deploy group
uid=502(deploy) gid=502(deploy) groups=502(deploy) context=root:system_r:hotplug_t:SystemLow-SystemHigh

but now when user deploy going to create any directory/files under /opt/lampp/htdocs, is giving the below error

Sorry, user deploy is not allowed to execute '/bin/mkdir 1' as root on localhost

Please let me know how to fix this.

Thanks,
Sunny
Hi Sunny,

Can you please give the exact command you are using ?

I believe you are using "sudo", if yes please post output of "sudo -l".

Last edited by vikas027; 09-08-2012 at 04:46 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mkdir: cannot creat directory. How to enable mkdir for user in usb dir? Foxbat1155 Linux - Newbie 13 02-16-2012 11:20 AM
[SOLVED] users cant execute program in bin but root can ndaka123488 Linux - Server 4 12-05-2011 06:36 PM
sudo: "user not allowed to execute" jjonas Linux - Security 6 07-05-2007 05:46 AM
ssh access allowed only to root user? zovres Linux - Newbie 5 09-25-2003 04:19 PM
Not allowed to play kjezz game on non-root user's account rdaves@earthlink.net Linux - General 3 07-13-2001 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:47 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
Open Source Consulting | Domain Registration