change drive

Matthew S-H mathbymath at aol.com
Wed Apr 20 12:04:44 UTC 2005


You have 2 alternative options:
1.  cd into the directory as a normal user and then use sudo to do 
things such as "ls" and to modify stuff
2.  Use sudo but specify the entire filename whenever you do something.  
In your example, you'd continually have to type "/etc/ppp/peers".

This could get annoying though....!???

~Matt

On Apr 20, 2005, at 6:03 AM, Mario Vukelic wrote:

> On Wed, 2005-04-20 at 11:07 +0300, ZIYAD A. M. AL-BATLY wrote:
>>> 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.)
>
> I did not catch the whole message, but I ran across a problem with 
> sudo:
> If the permissions of a directory don't allow a normal user to read its
> contents or change into it, the fact that cd (as a shell built-in
> command) is not available with sudo becomes a real problem.
> Case in point: /etc/ppp/peers: there seems to be no way to change
> anything there if you don't have a root user.
>
> Am I missing something? If not, I would file a bug.
>
> Kind regards, M
>
>
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users





More information about the ubuntu-users mailing list