user permissions.

krishna kilari skrishna.unix at gmail.com
Wed Dec 10 15:17:27 UTC 2008


even if someone has permission on /usr/sbin/useradd.But if he cant get in to
the dir /usr/sbin . Then he cant execute the useradd command.

On Wed, Dec 10, 2008 at 2:50 AM, duncan (sadc) <duncan at sadc.info> wrote:

> check sudoersls -l /usr/sbin/useradd -- see the permission like user and
>> group
>> cat /etc/group -- see users in which group
>>
>> On Thu, Dec 4, 2008 at 11:58 AM, mark <m.roth2006 at rcn.com> wrote:
>>
>>  Madan Thapa wrote:
>>> > 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
>>> >
>>> Which would work if the logged-in user has root among their groups. If
>>> not,
>>> no.
>>>
>>>
>>>  i also have almost the same problem. Can someone verify if these group
> entries are correct . Took them from /etc/group
> root : x : 0 : root
> bin : x : 1 : root,bin,daemon
> sys : x : 3 : root,bin,adm
> adm : x : 4 : root,adm,daemon
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



More information about the redhat-list mailing list