• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

Give users access to su to generic account, but login as themselves with generic disabled?

Hi,

What would be the easiest way to accomplish this.

For security, I need users to login as themselves; however, they need to be able to access a generic account we have.   Can I set it up so they can login as themselves, then su to the generic account, but disable login with the generic account so they are forced to login as themselves?

Thanks

0
jkrech17
Asked:
jkrech17
  • 2
1 Solution
 
chris_calabreseCommented:
Sounds like you want to use sudo. You can create the generic account with no valid password and put in rules about who can sudo to that account. You can also restrict people to running specific commands as that user rather than getting general access.
0
 
jkrech17Author Commented:
Would there be a way to allow them to ssh as themselves and su as the generic account, but not ssh as the generic account?
0
 
jkrech17Author Commented:
Thanks, I was able to deny ssh to the generic account; however, still allow them to su.  

Thanks for the input and I believe your solution would work too.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now