LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-24-2014, 10:42 PM   #1
apj
LQ Newbie
 
Registered: Apr 2014
Location: India
Distribution: ubuntu , CentOS , Redhat , AIX
Posts: 25

Rep: Reputation: Disabled
suders permissions


I have set a 0 UID for normal user to give super user access to that user but i want to restrict that user to use useradd command with -o option. That user can execute useradd but not with -o.

how to do??
 
Old 09-25-2014, 12:32 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
This link may help you with your question. Read it and see if it does.
jdk
 
Old 09-25-2014, 12:45 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you must not set 0 uid for a normal user, but use sudo. the 0 uid is special and means full and unrestricted access to everything. The system does not care about the username but the uid (when checks the access right)
 
Old 09-25-2014, 09:52 AM   #4
apj
LQ Newbie
 
Registered: Apr 2014
Location: India
Distribution: ubuntu , CentOS , Redhat , AIX
Posts: 25

Original Poster
Rep: Reputation: Disabled
suders permissions

thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Samba and permissions ( permissions seems ok but wont work anyway ) spooksman Linux - Networking 1 04-10-2014 09:58 AM
setfacl changes group permissions; giving another user rw permissions secretlydead Linux - Server 4 09-22-2012 11:12 PM
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 09:06 AM
[SOLVED] Lack basic understanding of permissions(apache permissions problem) cK` Linux - Newbie 7 04-08-2010 11:49 PM
Syntax Error Suders file Asteroid Linux - General 1 08-03-2007 02:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 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