Ubuntu: Is it advisable to become root in Ubuntu to work with other users' files?


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.


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.


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

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »