LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-02-2012, 01:35 PM   #1
jimblim
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Rep: Reputation: Disabled
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?
 
Old 05-02-2012, 01:40 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,681
Blog Entries: 14

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
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.)
 
Old 05-02-2012, 01:41 PM   #3
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
User profiles darkangel9690 Linux - Newbie 3 03-05-2007 05:28 AM
user profiles Thanotos Slackware 15 03-14-2006 11:38 AM
User profiles stuff Plankt Slackware 4 01-10-2005 12:33 PM
Firefox User profiles.. toffi22 Linux - Software 2 12-04-2004 08:26 AM
User Profiles Question r_a_smith3530 Linux - Newbie 1 11-27-2003 02:16 PM


All times are GMT -5. The time now is 07:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration