Re: user permissions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 4, 2008 at 10:20 PM, Madan Thapa <madan.feedback@xxxxxxxxx>wrote:

>
>
> On Thu, Dec 4, 2008 at 10:08 PM, Rohit khaladkar <
> rohit.khaladkar@xxxxxxxxx> 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.
>>
>
>
>
> ----------------------------------------------------------------------------------------
> Well,  sudousers is the file to check for.
>


In case you want to restrict all except root user from creating accounts,
following should work:

>
> chmod 750 /usr/sbin/useradd
>
>
> example:-
> -----------------
> server5@server5 [~]# ll /usr/sbin/useradd
> -rwxr-x---  1 root root 56232 Jul 25 11:36 /usr/sbin/useradd*
> server5@server5 [~]# /usr/sbin/useradd testing
> -bash: /usr/sbin/useradd: Permission denied
> server5@server5 [~]#
>
>
>
>
>
>
>
>
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux