LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   User Profiles (https://www.linuxquestions.org/questions/linux-newbie-8/user-profiles-942959/)

jimblim 05-02-2012 12:35 PM

User Profiles
 
We are switching to Linux from Unix servers. In Unix, the profile of the user is being used no matter what sudo account they log into after the initial log in. How do I get Linux to use the user's profile after executing a sudo command?

MensaWater 05-02-2012 12:40 PM

I suspect this isn't an issue with sudo as it would be the same on both UNIX and Linux. You might want to verify the settings you've made in sudoers on UNIX are the same as the ones you did in sudoers on Linux.

Also you talk about other accounts. Are the users doing "sudo su - <account>"? If so the issue is they should just use "sudo su <account>". It is the "-" that makes su invoke the target users environment rather than keeping their own. (This is a function of the su command NOT sudo itself.)

Kustom42 05-02-2012 12:41 PM

Can you elaborate a bit more on what you are meaning by using the user profile after sudo? Is this a sudo su - differentuser command or a sudo ls style command? What are you looking to retain from the users environment? These can all be set in the /etc/sudoers file.

Take a look at: http://www.gratisoft.us/sudo/sudoers.man.html

Review the env_keep and env_reset variables, a good place to start.


All times are GMT -5. The time now is 03:59 PM.