1753640 Members
5209 Online
108798 Solutions
New Discussion юеВ

User with Admin Rights

 
SOLVED
Go to solution
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

Hi,

See the below result.

I logged in as root

# usermod -g 0 admin
Login admin is currently in use

There is no file called /tcb in root.

so its not a trusted system.

#ps -ef | grep -i admin
the above command writen nothing.
Jayakrishnan G Naik
Trusted Contributor

Re: User with Admin Rights

Hi Suriya,

You are root now. you changed the group.
have you set the passwd for admin?
if done, have you logged in with admin and its password?

Login and try first. Now try some admin commands.


Regards
Jayakrishnan G Naik
Dennis Handly
Acclaimed Contributor

Re: User with Admin Rights

>I logged in as root
># usermod -g 0 admin
>Login admin is currently in use
>#ps -ef | grep -i admin
>the above command writes nothing.

You'll have to use the -F option or use vipw(1m).
Jayakrishnan G Naik
Trusted Contributor

Re: User with Admin Rights

Hi Suriya

When you are logged in with admin, what does the following command outputs show?

#who
#w
#id

Regards
Jayakrishnan G Naik
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

Dear All,

First tell me how to delete the user account admin.
i set the password.
i'm getting the error while trying to delete the user. "Login admin is currently in use".

Thanks,
Suriya
Jayakrishnan G Naik
Trusted Contributor

Re: User with Admin Rights

Hi suriya

Can you give the output of the commands I mentioned?

# who
# w
# id
# id admin

Regards
Jayakrishnan G Naik
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

Hi,

Check the below results.

It taken by login as admin.

# who
root pts/ta Nov 23 11:44
admin pts/tb Nov 23 11:45
# w
11:45am up 85 days, 1:35, 2 users, load average: 0.01, 0.00, 0.00
User tty login@ idle JCPU PCPU what
root pts/ta 11:44am -sh
admin pts/tb 11:45am -sh
# id
uid=0(root) gid=20(users)
# id admin
uid=0(root) gid=20(users)
#

Regards,
Suriya
Dennis Handly
Acclaimed Contributor

Re: User with Admin Rights

>tell me how to delete the user account admin.
>I'm getting the error while trying to delete the user. "Login admin is currently in use".

You can use vipw(1m) and simply remove the user in question.

>It taken by login as admin.

Then you are done, admin has root access.
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

You can use vipw(1m) and simply remove the user in question.

how should i use the vipw(1m), whats for this command?

what to do after enter this command?

Regards,
Suriya
Johnson Punniyalingam
Honored Contributor

Re: User with Admin Rights

>>>how should i use the vipw(1m), whats for this command?

vipw - edit the password file change

man vipw -> for more information

>>>what to do after enter this command?

in your earlier post you have asked
>tell me how to delete the user account admin.
>I'm getting the error while trying to delete the user. "Login admin is currently in use".

so if your using vipw -> you do the changes even though user is currently in use.
Problems are common to all, but attitude makes the difference