LinuxQuestions.org
Visit Jeremy's Blog.
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 11-16-2005, 08:50 AM   #1
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
su - and stay in current dir


Hello,

I have a small question involving the switch user command. If I was in /here and did su -. How could I stay /here with out going to roots ~ ? Thank you.
 
Old 11-16-2005, 09:06 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
do
Code:
su
without the -. This way it won't load root's enviroment and it won't redirect you to root's home directory

Last edited by perfect_circle; 11-16-2005 at 09:07 AM.
 
Old 11-16-2005, 09:08 AM   #3
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Original Poster
Rep: Reputation: 30
Thank you.
 
  


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
HOWTO stay -current uselpa Slackware 7 09-13-2005 05:51 AM
how could i make a user stay in his or home dir Paxmaster Linux - General 1 03-23-2005 10:10 PM
What is the simplest way to stay current? yonatan1 Slackware 4 03-18-2005 04:57 PM
Prompt w/ current dir and user Jair Slackware 2 03-15-2004 07:16 PM
how do i stay current? yocompia Slackware 5 07-20-2003 12:42 AM

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

All times are GMT -5. The time now is 07:13 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