On 1/25/06, Gary Wallace <[EMAIL PROTECTED]> wrote:
> I do continually empty trash when in my user account.  I logon as root
> to set-up wireless after I have upgraded to a new kernel.  I do this
> because the commands do not work even when I su.  Is there a major

You need to use the command:
$ su -
Note the "-" at the end.  This gives you root's environment, which
includes putting the /sbin and /usr/sbin directories in the path. 
It's not that the commands didn't work, it is that you didn't tell the
shell where to find the commands.  If you used the full path, it would
work.  E.g. "/sbin/ifconfig".  In short, use "su -" or login at the
console (Ctrl+F[1-6]), but not X windows.

> difference between su and sudo.  I always figured that su gave you
> general root permission that you could then use to run you commands and
> sudo gave permission on that just that particular command.

Basically.  sudo also has means for logging and only giving
permissions to certain commands.  Also, sudo can be used by normal
users without them needing the root password.  This is nice for shared
user systems.  If you are the only user of your system, then it really
doesn't matter.  Use whichever one is more convenient.  Note that with
sudo, you must use the full path to the executable if it is not in
your user's path.

> I typically upgrade from my user account by gaining permission with su
> and then running yum.  Su works for this but not for commands required
> to setup wireless.

yum is in the user's path, not in /sbin or /usr/sbin.

> Anyway, I "Emptied Trash" when signed in as root and the size is back to
> normal.
>
> Thanks Everyone

Glad to hear.  You are welcome.

Jonathan

_______________________________________________
LinuxR3000 mailing list
[email protected]
http://lists.pcxperience.com/cgi-bin/mailman/listinfo/linuxr3000
Wiki at http://prinsig.se/weekee/

Reply via email to