4

When I moved to Ubuntu I worked hard to get out of the habit of working as root. However, is the situation below an example of one of the few times that a user should become root?

 - neptune:~$ cd ../testuser/.kde/
bash: cd: ../testuser/.kde/: Permission denied
 - neptune:~$ sudo cd ../testuser/.kde/
sudo: cd: command not found

Note that I do happen to have the password for testuser, however I feel that working as root is preferable to suing to testuser.

Thanks.

EDIT: Upon researching solutions I see that my best course of action is to just su to the user whose files I intend to start scripting on.

1 Answer 1

2

You may find this helpful. Consider placing shared files in common directories with appropriate permissions so that multiple users can work on them.

2
  • Thank you Wolverine. In fact, that thread was rather informative but it only shows how to become root (-i -e), not how to avoid becoming root.
    – dotancohen
    Nov 2, 2012 at 13:20
  • Upon researching solutions I see that my best course of action is to just su to the user whose files I intend to start scripting on. Thanks.
    – dotancohen
    Nov 2, 2012 at 14:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .