user permissions.
Madan Thapa
madan.feedback at gmail.com
Thu Dec 4 16:50:39 UTC 2008
On Thu, Dec 4, 2008 at 10:08 PM, Rohit khaladkar
<rohit.khaladkar at gmail.com>wrote:
> Hi All!
> Just wanted to know if there is a way to find out if the logged in user has
> the permission to create a new user in Red hat linux. I guess one way
> would
> be to check in the sudoers file.
>
> Please let me know if anyone has any other ideas.
>
----------------------------------------------------------------------------------------
chmod 750 /usr/sbin/useradd
example:-
-----------------
server5 at server5 [~]# ll /usr/sbin/useradd
-rwxr-x--- 1 root root 56232 Jul 25 11:36 /usr/sbin/useradd*
server5 at server5 [~]# /usr/sbin/useradd testing
-bash: /usr/sbin/useradd: Permission denied
server5 at server5 [~]#
More information about the redhat-list
mailing list