You are not logged in.
All,
I have a personal preference for the su actions..
When I enter "su" from a user and then "cd".. I goto roots homedir..
Why can't "cd" goto that users homedir and not root..
I see "su -" also has the same effect (of course you take roots perms)...
TIA,
Joe
Offline
When I enter "su" from a user and then "cd".. I goto roots homedir..
Why can't "cd" goto that users homedir and not root..
Because after you su, you ARE root.
Take a look at something like sudo if you need to run a command as root.
*puts on security hat* You shouldn't really be running around your system as root much anyway.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
I use sudo for everything unless I NEED to be in an extended period as root (which is rare).
Offline
All,
I have a personal preference for the su actions..
When I enter "su" from a user and then "cd".. I goto roots homedir..
Why can't "cd" goto that users homedir and not root..
I see "su -" also has the same effect (of course you take roots perms)...
TIA,
Joe
try su -m instead
http://aur.archlinux.org
[code][Victor]
Server = http://personales.ya.com/vmromanos/arch/pkgs
[/code]
http://vmromanos.homelinux.net/foro
Offline
Thanks all for the quick turn around...
Victor... Works great thanks..
Some of my perl scripts only work *as designed* when you are root...
As yes i know it's not a good idea running around as root.. I've experienced
some of the reasons why you shouldn't... :shock:
Thanks all for the help...
Joe
Offline