change drive

ZIYAD A. M. AL-BATLY zamb at spymac.com
Wed Apr 20 08:07:01 UTC 2005


On Tue, 2005-04-19 at 07:51 -0400, Matthew S-H wrote:
> You shouldn't use sudo normally.  It is only for operations that NEED
> to use sudo.  You should rarely use it normally.
> The only main usage that you should have for it is when you are
> installing software or modifying certain system files.
> It is better to avoid using sudo when possible.  You can do some
> serious damage to your system if you misuse it.
Well said.

> Also, when you run sudo, a few commands are not available, such as
> "cd".  This is because they would pose a security risk.
Changing your working directory with "cd" alone is not a security risk,
what comes after that is, but I've read your whole message and I see
were are going. (This paragraph is for Matthew, so anybody who doesn't
understand a thing of it just ignore it.)

> Also, the correct path to your desktop is not "/home/desktop".  It is
> "/home/YOUR_USER_NAME/Desktop" .  Note that the "D" in desktop is
> capitalized.  Unlike Windows, capitilazation in linux is important.
> In other words, it is case sensitive.
>
> And you almost never will need to use sudo if you are doing anything
> within your home directory [ "/home/YOUR_USER_NAME" ].
> Note that "~" is a shortcut to your home directory.
> 
> So, all you needed to type was:
> "cd /home/YOUR_USER_NAME/Desktop"
> OR
> "cd ~/Desktop"
> They both do the same thing.
Again, well said.

> [snip]
>         The error message is the result of "sudo" not finding an
>         executable with the name "cd".
> [snip]
> 
> As true as this is, I don't think that she is ready to know this,
> lol.
I was replaying to Ed not Sara. But, in my opinion, telling what
actually is happening is a better way for the user to understand the
system and guarding him/her self from bad things.  Yes, your replay is
much better as it tells Sara what she actually wants and which is a much
help for her than my replay.

> I have been using Linux regularly for almost 6 months, and I still
> don't know how to change the PATH for root.  I probably could figure
> it out pretty easily, but I just don't feel like it.  And I actually
> don't even know how to ACTUALLY change the PATH for any user.  I have
> been cheating by changing it in "~/.bashrc" whenever I run terminal.
You were cheating yourself!  As that *is* the *correct* way to change
the PATH for a user!  You were doing better than you expected from
yourself, that's all.

> ~Matt
> 
Thanks for the replay and the corrections.
Ziyad.





More information about the ubuntu-users mailing list