Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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

share|improve this answer
    
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 '12 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 '12 at 14:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.