LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2016, 04:59 PM   #1
penguinbody
LQ Newbie
 
Registered: Jan 2016
Posts: 10

Rep: Reputation: Disabled
Question Turning a Linux user into a role


I've had the idea presented to me of a Linux user that doesn't have an interactive login set up and the password disabled for it to be converted to a 'role' so that other Linux users can link to this role and enable interactive session. I'm looking for resource that can explain how this concept can be implemented? The example given to me is along these lines:

"Give a linux account bash shell and then not set a password for the account (a !! in the password field in /etc/shadow). This disallows direct logins but would allow 'sudo -iu mysql'. This would turn this account into a role which another account linux user has to assume and enforces that account interactive session for the now 'role' account user which can be linked to a person i.e. another linux user.

This is not explained very well, but if anyone here provide further clarity on what I maybe talking about, that would be helpful.
 
Old 07-27-2016, 05:57 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Look at the man page for sudo.

-i = login
-u = specify the user to login as.
 
  


Reply

Tags
user account



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a role and profile to new user in LINUX Harry_Linux008 Linux - Newbie 3 09-03-2010 02:23 PM
RBAC role with Ldap user LinuxLover Solaris / OpenSolaris 5 12-15-2009 02:59 PM
Turning off samba user credentials cache behradb Linux - Server 1 04-23-2009 03:32 AM
Turning off Mail to a User macnut Debian 1 01-21-2006 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration