Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Changing user with reading the .profile
Results 1 to 4 of 4

Thread: Changing user with reading the .profile

  1. #1

    Changing user with reading the .profile

    Hi, I am trying to figure out how to su to a certain user but have it read that users .bash_profile. In other words. If I am root and want to change to joe ( su joe ), I want it to read joe's .bash_profile. The reason for this is all the users have a menu that pops up when they log in. My user name and root do not have this menu. I hope that makes sense. Thanks.

  2. #2

    Re:Changing user with reading the .profile

    Code:
    su - username
    That should do what you want.

    If that isn't what you want let me know.

  3. #3

    Re:Changing user with reading the .profile

    Perfect! Thanks pwrhouse.

  4. #4

    Re:Changing user with reading the .profile

    No problem, glad I could help.

Similar Threads

  1. What are you reading?
    By halfpipe10 in forum General Chat
    Replies: 2
    Last Post: 02-11-2006, 03:33 AM
  2. Reading variables...
    By Gary Penner in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 02-25-2005, 10:35 PM
  3. reading .html and not .php
    By pinehead in forum Linux - General Topics
    Replies: 4
    Last Post: 11-23-2002, 06:09 PM
  4. Changing user login to GUI
    By rolltidega in forum Redhat / Fedora
    Replies: 4
    Last Post: 10-16-2002, 08:23 PM
  5. CD-ROM reading
    By dgwebstuff in forum Linux - General Topics
    Replies: 11
    Last Post: 05-24-2002, 03:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •