- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User with Admin Rights
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 05:01 AM
тАО11-22-2010 05:01 AM
Re: User with Admin Rights
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 05:42 AM
тАО11-22-2010 05:42 AM
Re: User with Admin Rights
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 10:45 AM
тАО11-22-2010 10:45 AM
Re: User with Admin Rights
># 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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 07:13 PM
тАО11-22-2010 07:13 PM
Re: User with Admin Rights
When you are logged in with admin, what does the following command outputs show?
#who
#w
#id
Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 08:30 PM
тАО11-22-2010 08:30 PM
Re: User with Admin Rights
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 09:58 PM
тАО11-22-2010 09:58 PM
Re: User with Admin Rights
Can you give the output of the commands I mentioned?
# who
# w
# id
# id admin
Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 10:12 PM
тАО11-22-2010 10:12 PM
Re: User with Admin Rights
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 11:52 PM
тАО11-22-2010 11:52 PM
Re: User with Admin Rights
>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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 12:35 AM
тАО11-23-2010 12:35 AM
Re: User with Admin Rights
how should i use the vipw(1m), whats for this command?
what to do after enter this command?
Regards,
Suriya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 12:44 AM
тАО11-23-2010 12:44 AM
Re: User with Admin Rights
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.