1834903 Members
2559 Online
110071 Solutions
New Discussion

Re: Access

 
SOLVED
Go to solution
Karthick K S
Frequent Advisor

Access

1)How to give access for User Creation/Deletion to Normal User

2)How to check number of times users failed to login
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: Access

For your first question, I would suggest using restricted SAM. Man sam and look for the -r section.

For the second, take a look at lastb.


Pete

Pete
Muthukumar_5
Honored Contributor

Re: Access

1) You have to change permission of normal user with sam as,

sam -r

choose normal user account and it's Has SAM
Privileges has to be Yes for Creation and Deletion.

2) lastb | grep 'username' | wc -l --> will give that information.

hth.
Easy to suggest when don't know about the problem!
Bharat Katkar
Honored Contributor

Re: Access

Hi,

1. sam -r
2. lastb

See man sam, man lastb and man last.

Regards,
You need to know a lot to actually know how little you know
Karthick K S
Frequent Advisor

Re: Access

Thanks

But i Have to give thro' Commands

For eg: test1 (User name)

i want to gives acesss for user creation/modification and deletion to test1 user

how to do
Muthukumar_5
Honored Contributor
Solution

Re: Access

Login as root user.

# sam -r

It will go to the user area with all user accounts.

# select user by press space on it

# Press Ok
# It will show few menu's like SAM Accounts for Users and Groups.. choose the privillage you want to give and go to Actions part and press Enable to give the permission to change user account.

# press ok and come out.

It will work now.
Easy to suggest when don't know about the problem!
Karthick K S
Frequent Advisor

Re: Access

without SAM not possible to give access

Pete Randall
Outstanding Contributor

Re: Access

Without using restricted SAM, the only way I can think of would be to write a setuid script that would run as root and invoke the useradd command.


Pete

Pete
Karthick K S
Frequent Advisor

Re: Access

Thanks for all

I have one more doubt
1) how to check unauthorised users access or using some services on HPUX 11.11



Karthick K S
Frequent Advisor

Re: Access

Thanks all