Change user, assume environment, stay in current dir

2009-10-03 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

Change user, assume environment, stay in current dir $ su — user I&#8217;ve used this a number of times troubleshooting user permissions. Instead of just &#8217;su – user&#8217; you can throw another hyphen and stay in the original directory.

* View this command to comment, vote or add to favourites * View all commands by matthewdavis

commandlinefu.com

by David Winterbottom (codeinthehole.com)

URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/7LH0tfWi1Oc/change-user-assume-environment-stay-in-current-dir">http://feedproxy.google.com/~r/Command-line-fu/~3/7LH0tfWi1Oc/change-user-assume-environment-stay-in-current-dir

comments powered by Disqus