1833461 Members
3104 Online
110052 Solutions
New Discussion

User with Admin Rights

 
SOLVED
Go to solution
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
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

hi,

What edition to be done.

check thebelow file.

admin:UAXJtsEWLA5uw:0:20::/home/admin:/sbin/sh

Regards,
Suriya.
Johnson Punniyalingam
Honored Contributor

Re: User with Admin Rights

Do you want to remove the "admin" user account ..?

vipw

admin:UAXJtsEWLA5uw:0:20::/home/admin:/sbin/sh
Esc and dd -> to erase line by doing this you will able remove admin account

:wq!
Problems are common to all, but attitude makes the difference
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

Thanks Johnson,

To crete the user with admin account.

which groupid i have to give and which login profile i should give?

Thanks,
Suriya
Johnson Punniyalingam
Honored Contributor

Re: User with Admin Rights

Your welcome.

>>> To crete the user with admin account.

>>>>which groupid i have to give and which login profile i should give?

what is your purpose or Goal ..? for above
Problems are common to all, but attitude makes the difference
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

my purpose is to create the useraccount with admin privilages.

The user can able to shutdown and reboot the server and able to start and stop the oracle packages and should able to install softwares.

Regards,
Suriya
Johnson Punniyalingam
Honored Contributor

Re: User with Admin Rights

>>>>>>my purpose is to create the useraccount with admin privilages.

The user can able to shutdown and reboot the server and able to start and stop the oracle packages and should able to install softwares.<<<<<<<

It has been discussed on above thread,

you can achieve by SUDO, -> Best apporach

And Noticed that you have already created user account admin (with admin privileges)

>>>># id admin
uid=0(root) gid=20(users)



Problems are common to all, but attitude makes the difference
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

And Noticed that you have already created user account admin (with admin privileges)

>>>># id admin
uid=0(root) gid=20(users)

I already created the user id admin (uid=0) but it does not have the admin privilages.

Regards,
Suriya.
Johnson Punniyalingam
Honored Contributor

Re: User with Admin Rights

>>>>I already created the user id admin (uid=0) but >>>it does not have the admin privilages.

how did you found that it does not have admin privileges..??
Problems are common to all, but attitude makes the difference
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

I'm not able to start and stop the oracle package, not able to reboot the server, cmviewcl is not working, unable to create the new user from this admin account.
I told these all before itself.

Regards,
Suriya
Johnson Punniyalingam
Honored Contributor

Re: User with Admin Rights

well... I couldn't find... let start from basic

Login to server using uid=0 admin account

can post output of the command.

# ioscan -fnkC lan

or

# sam
Problems are common to all, but attitude makes the difference
Suriya Prakash
Regular Advisor

Re: User with Admin Rights

Hi Johnson,

Check this, its not found. i think only user with admin privilages can get the result.

# ioscan -fnkC lan
sh: ioscan: not found.
# sam
sh: sam: not found.
#

Regards,
Suriya.
Dennis Handly
Acclaimed Contributor

Re: User with Admin Rights

# ioscan -fnkC lan
sh: ioscan: not found.

This just says you don't have your .profile set up correctly.
PATH=/usr/sbin:/usr/bin:$PATH

What does "echo ~" show?