[ale] Su Problems

Mike mnelson at bellsouth.net
Thu Oct 8 23:21:42 EDT 1998


On Thu, 08 Oct 1998, you wrote:
>Hi again. I seem to be having problems adding a user from remote host.
>after logging in with my normal account, I change to root (su command)
>log in, there is a man entrry for useradd, but when I try to use it , it
>comes up bad command, or not a valid command. I am, as you have probably
>seen from prior posts, still new to linux, but from the problems before,
>I think I have add user rites to remote logging in for the root dir. Is
>this correct? and if so how do I go about doing this...
>
>regards
>
>
>denethor
--

Some stuff you might want to look at to see what's happening ...
Login as root and type "set" which shows your environment variables.
Login as yourself and type "set" and compare, particularly the PATH state=
ment
also, do a "su" and a "su -" to compare these.
Now look at the files /etc/profile and /root/.bash_profile  and /root/.ba=
shrc
See also /home/<user>/.bash_profile and ~/.bashrc
You may, for example, notice that root has /sbin and /usr/sbin in the pat=
h
while your login does not. So, root can execute ifconfig with "ifconfig" =
and
user-you have to type "/sbin/ifconfig".=20

You can use these to setup stuff you like. For example, I am too lazy to =
type
out the entire string "ls" to see what's in a directory, so I added to my
profiles "alias d=3D"ls". Now I only have to type a single character - a =
100%
increase in performance. For good measure, I changed that to "
alias d=3D"ls -color". This is also where you set up your prompt info.=20






More information about the Ale mailing list