LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 07: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, 08:06 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
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 08:07 AM.
 
Old 11-16-2005, 08:08 AM   #3
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Original Poster
Rep: Reputation: 30
Thank you.
 
  


Reply



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

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

All times are GMT -5. The time now is 06:26 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
Open Source Consulting | Domain Registration