You are not logged in.

#1 2005-04-17 11:28:38

joe.henderson1
Member
Registered: 2005-04-17
Posts: 13

su.. looks and feels...

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

#2 2005-04-17 11:37:38

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: su.. looks and feels...

joe.henderson1 wrote:

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

#3 2005-04-17 12:39:33

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: su.. looks and feels...

I use sudo for everything unless I NEED to be in an extended period as root (which is rare).


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#4 2005-04-17 15:28:43

Victor
Member
From: Zaragoza/ESPAÑA (Spain)
Registered: 2005-01-27
Posts: 23

Re: su.. looks and feels...

joe.henderson1 wrote:

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

#5 2005-04-17 16:42:30

joe.henderson1
Member
Registered: 2005-04-17
Posts: 13

Re: su.. looks and feels...

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

Board footer

Powered by FluxBB