10 дек. 2017 г. · Use sudo -i to get a root shell and then cd into the folder you want. If you don't need root privileges anymore use exit or Ctrl - D to exit the root shell. |
27 нояб. 2014 г. · Your approach should be to run the command with on a file in the directory. Eg if you want to run grep regex file where file is in /root, then you should ... |
2 янв. 2011 г. · Occasionally I want to cd into a directory where my user does not have permission, so I resort to sudo. The obvious command sudo cd somedir doesn't work. |
6 мая 2013 г. · The reason you can't do this is simple and two fold. 1. cd is not a program but an in-built command and sudo only applies to programs. |
13 окт. 2010 г. · Use chown to change ownership and chmod to change rights. As Paweł Karpiński said, use the -R option to apply the rights for all files inside of a directory ... |
4 февр. 2018 г. · How can i change the permissions of directory public to all users only read and only sudo users (group members of sudo ) to only read/write ... |
20 нояб. 2016 г. · I want to cd into a directory from the terminal but access is denied, and typing sudo cd (directory) returns an error about sudo not supporting ... |
4 мар. 2017 г. · To start a regular, non-login shell, you can use sudo -s. That will start a root shell for you and keep you in the directory you ran it from. |
16 дек. 2016 г. · So, either use sudo -i command or do HOME=/wherever sudo command . For example: sudo -i sh -c 'echo $HOME'. Which gives you: /root. |
11 февр. 2014 г. · sudo cd $pwd sudo: cd: command not found I am able to cd as a normal user.It seems that PATH is not set properly for su. How do I fix that? |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |