- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sudo not working for a apecific user
Operating System - HP-UX
1753284
Members
5203
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО04-05-2010 08:57 AM
тАО04-05-2010 08:57 AM
Hi Techiees,
How can we give the sudo privilages to the specific user. where can i put the entry in the suoers file.
Pls help me out!!!!!!!!!
How can we give the sudo privilages to the specific user. where can i put the entry in the suoers file.
Pls help me out!!!!!!!!!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2010 10:03 AM
тАО04-05-2010 10:03 AM
Re: Sudo not working for a apecific user
Hello,
Use visudo command to edit the sudo file. The sudo file should normally be "/etc/sudoers".
For more details, check man visudo.
Regards,
Use visudo command to edit the sudo file. The sudo file should normally be "/etc/sudoers".
For more details, check man visudo.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2010 11:09 AM
тАО04-05-2010 11:09 AM
Re: Sudo not working for a apecific user
the sudo access in the sense root access right ?
so how can i add the entry for the specific one in that sudoers file.
so how can i add the entry for the specific one in that sudoers file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2010 12:26 PM
тАО04-05-2010 12:26 PM
Solution
Hi,
Suppose you want to add user "test" in sudo file. Depending on which command you want to allow to the user, there are many types of entries in the sudo file. Let say you want to allow to "test" user to execute all commands which need root privilegies. The entry will be:
Examples of entry in sudo file
test ALL = ALL
test ALL = NOPASSWD: ALL
Two ways to perform the task:
1) If you have root password, log into the system as root and type visudo
2) If you don't have root password but you have an account which is allowed to use sudo. Log into the system with that user and do the following:
sudo su -
visudo
After you have typed visudo, you can add one of the entry given in the examples:
In the first example, user will be prompted to fill his password
In the second example, no password will be required.(Be carefull with this one)
Note that visudo command read the sudo file. You don't need to edit it manually. visudo will do the job. Don't forget to check man visudo for more details.
Regards,
Steve
Suppose you want to add user "test" in sudo file. Depending on which command you want to allow to the user, there are many types of entries in the sudo file. Let say you want to allow to "test" user to execute all commands which need root privilegies. The entry will be:
Examples of entry in sudo file
test ALL = ALL
test ALL = NOPASSWD: ALL
Two ways to perform the task:
1) If you have root password, log into the system as root and type visudo
2) If you don't have root password but you have an account which is allowed to use sudo. Log into the system with that user and do the following:
sudo su -
visudo
After you have typed visudo, you can add one of the entry given in the examples:
In the first example, user will be prompted to fill his password
In the second example, no password will be required.(Be carefull with this one)
Note that visudo command read the sudo file. You don't need to edit it manually. visudo will do the job. Don't forget to check man visudo for more details.
Regards,
Steve
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP