I tried to use sudo cd name_of_dir but getting following error message: sudo: cd: command not found.
Is there any other way to open a directory which has 700 permission?
|
I tried to use Is there any other way to open a directory which has 700 permission? |
|||
| show 2 more comments |
|
The method to use is to switch to the user that owns the directory. Permission So if root owns the directory |
|||||||||||
|
|
to open "root console" and then
( |
|||
|
To open a root directory we may run a root shell, e.g.:
|
|||||||||||||||||||||
|
|
As others pointed out -- it's shell built-in:
So, why don't you sudo the shell itself?
|
|||||||||||||
|
|
I have had the As far as the to |
||||
|
|
ls -lof the directory itself. – Rinzwind Aug 19 '11 at 11:12sudo chmod 0755 name_of_dir; do you business; cd ../; sudo chmod 0700 name_of_dirSeems to be the only answer you'll be happy with. – Marco Ceppi♦ Aug 19 '11 at 13:31