Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th January 2005, 03:23 AM
bonsaidouglas Offline
Registered User
 
Join Date: May 2004
Posts: 18
su to root and environment vars are lost

I'm trying to get in the habit of logging into my remote server with a regular user and then using "su" to get to root, but it seems like all the environment variables are lost... For example, after I su to root, I can't just use "useradd" but have to specify the full path "/usr/sbin/useradd".

Any tips on maintaining the environment vars or paths or whatever?
Reply With Quote
  #2  
Old 8th January 2005, 03:37 AM
tchung's Avatar
tchung Offline
FedoraNEWS.org Admin
 
Join Date: Feb 2004
Location: California, US
Posts: 561
Hello,

Try 'su -' instead of 'su'

For more information, 'man su'

Thomas
__________________
Thomas Chung
http://fedoraproject.org/wiki/ThomasChung
Reply With Quote
  #3  
Old 8th January 2005, 04:08 AM
bonsaidouglas Offline
Registered User
 
Join Date: May 2004
Posts: 18
Nice that works! The man entry is a little wierd but makes sense now:

Code:
-, -l, --login
              make the shell a login shell
thanks!
Reply With Quote
Reply

Tags
environment, lost, root, vars

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
root passwd lost. jlgv Security and Privacy 11 11th December 2005 07:36 AM
lost root password elifb Using Fedora 8 7th October 2005 09:09 PM
Help! I lost my root password! joeberry Using Fedora 11 11th July 2005 08:31 PM
Lost Root Password. BoomerFZ1 Using Fedora 30 8th April 2005 12:25 AM


Current GMT-time: 12:11 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat