Jump to content
XPEnology Community
  • 0

Редактирование системных файлов только для чтения


gunarnas

Question

Добрый вечер.

 

Чтой-то не могу отредактировать файл sydoinfo.conf. Файл только для чтения. Где можно атрибут его поменять? Давно не ковырялся, а тут черт дернул обновиться на на 6.x.x при предыдущем hybrid рейде, чтобы поддерживал. sudo -i не работает.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

sudo -i  в ssh через консоль (дальше ты root)

nano /etc.defaults/synoinfo.conf

правишь конфиг - support_syno_hybrid_raid = "yes"  и  #supportraidgroup="yes"

ctrl+O, Enter, ctrl+X

exit

exit

 

 

скриншоты ошибок есть?

Edited by Lordbl4
Link to comment
Share on other sites

  • 0

В том то и дело, что именно так и делаю, а synoinfo.conf остается с атрибутом для чтения и не перезаписывается, что на Putty, что на Cygwin. В vi ошибка — read only.

Edited by gunarnas
Link to comment
Share on other sites

  • 0

chmod ?

 

заходишь в /etc.defaults/

смотришь права на synoinfo.conf командой ls -la 

chmod 777 synoinfo.conf

правишь

возвращаешь права, какие были

профит

 

забавно то, что под рутом ты бох системы и у тебя фактически нет ограничений на любые действия, как и защиты "от дурака"

Edited by Lordbl4
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...