- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sudo as another user not as root
Operating System - HP-UX
1753844
Members
7432
Online
108806
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
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
тАО10-28-2003 03:47 PM
тАО10-28-2003 03:47 PM
sudo as another user not as root
sudo by default makes commands run as root.
I need to execute certain commands as another ordinary user.
Post the syntax in the sudoers file.
lazy to check the man pages
Thanks
I need to execute certain commands as another ordinary user.
Post the syntax in the sudoers file.
lazy to check the man pages
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 04:06 PM
тАО10-28-2003 04:06 PM
Re: sudo as another user not as root
This should do it.
-Brian.
# Give userid sysadmin the right to run any
# command from any machine as any user.
sysadmin ALL = (ALL) ALL
# liz is a consultant working for 10 clients.
# Give her the right to run any command as
# if she were one of her clients.
Runas_Alias LIZCLIENTS=andrea,susan,charlie, \
mikeg,jjack,jimk,mjones,bsmith, \
susiep,janjob
liz ALL = (LIZCLIENTS) ALL
-Brian.
# Give userid sysadmin the right to run any
# command from any machine as any user.
sysadmin ALL = (ALL) ALL
# liz is a consultant working for 10 clients.
# Give her the right to run any command as
# if she were one of her clients.
Runas_Alias LIZCLIENTS=andrea,susan,charlie, \
mikeg,jjack,jimk,mjones,bsmith, \
susiep,janjob
liz ALL = (LIZCLIENTS) ALL
When a sys-admin say's maybe, they don't mean 'yes'!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 04:23 PM
тАО10-28-2003 04:23 PM
Re: sudo as another user not as root
User_to_run ALL=(run_as_user) NOPASSWD: "command"
should do it.
should do it.
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 04:27 PM
тАО10-28-2003 04:27 PM
Re: sudo as another user not as root
THis is my sudoers file
still could not do that
root ALL = (ALL) ALL
User_Alias USERS = dtccm,ftccm,cma
Host_Alias POLDEV = 172.16.1.233
Cmnd_Alias TUXEDO = /opt/tuxedo/bin/*
# liz is a consultant working for 10 clients.
# Give her the right to run any command as
# if she were one of her clients.
Runas_Alias TUX=tuxadm
USERS POLDEV = (TUX) NOPASSWD: TUXEDO
i am trying to run the tuxedo commands.
Please revert
still could not do that
root ALL = (ALL) ALL
User_Alias USERS = dtccm,ftccm,cma
Host_Alias POLDEV = 172.16.1.233
Cmnd_Alias TUXEDO = /opt/tuxedo/bin/*
# liz is a consultant working for 10 clients.
# Give her the right to run any command as
# if she were one of her clients.
Runas_Alias TUX=tuxadm
USERS POLDEV = (TUX) NOPASSWD: TUXEDO
i am trying to run the tuxedo commands.
Please revert
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